17 #include "gtest/gtest.h" 27 const std::string fp_steam_name =
"fp_steam";
28 const std::string fp_nitrogen_name =
"fp_nitrogen";
29 const std::string fp_mix_name =
"fp_mix";
33 const std::string class_name =
"IdealGasFluidProperties";
35 params.
set<
Real>(
"gamma") = 1.43;
36 params.
set<
Real>(
"molar_mass") = 0.01801488;
37 params.
set<
Real>(
"mu") = 0.000013277592;
38 params.
set<
Real>(
"k") = 0.026824977826;
39 _fe_problem->addUserObject(class_name, fp_steam_name, params);
44 const std::string class_name =
"IdealGasFluidProperties";
46 params.
set<
Real>(
"gamma") = 1.4;
47 params.
set<
Real>(
"molar_mass") = 0.028012734746133888;
48 params.
set<
Real>(
"mu") = 0.0000222084;
49 params.
set<
Real>(
"k") = 0.032806168;
50 _fe_problem->addUserObject(class_name, fp_nitrogen_name, params);
55 const std::string class_name =
"IdealGasMixtureFluidProperties";
57 params.
set<std::vector<UserObjectName>>(
"component_fluid_properties") = {fp_steam_name,
59 _fe_problem->addUserObject(class_name, fp_mix_name, params);
74 const auto U = FlowModelGasMixUtils::computeConservativeSolution<true>(W,
A, *_fp_mix);
75 const auto W_new = FlowModelGasMixUtils::computePrimitiveSolution<true>(U, *_fp_mix);
77 for (
unsigned int i = 0; i < W_new.size(); ++i)
78 REL_TEST(W_new[i], W[i], REL_TOL_CONSISTENCY);
std::shared_ptr< FEProblem > _fe_problem
static const unsigned int N_PRIM_VARS
const IdealGasMixtureFluidProperties * _fp_mix
Fluid properties user object.
InputParameters getValidParams(const std::string &name) const
DualNumber< Real, DNDerivativeType, true > ADReal
TEST_F(FlowModelGasMixUtilsTest, testConservativePrimitiveConversionConsistency)
void addFluidProperties()
Adds fluid properties objects needed for testing.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
FlowModelGasMixUtilsTest()
Class for fluid properties of an ideal gas mixture.
Tests FlowModelGasMixUtils.