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

#include <PorousFlowBrineCO2Test.h>

Inheritance diagram for PorousFlowBrineCO2Test:
[legend]

Public Member Functions

 PorousFlowBrineCO2Test ()
 

Protected Member Functions

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

Protected Attributes

const PorousFlowCapillaryPressureVG_pc
 
const PorousFlowBrineCO2_fs
 
const BrineFluidProperties_brine_fp
 
const Water97FluidProperties_water_fp
 
const SinglePhaseFluidProperties_co2_fp
 
unsigned int _pidx
 
unsigned int _Tidx
 
unsigned int _Zidx
 
unsigned int _Xidx
 
std::unique_ptr< MooseMesh_mesh
 
std::shared_ptr< MooseApp_app
 
Factory_factory
 
std::shared_ptr< FEProblem_fe_problem
 

Detailed Description

Definition at line 20 of file PorousFlowBrineCO2Test.h.

Constructor & Destructor Documentation

◆ PorousFlowBrineCO2Test()

PorousFlowBrineCO2Test::PorousFlowBrineCO2Test ( )
inline

Definition at line 23 of file PorousFlowBrineCO2Test.h.

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

Member Function Documentation

◆ buildObjects()

void PorousFlowBrineCO2Test::buildObjects ( )
inlineprotected

Definition at line 26 of file PorousFlowBrineCO2Test.h.

Referenced by PorousFlowBrineCO2Test().

27  {
28  InputParameters pc_params = _factory.getValidParams("PorousFlowCapillaryPressureVG");
29  pc_params.set<Real>("m") = 0.5;
30  pc_params.set<Real>("alpha") = 1.0e-4;
31  _fe_problem->addUserObject("PorousFlowCapillaryPressureVG", "pc", pc_params);
32  _pc = &_fe_problem->getUserObject<PorousFlowCapillaryPressureVG>("pc");
33 
34  InputParameters brine_params = _factory.getValidParams("BrineFluidProperties");
35  _fe_problem->addUserObject("BrineFluidProperties", "brine_fp", brine_params);
36  _brine_fp = &_fe_problem->getUserObject<BrineFluidProperties>("brine_fp");
37 
38  InputParameters water_params = _factory.getValidParams("Water97FluidProperties");
39  _fe_problem->addUserObject("Water97FluidProperties", "water_fp", water_params);
40  _water_fp = &_fe_problem->getUserObject<Water97FluidProperties>("water_fp");
41 
42  InputParameters co2_params = _factory.getValidParams("CO2FluidProperties");
43  _fe_problem->addUserObject("CO2FluidProperties", "co2_fp", co2_params);
44  _co2_fp = &_fe_problem->getUserObject<SinglePhaseFluidProperties>("co2_fp");
45 
46  InputParameters uo_params = _factory.getValidParams("PorousFlowBrineCO2");
47  uo_params.set<UserObjectName>("brine_fp") = "brine_fp";
48  uo_params.set<UserObjectName>("co2_fp") = "co2_fp";
49  uo_params.set<UserObjectName>("capillary_pressure") = "pc";
50  _fe_problem->addUserObject("PorousFlowBrineCO2", "fs", uo_params);
51  _fs = &_fe_problem->getUserObject<PorousFlowBrineCO2>("fs");
52 
53  // Indices for derivatives
56  _Zidx = _fs->getZIndex();
57  _Xidx = _fs->getXIndex();
58  }
std::shared_ptr< FEProblem > _fe_problem
const SinglePhaseFluidProperties * _co2_fp
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
Brine (NaCl in H2O) fluid properties as a function of pressure (Pa), temperature (K) and NaCl mass fr...
const PorousFlowBrineCO2 * _fs
const PorousFlowCapillaryPressureVG * _pc
const Water97FluidProperties * _water_fp
Common class for single phase fluid properties.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const BrineFluidProperties * _brine_fp
Water (H2O) fluid properties as a function of pressure (Pa) and temperature (K) from IAPWS-IF97: Revi...
Specialized class for brine and CO2 including calculation of mutual solubility of the two fluids usin...
van Genuchten form of capillary pressure.

Member Data Documentation

◆ _brine_fp

const BrineFluidProperties* PorousFlowBrineCO2Test::_brine_fp
protected

Definition at line 62 of file PorousFlowBrineCO2Test.h.

Referenced by buildObjects().

◆ _co2_fp

const SinglePhaseFluidProperties* PorousFlowBrineCO2Test::_co2_fp
protected

Definition at line 64 of file PorousFlowBrineCO2Test.h.

Referenced by buildObjects().

◆ _fs

const PorousFlowBrineCO2* PorousFlowBrineCO2Test::_fs
protected

Definition at line 61 of file PorousFlowBrineCO2Test.h.

Referenced by buildObjects().

◆ _pc

const PorousFlowCapillaryPressureVG* PorousFlowBrineCO2Test::_pc
protected

Definition at line 60 of file PorousFlowBrineCO2Test.h.

Referenced by buildObjects().

◆ _pidx

unsigned int PorousFlowBrineCO2Test::_pidx
protected

Definition at line 65 of file PorousFlowBrineCO2Test.h.

Referenced by buildObjects().

◆ _Tidx

unsigned int PorousFlowBrineCO2Test::_Tidx
protected

Definition at line 66 of file PorousFlowBrineCO2Test.h.

Referenced by buildObjects().

◆ _water_fp

const Water97FluidProperties* PorousFlowBrineCO2Test::_water_fp
protected

Definition at line 63 of file PorousFlowBrineCO2Test.h.

Referenced by buildObjects().

◆ _Xidx

unsigned int PorousFlowBrineCO2Test::_Xidx
protected

Definition at line 68 of file PorousFlowBrineCO2Test.h.

Referenced by buildObjects().

◆ _Zidx

unsigned int PorousFlowBrineCO2Test::_Zidx
protected

Definition at line 67 of file PorousFlowBrineCO2Test.h.

Referenced by buildObjects().


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