https://mooseframework.inl.gov
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IdealGasFluidPropertiesTest Class Reference

#include <IdealGasFluidPropertiesTest.h>

Inheritance diagram for IdealGasFluidPropertiesTest:
[legend]

Public Member Functions

 IdealGasFluidPropertiesTest ()
 

Protected Member Functions

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

Protected Attributes

const IdealGasFluidProperties_fp
 
const Real _molar_mass
 
std::unique_ptr< MooseMesh_mesh
 
std::shared_ptr< MooseApp_app
 
Factory_factory
 
std::shared_ptr< FEProblem_fe_problem
 

Detailed Description

Definition at line 15 of file IdealGasFluidPropertiesTest.h.

Constructor & Destructor Documentation

◆ IdealGasFluidPropertiesTest()

IdealGasFluidPropertiesTest::IdealGasFluidPropertiesTest ( )
inline

Definition at line 18 of file IdealGasFluidPropertiesTest.h.

18 : MooseObjectUnitTest("FluidPropertiesApp"), _molar_mass(0.028966206103678928) { buildObjects(); }
MooseObjectUnitTest(const std::string &app_name)

Member Function Documentation

◆ buildObjects()

void IdealGasFluidPropertiesTest::buildObjects ( )
inlineprotected

Definition at line 21 of file IdealGasFluidPropertiesTest.h.

Referenced by IdealGasFluidPropertiesTest().

22  {
23  InputParameters uo_pars = _factory.getValidParams("IdealGasFluidProperties");
24  uo_pars.set<Real>("molar_mass") = _molar_mass;
25  uo_pars.set<Real>("gamma") = 1.41;
26  uo_pars.set<Real>("e_ref") = 1000.0;
27  _fe_problem->addUserObject("IdealGasFluidProperties", "fp", uo_pars);
28  _fp = &_fe_problem->getUserObject<IdealGasFluidProperties>("fp");
29  }
std::shared_ptr< FEProblem > _fe_problem
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
const IdealGasFluidProperties * _fp
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature...

Member Data Documentation

◆ _fp

const IdealGasFluidProperties* IdealGasFluidPropertiesTest::_fp
protected

Definition at line 31 of file IdealGasFluidPropertiesTest.h.

Referenced by buildObjects().

◆ _molar_mass

const Real IdealGasFluidPropertiesTest::_molar_mass
protected

Definition at line 33 of file IdealGasFluidPropertiesTest.h.

Referenced by buildObjects().


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