https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TabulatedPVTFluidPropertiesTest Class Reference

#include <TabulatedPVTFluidPropertiesTest.h>

Inheritance diagram for TabulatedPVTFluidPropertiesTest:
[legend]

Public Member Functions

 TabulatedPVTFluidPropertiesTest ()
 

Protected Member Functions

InputParameters validFPParams ()
 Valid parameters for a PVDO-style dead-oil table.
 
const TabulatedPVTFluidProperties & buildFP (const std::string &name, const std::string &out_of_bounds_behavior)
 
void buildObjects ()
 
T & addObject (const std::string &type, const std::string &name, InputParameters &params)
 

Protected Attributes

const Real _rho_sc = 850.0
 
const std::vector< Real > _p = {2.0e6, 1.0e7, 2.0e7, 3.0e7}
 
const std::vector< Real > _B = {1.062, 1.050, 1.038, 1.028}
 
const std::vector< Real > _mu = {1.04e-3, 1.10e-3, 1.17e-3, 1.24e-3}
 
const Real _cv = 2000.0
 
const Real _molar_mass = 0.2
 
const TabulatedPVTFluidProperties * _fp
 out_of_bounds_behavior = ignore (linear extrapolation)
 
const TabulatedPVTFluidProperties * _fp_bounds
 out_of_bounds_behavior = set_to_closest_bound
 
const TabulatedPVTFluidProperties * _fp_throw
 out_of_bounds_behavior = throw (the default)
 
const TabulatedPVTFluidProperties * _fp_declare_invalid
 out_of_bounds_behavior = declare_invalid
 
const TabulatedPVTFluidProperties * _fp_warn_invalid
 out_of_bounds_behavior = warn_invalid
 
std::unique_ptr< MooseMesh > _mesh
 
std::shared_ptr< MooseApp > _app
 
Factory & _factory
 
std::shared_ptr< FEProblem > _fe_problem
 

Detailed Description

Definition at line 15 of file TabulatedPVTFluidPropertiesTest.h.

Constructor & Destructor Documentation

◆ TabulatedPVTFluidPropertiesTest()

TabulatedPVTFluidPropertiesTest::TabulatedPVTFluidPropertiesTest ( )
inline

Definition at line 18 of file TabulatedPVTFluidPropertiesTest.h.

18 : MooseObjectUnitTest("PorousFlowApp")
19 {
20 _fp = &buildFP("fp", "ignore");
21 _fp_bounds = &buildFP("fp_bounds", "set_to_closest_bound");
22 _fp_throw = &buildFP("fp_throw", "throw");
23 _fp_declare_invalid = &buildFP("fp_declare_invalid", "declare_invalid");
24 _fp_warn_invalid = &buildFP("fp_warn_invalid", "warn_invalid");
25 }
const TabulatedPVTFluidProperties * _fp_bounds
out_of_bounds_behavior = set_to_closest_bound
const TabulatedPVTFluidProperties & buildFP(const std::string &name, const std::string &out_of_bounds_behavior)
const TabulatedPVTFluidProperties * _fp_warn_invalid
out_of_bounds_behavior = warn_invalid
const TabulatedPVTFluidProperties * _fp_throw
out_of_bounds_behavior = throw (the default)
const TabulatedPVTFluidProperties * _fp
out_of_bounds_behavior = ignore (linear extrapolation)
const TabulatedPVTFluidProperties * _fp_declare_invalid
out_of_bounds_behavior = declare_invalid

Member Function Documentation

◆ buildFP()

const TabulatedPVTFluidProperties & TabulatedPVTFluidPropertiesTest::buildFP ( const std::string &  name,
const std::string &  out_of_bounds_behavior 
)
inlineprotected

Definition at line 41 of file TabulatedPVTFluidPropertiesTest.h.

43 {
45 params.set<MooseEnum>("out_of_bounds_behavior") = out_of_bounds_behavior;
46 _fe_problem->addUserObject("TabulatedPVTFluidProperties", name, params);
47 return _fe_problem->getUserObject<TabulatedPVTFluidProperties>(name);
48 }
const std::string name
Definition Setup.h:21
T & set(const std::string &name, bool quiet_mode=false)
std::shared_ptr< FEProblem > _fe_problem
InputParameters validFPParams()
Valid parameters for a PVDO-style dead-oil table.
Fluid properties from a table of pressure, formation volume factor and viscosity (PVDO/PVDG style)

