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;
42 const std::string & out_of_bounds_behavior)
45 params.
set<
MooseEnum>(
"out_of_bounds_behavior") = out_of_bounds_behavior;
46 _fe_problem->addUserObject(
"TabulatedPVTFluidProperties",
name, params);
51 const std::vector<Real>
_p = {2.0e6, 1.0e7, 2.0e7, 3.0e7};
52 const std::vector<Real>
_B = {1.062, 1.050, 1.038, 1.028};
53 const std::vector<Real>
_mu = {1.04e-3, 1.10e-3, 1.17e-3, 1.24e-3};
54 const Real
_cv = 2000.0;
InputParameters getValidParams(const std::string &name) const
std::shared_ptr< FEProblem > _fe_problem
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)
TabulatedPVTFluidPropertiesTest()
InputParameters validFPParams()
Valid parameters for a PVDO-style dead-oil table.
const TabulatedPVTFluidProperties * _fp_warn_invalid
out_of_bounds_behavior = warn_invalid
const TabulatedPVTFluidProperties * _fp_throw
out_of_bounds_behavior = throw (the default)
const std::vector< Real > _B
const std::vector< Real > _p
const TabulatedPVTFluidProperties * _fp
out_of_bounds_behavior = ignore (linear extrapolation)
const TabulatedPVTFluidProperties * _fp_declare_invalid
out_of_bounds_behavior = declare_invalid
const std::vector< Real > _mu
Fluid properties from a table of pressure, formation volume factor and viscosity (PVDO/PVDG style)