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

#include <Water97FluidPropertiesTest.h>

Inheritance diagram for Water97FluidPropertiesTest:
[legend]

Public Member Functions

 Water97FluidPropertiesTest ()
 

Protected Member Functions

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

Protected Attributes

const Water97FluidProperties_fp
 
const SinglePhaseFluidProperties_ad_fp
 
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 Water97FluidPropertiesTest.h.

Constructor & Destructor Documentation

◆ Water97FluidPropertiesTest()

Water97FluidPropertiesTest::Water97FluidPropertiesTest ( )
inline

Definition at line 19 of file Water97FluidPropertiesTest.h.

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

Member Function Documentation

◆ buildObjects()

void Water97FluidPropertiesTest::buildObjects ( )
inlineprotected

Definition at line 22 of file Water97FluidPropertiesTest.h.

Referenced by Water97FluidPropertiesTest().

23  {
24  InputParameters uo_pars = _factory.getValidParams("Water97FluidProperties");
25  // Give initial guesses that are slightly off
26  uo_pars.set<Real>("T_initial_guess") = 298.15 * 1.01;
27  uo_pars.set<Real>("p_initial_guess") = 1.01e5 * 1.01;
28  _fe_problem->addUserObject("Water97FluidProperties", "fp", uo_pars);
29  _fp = &_fe_problem->getUserObject<Water97FluidProperties>("fp");
30 
31  InputParameters ad_uo_pars = _factory.getValidParams("Water97FluidProperties");
32  _fe_problem->addUserObject("Water97FluidProperties", "ad_fp", ad_uo_pars);
33  _ad_fp = &_fe_problem->getUserObject<SinglePhaseFluidProperties>("ad_fp");
34  }
std::shared_ptr< FEProblem > _fe_problem
const SinglePhaseFluidProperties * _ad_fp
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
Common class for single phase fluid properties.
const Water97FluidProperties * _fp
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Water (H2O) fluid properties as a function of pressure (Pa) and temperature (K) from IAPWS-IF97: Revi...

Member Data Documentation

◆ _ad_fp

const SinglePhaseFluidProperties* Water97FluidPropertiesTest::_ad_fp
protected

Definition at line 37 of file Water97FluidPropertiesTest.h.

Referenced by buildObjects().

◆ _fp

const Water97FluidProperties* Water97FluidPropertiesTest::_fp
protected

Definition at line 36 of file Water97FluidPropertiesTest.h.

Referenced by buildObjects().


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