https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IdealGasMixtureFluidPropertiesTest Class Reference

#include <IdealGasMixtureFluidPropertiesTest.h>

Inheritance diagram for IdealGasMixtureFluidPropertiesTest:
[legend]

Public Member Functions

 IdealGasMixtureFluidPropertiesTest ()
 

Protected Member Functions

void buildObjects ()
 
TaddObject (const std::string &type, const std::string &name, InputParameters &params)
 

Protected Attributes

const IdealGasFluidProperties_fp_steam
 
const IdealGasFluidProperties_fp_nitrogen
 
const IdealGasMixtureFluidProperties_fp_mix
 
std::unique_ptr< MooseMesh_mesh
 
std::shared_ptr< MooseApp_app
 
Factory_factory
 
std::shared_ptr< FEProblem_fe_problem
 

Detailed Description

Definition at line 16 of file IdealGasMixtureFluidPropertiesTest.h.

Constructor & Destructor Documentation

◆ IdealGasMixtureFluidPropertiesTest()

IdealGasMixtureFluidPropertiesTest::IdealGasMixtureFluidPropertiesTest ( )
inline

Member Function Documentation

◆ buildObjects()

void IdealGasMixtureFluidPropertiesTest::buildObjects ( )
inlineprotected

Definition at line 25 of file IdealGasMixtureFluidPropertiesTest.h.

26 {
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";
30
31 // steam; parameters correspond to T in range 298 K to 473 K
32 {
33 const std::string class_name = "IdealGasFluidProperties";
34 InputParameters params = _factory.getValidParams(class_name);
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; // at 400 K and 1.e5 Pa
39 params.set<Real>("k") = 0.026824977826; // at 400 K and 1.e5 Pa
40 _fe_problem->addUserObject(class_name, fp_steam_name, params);
42 }
43
44 // nitrogen
45 {
46 const std::string class_name = "IdealGasFluidProperties";
47 InputParameters params = _factory.getValidParams(class_name);
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; // at 400 K and 1.e5 Pa
52 params.set<Real>("k") = 0.032806168; // at 400 K and 1.e5 Pa
53 _fe_problem->addUserObject(class_name, fp_nitrogen_name, params);
55 }
56
57 // mixture
58 {
59 const std::string class_name = "IdealGasMixtureFluidProperties";
60 InputParameters params = _factory.getValidParams(class_name);
61 params.set<std::vector<UserObjectName>>("component_fluid_properties") = {fp_steam_name,
62 fp_nitrogen_name};
63 _fe_problem->addUserObject(class_name, fp_mix_name, params);
65 }
66 }
InputParameters getValidParams(const std::string &name) const
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature.
const IdealGasMixtureFluidProperties * _fp_mix
Class for fluid properties of an ideal gas mixture.
T & set(const std::string &name, bool quiet_mode=false)
std::shared_ptr< FEProblem > _fe_problem
const T & getUserObject(const std::string &param_name, bool is_dependency=true) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Referenced by IdealGasMixtureFluidPropertiesTest().

Member Data Documentation

◆ _fp_mix

const IdealGasMixtureFluidProperties* IdealGasMixtureFluidPropertiesTest::_fp_mix
protected

Definition at line 70 of file IdealGasMixtureFluidPropertiesTest.h.

Referenced by buildObjects().

◆ _fp_nitrogen

const IdealGasFluidProperties* IdealGasMixtureFluidPropertiesTest::_fp_nitrogen
protected

Definition at line 69 of file IdealGasMixtureFluidPropertiesTest.h.

Referenced by buildObjects().

◆ _fp_steam

const IdealGasFluidProperties* IdealGasMixtureFluidPropertiesTest::_fp_steam
protected

Definition at line 68 of file IdealGasMixtureFluidPropertiesTest.h.

Referenced by buildObjects().


The documentation for this class was generated from the following file: