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

#include <StiffenedGasFluidPropertiesTest.h>

Inheritance diagram for StiffenedGasFluidPropertiesTest:
[legend]

Public Member Functions

 StiffenedGasFluidPropertiesTest ()
 

Protected Member Functions

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

Protected Attributes

const StiffenedGasFluidProperties_fp
 
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 StiffenedGasFluidPropertiesTest.h.

Constructor & Destructor Documentation

◆ StiffenedGasFluidPropertiesTest()

StiffenedGasFluidPropertiesTest::StiffenedGasFluidPropertiesTest ( )
inline

Definition at line 18 of file StiffenedGasFluidPropertiesTest.h.

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

Member Function Documentation

◆ buildObjects()

void StiffenedGasFluidPropertiesTest::buildObjects ( )
inlineprotected

Definition at line 21 of file StiffenedGasFluidPropertiesTest.h.

Referenced by StiffenedGasFluidPropertiesTest().

22  {
23  InputParameters eos_pars = _factory.getValidParams("StiffenedGasFluidProperties");
24  eos_pars.set<Real>("gamma") = 2.35;
25  eos_pars.set<Real>("q") = -1167e3;
26  eos_pars.set<Real>("q_prime") = 0;
27  eos_pars.set<Real>("p_inf") = 1.e9;
28  eos_pars.set<Real>("cv") = 1816;
29  eos_pars.set<std::string>("_object_name") = "name3";
30  _fe_problem->addUserObject("StiffenedGasFluidProperties", "fp", eos_pars);
31  _fp = &_fe_problem->getUserObject<StiffenedGasFluidProperties>("fp");
32  }
std::shared_ptr< FEProblem > _fe_problem
const StiffenedGasFluidProperties * _fp
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
Stiffened gas fluid properties.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Member Data Documentation

◆ _fp

const StiffenedGasFluidProperties* StiffenedGasFluidPropertiesTest::_fp
protected

Definition at line 34 of file StiffenedGasFluidPropertiesTest.h.

Referenced by buildObjects().


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