Referenced by TabulatedPVTFluidPropertiesTest().

◆ validFPParams()

InputParameters TabulatedPVTFluidPropertiesTest::validFPParams ( )
inlineprotected

Valid parameters for a PVDO-style dead-oil table.

Definition at line 29 of file TabulatedPVTFluidPropertiesTest.h.

30 {
31 InputParameters params = _factory.getValidParams("TabulatedPVTFluidProperties");
32 params.set<Real>("density_sc") = _rho_sc;
33 params.set<std::vector<Real>>("pressure") = _p;
34 params.set<std::vector<Real>>("formation_volume_factor") = _B;
35 params.set<std::vector<Real>>("viscosity") = _mu;
36 params.set<Real>("cv") = _cv;
37 params.set<Real>("molar_mass") = _molar_mass;
38 return params;
39 }
InputParameters getValidParams(const std::string &name) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Referenced by buildFP().

Member Data Documentation

◆ _B

const std::vector<Real> TabulatedPVTFluidPropertiesTest::_B = {1.062, 1.050, 1.038, 1.028}
protected

Definition at line 52 of file TabulatedPVTFluidPropertiesTest.h.

52{1.062, 1.050, 1.038, 1.028};

Referenced by validFPParams().

◆ _cv

const Real TabulatedPVTFluidPropertiesTest::_cv = 2000.0
protected

Definition at line 54 of file TabulatedPVTFluidPropertiesTest.h.

Referenced by validFPParams().

◆ _fp

const TabulatedPVTFluidProperties* TabulatedPVTFluidPropertiesTest::_fp
protected

out_of_bounds_behavior = ignore (linear extrapolation)

Definition at line 58 of file TabulatedPVTFluidPropertiesTest.h.

Referenced by TabulatedPVTFluidPropertiesTest().

◆ _fp_bounds

const TabulatedPVTFluidProperties* TabulatedPVTFluidPropertiesTest::_fp_bounds
protected

out_of_bounds_behavior = set_to_closest_bound

Definition at line 60 of file TabulatedPVTFluidPropertiesTest.h.

Referenced by TabulatedPVTFluidPropertiesTest().

◆ _fp_declare_invalid

const TabulatedPVTFluidProperties* TabulatedPVTFluidPropertiesTest::_fp_declare_invalid
protected

out_of_bounds_behavior = declare_invalid

Definition at line 64 of file TabulatedPVTFluidPropertiesTest.h.

Referenced by TabulatedPVTFluidPropertiesTest().

◆ _fp_throw

const TabulatedPVTFluidProperties* TabulatedPVTFluidPropertiesTest::_fp_throw
protected

out_of_bounds_behavior = throw (the default)

Definition at line 62 of file TabulatedPVTFluidPropertiesTest.h.

Referenced by TabulatedPVTFluidPropertiesTest().

◆ _fp_warn_invalid

const TabulatedPVTFluidProperties* TabulatedPVTFluidPropertiesTest::_fp_warn_invalid
protected

out_of_bounds_behavior = warn_invalid

Definition at line 66 of file TabulatedPVTFluidPropertiesTest.h.

Referenced by TabulatedPVTFluidPropertiesTest().

◆ _molar_mass

const Real TabulatedPVTFluidPropertiesTest::_molar_mass = 0.2
protected

Definition at line 55 of file TabulatedPVTFluidPropertiesTest.h.

Referenced by validFPParams().

◆ _mu

const std::vector<Real> TabulatedPVTFluidPropertiesTest::_mu = {1.04e-3, 1.10e-3, 1.17e-3, 1.24e-3}
protected

Definition at line 53 of file TabulatedPVTFluidPropertiesTest.h.

53{1.04e-3, 1.10e-3, 1.17e-3, 1.24e-3};

Referenced by validFPParams().

◆ _p

const std::vector<Real> TabulatedPVTFluidPropertiesTest::_p = {2.0e6, 1.0e7, 2.0e7, 3.0e7}
protected

Definition at line 51 of file TabulatedPVTFluidPropertiesTest.h.

51{2.0e6, 1.0e7, 2.0e7, 3.0e7};

Referenced by validFPParams().

◆ _rho_sc

const Real TabulatedPVTFluidPropertiesTest::_rho_sc = 850.0
protected

Definition at line 50 of file TabulatedPVTFluidPropertiesTest.h.

Referenced by validFPParams().


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