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

#include <PorousFlowWaterVaporTest.h>

Inheritance diagram for PorousFlowWaterVaporTest:
[legend]

Public Member Functions

 PorousFlowWaterVaporTest ()
 

Protected Member Functions

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

Protected Attributes

const PorousFlowCapillaryPressureVG_pc
 
const PorousFlowWaterVapor_fp
 
const Water97FluidProperties_water_fp
 
std::unique_ptr< MooseMesh_mesh
 
std::shared_ptr< MooseApp_app
 
Factory_factory
 
std::shared_ptr< FEProblem_fe_problem
 

Detailed Description

Definition at line 17 of file PorousFlowWaterVaporTest.h.

Constructor & Destructor Documentation

◆ PorousFlowWaterVaporTest()

PorousFlowWaterVaporTest::PorousFlowWaterVaporTest ( )
inline

Definition at line 20 of file PorousFlowWaterVaporTest.h.

20 : MooseObjectUnitTest("PorousFlowApp") { buildObjects(); }
MooseObjectUnitTest(const std::string &app_name)

Member Function Documentation

◆ buildObjects()

void PorousFlowWaterVaporTest::buildObjects ( )
inlineprotected

Definition at line 23 of file PorousFlowWaterVaporTest.h.

Referenced by PorousFlowWaterVaporTest().

24  {
25  InputParameters pc_params = _factory.getValidParams("PorousFlowCapillaryPressureVG");
26  pc_params.set<Real>("m") = 0.5;
27  pc_params.set<Real>("alpha") = 1.0e-4;
28  pc_params.set<Real>("pc_max") = 1.0e5;
29  _fe_problem->addUserObject("PorousFlowCapillaryPressureVG", "pc", pc_params);
30  _pc = &_fe_problem->getUserObject<PorousFlowCapillaryPressureVG>("pc");
31 
32  InputParameters water_params = _factory.getValidParams("Water97FluidProperties");
33  _fe_problem->addUserObject("Water97FluidProperties", "water_fp", water_params);
34  _water_fp = &_fe_problem->getUserObject<Water97FluidProperties>("water_fp");
35 
36  InputParameters uo_params = _factory.getValidParams("PorousFlowWaterVapor");
37  uo_params.set<UserObjectName>("water_fp") = "water_fp";
38  uo_params.set<UserObjectName>("capillary_pressure") = "pc";
39  _fe_problem->addUserObject("PorousFlowWaterVapor", "fp", uo_params);
40  _fp = &_fe_problem->getUserObject<PorousFlowWaterVapor>("fp");
41  }
std::shared_ptr< FEProblem > _fe_problem
const PorousFlowCapillaryPressureVG * _pc
const PorousFlowWaterVapor * _fp
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
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...
const Water97FluidProperties * _water_fp
van Genuchten form of capillary pressure.
Specialized class for water and vapor mixture using pressure and enthalpy.

Member Data Documentation

◆ _fp

const PorousFlowWaterVapor* PorousFlowWaterVaporTest::_fp
protected

Definition at line 44 of file PorousFlowWaterVaporTest.h.

Referenced by buildObjects().

◆ _pc

const PorousFlowCapillaryPressureVG* PorousFlowWaterVaporTest::_pc
protected

Definition at line 43 of file PorousFlowWaterVaporTest.h.

Referenced by buildObjects().

◆ _water_fp

const Water97FluidProperties* PorousFlowWaterVaporTest::_water_fp
protected

Definition at line 45 of file PorousFlowWaterVaporTest.h.

Referenced by buildObjects().


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