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>(
"e_ref") = 2030e3;
38 params.
set<Real>(
"mu") = 0.000013277592;
39 params.
set<Real>(
"k") = 0.026824977826;
40 _fe_problem->addUserObject(class_name, fp_steam_name, params);
46 const std::string class_name =
"IdealGasFluidProperties";
48 params.
set<Real>(
"gamma") = 1.4;
49 params.
set<Real>(
"molar_mass") = 0.028012734746133888;
50 params.
set<Real>(
"e_ref") = 1500e3;
51 params.
set<Real>(
"mu") = 0.0000222084;
52 params.
set<Real>(
"k") = 0.032806168;
53 _fe_problem->addUserObject(class_name, fp_nitrogen_name, params);
59 const std::string class_name =
"IdealGasMixtureFluidProperties";
61 params.
set<std::vector<UserObjectName>>(
"component_fluid_properties") = {fp_steam_name,
63 _fe_problem->addUserObject(class_name, fp_mix_name, params);
71 const std::string &
name,
72 const std::string & transport_mixing_rule =
"mole_fraction_average");
81 const std::string &
name,
82 const std::string & transport_mixing_rule)
84 std::vector<UserObjectName> component_names;
85 for (
const auto & component_species : species)
87 const std::string component_name =
name +
"_" + component_species;
90 _fe_problem->addUserObject(
"NASA7IdealGasFluidProperties", component_name, params);
91 component_names.push_back(component_name);
95 params.
set<std::vector<UserObjectName>>(
"component_fluid_properties") = component_names;
96 params.
set<
MooseEnum>(
"transport_mixing_rule") = transport_mixing_rule;
97 _fe_problem->addUserObject(
"IdealGasMixtureFluidProperties",
name, params);
InputParameters getValidParams(const std::string &name) const
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature.
const IdealGasMixtureFluidProperties & buildNASA7Mixture(const std::vector< std::string > &species, const std::string &name, const std::string &transport_mixing_rule="mole_fraction_average")
Builds a mixture of NASA 7-coefficient gases; the first species is the primary component.
const IdealGasFluidProperties * _fp_nitrogen
const IdealGasMixtureFluidProperties * _fp_mix
IdealGasMixtureFluidPropertiesTest()
const IdealGasFluidProperties * _fp_steam
Class for fluid properties of an ideal gas mixture.
std::shared_ptr< FEProblem > _fe_problem
const T & getUserObject(const std::string ¶m_name, bool is_dependency=true) const