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

#include <PorousFlowWaterNCGTest.h>

Inheritance diagram for PorousFlowWaterNCGTest:
[legend]

Public Member Functions

 PorousFlowWaterNCGTest ()
 

Protected Member Functions

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

Protected Attributes

const PorousFlowCapillaryPressureVG_pc
 
const PorousFlowWaterNCG_fs
 
const SinglePhaseFluidProperties_water_fp
 
const SinglePhaseFluidProperties_ncg_fp
 
unsigned int _pidx
 
unsigned int _Tidx
 
unsigned int _Zidx
 
std::unique_ptr< MooseMesh_mesh
 
std::shared_ptr< MooseApp_app
 
Factory_factory
 
std::shared_ptr< FEProblem_fe_problem
 

Detailed Description

Definition at line 18 of file PorousFlowWaterNCGTest.h.

Constructor & Destructor Documentation

◆ PorousFlowWaterNCGTest()

PorousFlowWaterNCGTest::PorousFlowWaterNCGTest ( )
inline

Definition at line 21 of file PorousFlowWaterNCGTest.h.

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

Member Function Documentation

◆ buildObjects()

void PorousFlowWaterNCGTest::buildObjects ( )
inlineprotected

Definition at line 24 of file PorousFlowWaterNCGTest.h.

Referenced by PorousFlowWaterNCGTest().

25  {
26  InputParameters pc_params = _factory.getValidParams("PorousFlowCapillaryPressureVG");
27  pc_params.set<Real>("m") = 0.5;
28  pc_params.set<Real>("alpha") = 1.0e-4;
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<SinglePhaseFluidProperties>("water_fp");
35 
36  InputParameters ncg_params = _factory.getValidParams("CO2FluidProperties");
37  _fe_problem->addUserObject("CO2FluidProperties", "ncg_fp", ncg_params);
38  _ncg_fp = &_fe_problem->getUserObject<SinglePhaseFluidProperties>("ncg_fp");
39 
40  InputParameters uo_params = _factory.getValidParams("PorousFlowWaterNCG");
41  uo_params.set<UserObjectName>("water_fp") = "water_fp";
42  uo_params.set<UserObjectName>("gas_fp") = "ncg_fp";
43  uo_params.set<UserObjectName>("capillary_pressure") = "pc";
44  _fe_problem->addUserObject("PorousFlowWaterNCG", "fs", uo_params);
45  _fs = &_fe_problem->getUserObject<PorousFlowWaterNCG>("fs");
46 
47  // Indices for derivatives
50  _Zidx = _fs->getZIndex();
51  }
std::shared_ptr< FEProblem > _fe_problem
const PorousFlowCapillaryPressureVG * _pc
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
const PorousFlowWaterNCG * _fs
Common class for single phase fluid properties.
Specialized class for water and a non-condensable gas (NCG) Includes dissolution of gas in liquid wat...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const SinglePhaseFluidProperties * _water_fp
const SinglePhaseFluidProperties * _ncg_fp
van Genuchten form of capillary pressure.

Member Data Documentation

◆ _fs

const PorousFlowWaterNCG* PorousFlowWaterNCGTest::_fs
protected

Definition at line 54 of file PorousFlowWaterNCGTest.h.

Referenced by buildObjects().

◆ _ncg_fp

const SinglePhaseFluidProperties* PorousFlowWaterNCGTest::_ncg_fp
protected

Definition at line 56 of file PorousFlowWaterNCGTest.h.

Referenced by buildObjects().

◆ _pc

const PorousFlowCapillaryPressureVG* PorousFlowWaterNCGTest::_pc
protected

Definition at line 53 of file PorousFlowWaterNCGTest.h.

Referenced by buildObjects().

◆ _pidx

unsigned int PorousFlowWaterNCGTest::_pidx
protected

Definition at line 57 of file PorousFlowWaterNCGTest.h.

Referenced by buildObjects().

◆ _Tidx

unsigned int PorousFlowWaterNCGTest::_Tidx
protected

Definition at line 58 of file PorousFlowWaterNCGTest.h.

Referenced by buildObjects().

◆ _water_fp

const SinglePhaseFluidProperties* PorousFlowWaterNCGTest::_water_fp
protected

Definition at line 55 of file PorousFlowWaterNCGTest.h.

Referenced by buildObjects().

◆ _Zidx

unsigned int PorousFlowWaterNCGTest::_Zidx
protected

Definition at line 59 of file PorousFlowWaterNCGTest.h.

Referenced by buildObjects().


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