https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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 ()
 
TaddObject (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

Member Function Documentation

◆ buildObjects()

void Water97FluidPropertiesTest::buildObjects ( )
inlineprotected

Definition at line 22 of file Water97FluidPropertiesTest.h.

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);
30
31 InputParameters ad_uo_pars = _factory.getValidParams("Water97FluidProperties");
32 _fe_problem->addUserObject("Water97FluidProperties", "ad_fp", ad_uo_pars);
34 }
InputParameters getValidParams(const std::string &name) const
T & set(const std::string &name, bool quiet_mode=false)
std::shared_ptr< FEProblem > _fe_problem
Common class for single phase fluid properties.
const T & getUserObject(const std::string &param_name, bool is_dependency=true) const
const SinglePhaseFluidProperties * _ad_fp
const Water97FluidProperties * _fp
Water (H2O) fluid properties as a function of pressure (Pa) and temperature (K) from IAPWS-IF97: Revi...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Referenced by Water97FluidPropertiesTest().

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: