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

Fluid properties of Brine. More...

#include <PorousFlowBrine.h>

Inheritance diagram for PorousFlowBrine:
[legend]

Public Types

typedef DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
 

Public Member Functions

 PorousFlowBrine (const InputParameters &parameters)
 
const GenericMaterialProperty< U, is_ad > & getDefaultMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< U, is_ad > & getDefaultMaterialPropertyByName (const std::string &name)
 
void validateDerivativeMaterialPropertyBase (const std::string &base)
 
const MaterialPropertyName derivativePropertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName derivativePropertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
const MaterialPropertyName derivativePropertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
 
const MaterialPropertyName derivativePropertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
GenericMaterialProperty< U, is_ad > & declarePropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, unsigned int v2, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, unsigned int v1, unsigned int v2=libMesh::invalid_uint, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, const SymbolName &c1, unsigned int v2, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative (const std::string &base, unsigned int v1, unsigned int v2=libMesh::invalid_uint, unsigned int v3=libMesh::invalid_uint)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< VariableName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const std::vector< SymbolName > &c)
 
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivativeByName (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2="", const SymbolName &c3="")
 
void validateCoupling (const MaterialPropertyName &base, const std::vector< VariableName > &c, bool validate_aux=true)
 
void validateCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
void validateCoupling (const MaterialPropertyName &base, const std::vector< VariableName > &c, bool validate_aux=true)
 
void validateCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
void validateNonlinearCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
void validateNonlinearCoupling (const MaterialPropertyName &base, const VariableName &c1="", const VariableName &c2="", const VariableName &c3="")
 
const MaterialPropertyName propertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName propertyName (const MaterialPropertyName &base, const std::vector< SymbolName > &c) const
 
const MaterialPropertyName propertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
const MaterialPropertyName propertyNameFirst (const MaterialPropertyName &base, const SymbolName &c1) const
 
const MaterialPropertyName propertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
 
const MaterialPropertyName propertyNameSecond (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2) const
 
const MaterialPropertyName propertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
 
const MaterialPropertyName propertyNameThird (const MaterialPropertyName &base, const SymbolName &c1, const SymbolName &c2, const SymbolName &c3) const
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Types

enum  PressureUnitEnum { PressureUnitEnum::Pa, PressureUnitEnum::MPa }
 Unit used for porepressure. More...
 
enum  TimeUnitEnum { TimeUnitEnum::seconds, TimeUnitEnum::hours, TimeUnitEnum::days, TimeUnitEnum::years }
 Unit used for time. More...
 

Protected Member Functions

virtual void initQpStatefulProperties () override
 
virtual void computeQpProperties () override
 

Protected Attributes

MaterialProperty< Real > *const _ddensity_dX
 Derivative of fluid density wrt salt mass fraction at the qps or nodes. More...
 
MaterialProperty< Real > *const _dviscosity_dX
 Derivative of fluid phase viscosity wrt salt mass fraction at the nodes or qps. More...
 
MaterialProperty< Real > *const _dinternal_energy_dX
 Derivative of fluid internal_energy wrt salt mass fraction at the qps or nodes. More...
 
MaterialProperty< Real > *const _denthalpy_dX
 Derivative of fluid enthalpy wrt salt mass fraction at the qps or nodes. More...
 
const BrineFluidProperties_brine_fp
 Brine fluid properties UserObject. More...
 
const SinglePhaseFluidProperties_water_fp
 Water fluid properties UserObject. More...
 
const bool _is_xnacl_nodal
 Flag for nodal NaCl mass fraction. More...
 
const VariableValue_xnacl
 NaCl mass fraction at the qps or nodes. More...
 
const bool _is_xnacl_pfvar
 Flag to denote whether NaCl mass fraction is a nonlinear variable. More...
 
const GenericMaterialProperty< std::vector< Real >, is_ad > & _porepressure
 Pore pressure at the nodes or quadpoints. More...
 
const GenericMaterialProperty< Real, is_ad > & _temperature
 Fluid temperature at the nodes or quadpoints. More...
 
const Real _t_c2k
 Conversion from degrees Celsius to degrees Kelvin. More...
 
const Real _R
 Universal gas constant. More...
 
enum PorousFlowFluidPropertiesBaseTempl::PressureUnitEnum _p_unit
 
const Real _pressure_to_Pascals
 convert porepressure to Pascals by multiplying by this quantity More...
 
enum PorousFlowFluidPropertiesBaseTempl::TimeUnitEnum _time_unit
 
const Real _time_to_seconds
 convert time to seconds by multiplying by this quantity More...
 
const bool _compute_rho_mu
 If true, this Material will compute density and viscosity, and their derivatives. More...
 
const bool _compute_internal_energy
 If true, this Material will compute internal energy and its derivatives. More...
 
const bool _compute_enthalpy
 If true, this Material will compute enthalpy and its derivatives. More...
 
GenericMaterialProperty< Real, is_ad > *const _density
 Fluid phase density at the qps or nodes. More...
 
MaterialProperty< Real > *const _ddensity_dp
 Derivative of fluid density wrt phase pore pressure at the qps or nodes. More...
 
MaterialProperty< Real > *const _ddensity_dT
 Derivative of fluid density wrt temperature at the qps or nodes. More...
 
GenericMaterialProperty< Real, is_ad > *const _viscosity
 Fluid phase viscosity at the nodes. More...
 
MaterialProperty< Real > *const _dviscosity_dp
 Derivative of fluid phase viscosity wrt pressure at the nodes. More...
 
MaterialProperty< Real > *const _dviscosity_dT
 Derivative of fluid phase viscosity wrt temperature at the nodes. More...
 
GenericMaterialProperty< Real, is_ad > *const _internal_energy
 Fluid phase internal_energy at the qps or nodes. More...
 
MaterialProperty< Real > *const _dinternal_energy_dp
 Derivative of fluid internal_energy wrt phase pore pressure at the qps or nodes. More...
 
MaterialProperty< Real > *const _dinternal_energy_dT
 Derivative of fluid internal_energy wrt temperature at the qps or nodes. More...
 
GenericMaterialProperty< Real, is_ad > *const _enthalpy
 Fluid phase enthalpy at the qps or nodes. More...
 
MaterialProperty< Real > *const _denthalpy_dp
 Derivative of fluid enthalpy wrt phase pore pressure at the qps or nodes. More...
 
MaterialProperty< Real > *const _denthalpy_dT
 Derivative of fluid enthalpy wrt temperature at the qps or nodes. More...
 
const unsigned int _phase_num
 Phase number of fluid. More...
 
const std::string _phase
 Stringified fluid phase number. More...
 

Detailed Description

Fluid properties of Brine.

Provides density, viscosity, derivatives wrt pressure and temperature at the quadpoints or nodes

Definition at line 19 of file PorousFlowBrine.h.

Member Enumeration Documentation

◆ PressureUnitEnum

template<bool is_ad>
enum PorousFlowFluidPropertiesBaseTempl::PressureUnitEnum
strongprotectedinherited

Unit used for porepressure.

Enumerator
Pa 
MPa 

Definition at line 43 of file PorousFlowFluidPropertiesBase.h.

43 { Pa, MPa } _p_unit;
enum PorousFlowFluidPropertiesBaseTempl::PressureUnitEnum _p_unit

◆ TimeUnitEnum

template<bool is_ad>
enum PorousFlowFluidPropertiesBaseTempl::TimeUnitEnum
strongprotectedinherited

Unit used for time.

Enumerator
seconds 
hours 
days 
years 

Definition at line 49 of file PorousFlowFluidPropertiesBase.h.

49 { seconds, hours, days, years } _time_unit;
enum PorousFlowFluidPropertiesBaseTempl::TimeUnitEnum _time_unit

Constructor & Destructor Documentation

◆ PorousFlowBrine()

PorousFlowBrine::PorousFlowBrine ( const InputParameters parameters)

Definition at line 26 of file PorousFlowBrine.C.

27  : PorousFlowFluidPropertiesBase(parameters),
29  ? (_nodal_material ? &declarePropertyDerivative<Real>(
30  "PorousFlow_fluid_phase_density_nodal" + _phase,
31  _mass_fraction_variable_name)
32  : &declarePropertyDerivative<Real>(
33  "PorousFlow_fluid_phase_density_qp" + _phase,
34  _mass_fraction_variable_name))
35  : nullptr),
38  ? (_nodal_material
39  ? &declarePropertyDerivative<Real>("PorousFlow_viscosity_nodal" + _phase,
40  _mass_fraction_variable_name)
41  : &declarePropertyDerivative<Real>("PorousFlow_viscosity_qp" + _phase,
42  _mass_fraction_variable_name))
43  : nullptr),
45  ? (_nodal_material
46  ? &declarePropertyDerivative<Real>(
47  "PorousFlow_fluid_phase_internal_energy_nodal" + _phase,
48  _mass_fraction_variable_name)
49  : &declarePropertyDerivative<Real>(
50  "PorousFlow_fluid_phase_internal_energy_qp" + _phase,
51  _mass_fraction_variable_name))
52  : nullptr),
54  ? (_nodal_material ? &declarePropertyDerivative<Real>(
55  "PorousFlow_fluid_phase_enthalpy_nodal" + _phase,
56  _mass_fraction_variable_name)
57  : &declarePropertyDerivative<Real>(
58  "PorousFlow_fluid_phase_enthalpy_qp" + _phase,
59  _mass_fraction_variable_name))
60  : nullptr),
61  _is_xnacl_nodal(isCoupled("xnacl") ? getFieldVar("xnacl", 0)->isNodal() : false),
62  _xnacl(_nodal_material && _is_xnacl_nodal ? coupledDofValues("xnacl") : coupledValue("xnacl")),
63  _is_xnacl_pfvar(_dictator.isPorousFlowVariable(coupled("xnacl")))
64 {
65  if (parameters.isParamSetByUser("water_fp"))
66  {
67  _water_fp = &getUserObject<SinglePhaseFluidProperties>("water_fp");
68 
69  // Check that a water userobject has actually been supplied
70  if (_water_fp->fluidName() != "water")
71  paramError("water_fp", "A water FluidProperties UserObject must be supplied");
72  }
73 
74  // BrineFluidProperties UserObject
75  const std::string brine_name = name() + ":brine";
76  {
77  const std::string class_name = "BrineFluidProperties";
78  InputParameters params = _app.getFactory().getValidParams(class_name);
79 
80  if (parameters.isParamSetByUser("water_fp"))
81  params.set<UserObjectName>("water_fp") = _water_fp->name();
82 
83  if (_tid == 0)
84  _fe_problem.addUserObject(class_name, brine_name, params);
85  }
86  _brine_fp = &_fe_problem.getUserObject<BrineFluidProperties>(brine_name);
87 }
MaterialProperty< Real > *const _denthalpy_dX
Derivative of fluid enthalpy wrt salt mass fraction at the qps or nodes.
const bool _compute_internal_energy
If true, this Material will compute internal energy and its derivatives.
const bool _is_xnacl_pfvar
Flag to denote whether NaCl mass fraction is a nonlinear variable.
const BrineFluidProperties * _brine_fp
Brine fluid properties UserObject.
T & set(const std::string &name, bool quiet_mode=false)
PorousFlowFluidPropertiesBaseTempl< false > PorousFlowFluidPropertiesBase
Brine (NaCl in H2O) fluid properties as a function of pressure (Pa), temperature (K) and NaCl mass fr...
virtual const std::string & name() const
const SinglePhaseFluidProperties * _water_fp
Water fluid properties UserObject.
const std::string name
Definition: Setup.h:20
const std::string _phase
Stringified fluid phase number.
MaterialProperty< Real > *const _dviscosity_dX
Derivative of fluid phase viscosity wrt salt mass fraction at the nodes or qps.
const bool _is_xnacl_nodal
Flag for nodal NaCl mass fraction.
const bool _compute_enthalpy
If true, this Material will compute enthalpy and its derivatives.
const T & getUserObject(const std::string &param_name, bool is_dependency=true) const
bool isParamSetByUser(const std::string &name) const
MaterialProperty< Real > *const _dinternal_energy_dX
Derivative of fluid internal_energy wrt salt mass fraction at the qps or nodes.
e e e e s T T T T T rho v v T e p T T virtual T std::string fluidName() const
Fluid name.
const VariableValue & _xnacl
NaCl mass fraction at the qps or nodes.
const bool _compute_rho_mu
If true, this Material will compute density and viscosity, and their derivatives. ...
MaterialProperty< Real > *const _ddensity_dX
Derivative of fluid density wrt salt mass fraction at the qps or nodes.

Member Function Documentation

◆ computeQpProperties()

void PorousFlowBrine::computeQpProperties ( )
overrideprotectedvirtual

Reimplemented from PorousFlowFluidPropertiesBaseTempl< is_ad >.

Definition at line 104 of file PorousFlowBrine.C.

105 {
106  const Real Tk = _temperature[_qp] + _t_c2k;
107 
108  if (_compute_rho_mu)
109  {
110  // Density and derivatives wrt pressure and temperature
111  Real rho, drho_dp, drho_dT, drho_dx;
113  _porepressure[_qp][_phase_num], Tk, _xnacl[_qp], rho, drho_dp, drho_dT, drho_dx);
114  (*_density)[_qp] = rho;
115  (*_ddensity_dp)[_qp] = drho_dp;
116  (*_ddensity_dT)[_qp] = drho_dT;
117  if (_is_xnacl_pfvar)
118  (*_ddensity_dX)[_qp] = drho_dx;
119 
120  // Viscosity and derivatives wrt pressure and temperature
121  Real mu, dmu_dp, dmu_dT, dmu_dx;
123  _porepressure[_qp][_phase_num], Tk, _xnacl[_qp], mu, dmu_dp, dmu_dT, dmu_dx);
124  (*_viscosity)[_qp] = mu;
125  (*_dviscosity_dp)[_qp] = dmu_dp;
126  (*_dviscosity_dT)[_qp] = dmu_dT;
127  if (_is_xnacl_pfvar)
128  (*_dviscosity_dX)[_qp] = dmu_dx;
129  }
130 
131  // Internal energy and derivatives wrt pressure and temperature
133  {
134  Real e, de_dp, de_dT, de_dx;
136  _porepressure[_qp][_phase_num], Tk, _xnacl[_qp], e, de_dp, de_dT, de_dx);
137  (*_internal_energy)[_qp] = e;
138  (*_dinternal_energy_dp)[_qp] = de_dp;
139  (*_dinternal_energy_dT)[_qp] = de_dT;
140  if (_is_xnacl_pfvar)
141  (*_dinternal_energy_dX)[_qp] = de_dx;
142  }
143 
144  // Enthalpy and derivatives wrt pressure and temperature
145  if (_compute_enthalpy)
146  {
147  Real h, dh_dp, dh_dT, dh_dx;
149  _porepressure[_qp][_phase_num], Tk, _xnacl[_qp], h, dh_dp, dh_dT, dh_dx);
150  (*_enthalpy)[_qp] = h;
151  (*_denthalpy_dp)[_qp] = dh_dp;
152  (*_denthalpy_dT)[_qp] = dh_dT;
153  if (_is_xnacl_pfvar)
154  (*_denthalpy_dX)[_qp] = dh_dx;
155  }
156 }
const bool _compute_internal_energy
If true, this Material will compute internal energy and its derivatives.
FPADReal h_from_p_T_X(const FPADReal &pressure, const FPADReal &temperature, const FPADReal &xnacl) const
const bool _is_xnacl_pfvar
Flag to denote whether NaCl mass fraction is a nonlinear variable.
virtual Real rho_from_p_T_X(Real pressure, Real temperature, Real xnacl) const override
const BrineFluidProperties * _brine_fp
Brine fluid properties UserObject.
virtual Real mu_from_p_T_X(Real pressure, Real temperature, Real xnacl) const override
const unsigned int _phase_num
Phase number of fluid.
const Real _t_c2k
Conversion from degrees Celsius to degrees Kelvin.
static const std::string mu
Definition: NS.h:123
const GenericMaterialProperty< Real, is_ad > & _temperature
Fluid temperature at the nodes or quadpoints.
const bool _compute_enthalpy
If true, this Material will compute enthalpy and its derivatives.
FPADReal e_from_p_T_X(const FPADReal &pressure, const FPADReal &temperature, const FPADReal &xnacl) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableValue & _xnacl
NaCl mass fraction at the qps or nodes.
const GenericMaterialProperty< std::vector< Real >, is_ad > & _porepressure
Pore pressure at the nodes or quadpoints.
const bool _compute_rho_mu
If true, this Material will compute density and viscosity, and their derivatives. ...

◆ initQpStatefulProperties()

void PorousFlowBrine::initQpStatefulProperties ( )
overrideprotectedvirtual

Definition at line 90 of file PorousFlowBrine.C.

91 {
92  if (_compute_rho_mu)
93  (*_density)[_qp] = _brine_fp->rho_from_p_T_X(
94  _porepressure[_qp][_phase_num], _temperature[_qp] + _t_c2k, _xnacl[_qp]);
96  (*_internal_energy)[_qp] = _brine_fp->e_from_p_T_X(
97  _porepressure[_qp][_phase_num], _temperature[_qp] + _t_c2k, _xnacl[_qp]);
99  (*_enthalpy)[_qp] = _brine_fp->h_from_p_T_X(
100  _porepressure[_qp][_phase_num], _temperature[_qp] + _t_c2k, _xnacl[_qp]);
101 }
const bool _compute_internal_energy
If true, this Material will compute internal energy and its derivatives.
FPADReal h_from_p_T_X(const FPADReal &pressure, const FPADReal &temperature, const FPADReal &xnacl) const
virtual Real rho_from_p_T_X(Real pressure, Real temperature, Real xnacl) const override
const BrineFluidProperties * _brine_fp
Brine fluid properties UserObject.
const unsigned int _phase_num
Phase number of fluid.
const Real _t_c2k
Conversion from degrees Celsius to degrees Kelvin.
const GenericMaterialProperty< Real, is_ad > & _temperature
Fluid temperature at the nodes or quadpoints.
const bool _compute_enthalpy
If true, this Material will compute enthalpy and its derivatives.
FPADReal e_from_p_T_X(const FPADReal &pressure, const FPADReal &temperature, const FPADReal &xnacl) const
const VariableValue & _xnacl
NaCl mass fraction at the qps or nodes.
const GenericMaterialProperty< std::vector< Real >, is_ad > & _porepressure
Pore pressure at the nodes or quadpoints.
const bool _compute_rho_mu
If true, this Material will compute density and viscosity, and their derivatives. ...

◆ validParams()

InputParameters PorousFlowBrine::validParams ( )
static

Definition at line 15 of file PorousFlowBrine.C.

16 {
18  params.addParam<UserObjectName>("water_fp",
19  "The name of the FluidProperties UserObject for water");
20  params.addCoupledVar("xnacl", 0, "The salt mass fraction in the brine (kg/kg)");
21  params.addClassDescription(
22  "This Material calculates fluid properties for brine at the quadpoints or nodes");
23  return params;
24 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)

Member Data Documentation

◆ _brine_fp

const BrineFluidProperties* PorousFlowBrine::_brine_fp
protected

Brine fluid properties UserObject.

Definition at line 43 of file PorousFlowBrine.h.

Referenced by computeQpProperties(), initQpStatefulProperties(), and PorousFlowBrine().

◆ _compute_enthalpy

template<bool is_ad>
const bool PorousFlowFluidPropertiesBaseTempl< is_ad >::_compute_enthalpy
protectedinherited

If true, this Material will compute enthalpy and its derivatives.

Definition at line 61 of file PorousFlowFluidPropertiesBase.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().

◆ _compute_internal_energy

template<bool is_ad>
const bool PorousFlowFluidPropertiesBaseTempl< is_ad >::_compute_internal_energy
protectedinherited

If true, this Material will compute internal energy and its derivatives.

Definition at line 58 of file PorousFlowFluidPropertiesBase.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().

◆ _compute_rho_mu

template<bool is_ad>
const bool PorousFlowFluidPropertiesBaseTempl< is_ad >::_compute_rho_mu
protectedinherited

If true, this Material will compute density and viscosity, and their derivatives.

Definition at line 55 of file PorousFlowFluidPropertiesBase.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().

◆ _ddensity_dp

template<bool is_ad>
MaterialProperty<Real>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_ddensity_dp
protectedinherited

Derivative of fluid density wrt phase pore pressure at the qps or nodes.

Definition at line 67 of file PorousFlowFluidPropertiesBase.h.

◆ _ddensity_dT

template<bool is_ad>
MaterialProperty<Real>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_ddensity_dT
protectedinherited

Derivative of fluid density wrt temperature at the qps or nodes.

Definition at line 70 of file PorousFlowFluidPropertiesBase.h.

◆ _ddensity_dX

MaterialProperty<Real>* const PorousFlowBrine::_ddensity_dX
protected

Derivative of fluid density wrt salt mass fraction at the qps or nodes.

Definition at line 31 of file PorousFlowBrine.h.

◆ _density

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_density
protectedinherited

Fluid phase density at the qps or nodes.

Definition at line 64 of file PorousFlowFluidPropertiesBase.h.

◆ _denthalpy_dp

template<bool is_ad>
MaterialProperty<Real>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_denthalpy_dp
protectedinherited

Derivative of fluid enthalpy wrt phase pore pressure at the qps or nodes.

Definition at line 94 of file PorousFlowFluidPropertiesBase.h.

◆ _denthalpy_dT

template<bool is_ad>
MaterialProperty<Real>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_denthalpy_dT
protectedinherited

Derivative of fluid enthalpy wrt temperature at the qps or nodes.

Definition at line 97 of file PorousFlowFluidPropertiesBase.h.

◆ _denthalpy_dX

MaterialProperty<Real>* const PorousFlowBrine::_denthalpy_dX
protected

Derivative of fluid enthalpy wrt salt mass fraction at the qps or nodes.

Definition at line 40 of file PorousFlowBrine.h.

◆ _dinternal_energy_dp

template<bool is_ad>
MaterialProperty<Real>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_dinternal_energy_dp
protectedinherited

Derivative of fluid internal_energy wrt phase pore pressure at the qps or nodes.

Definition at line 85 of file PorousFlowFluidPropertiesBase.h.

◆ _dinternal_energy_dT

template<bool is_ad>
MaterialProperty<Real>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_dinternal_energy_dT
protectedinherited

Derivative of fluid internal_energy wrt temperature at the qps or nodes.

Definition at line 88 of file PorousFlowFluidPropertiesBase.h.

◆ _dinternal_energy_dX

MaterialProperty<Real>* const PorousFlowBrine::_dinternal_energy_dX
protected

Derivative of fluid internal_energy wrt salt mass fraction at the qps or nodes.

Definition at line 37 of file PorousFlowBrine.h.

◆ _dviscosity_dp

template<bool is_ad>
MaterialProperty<Real>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_dviscosity_dp
protectedinherited

Derivative of fluid phase viscosity wrt pressure at the nodes.

Definition at line 76 of file PorousFlowFluidPropertiesBase.h.

◆ _dviscosity_dT

template<bool is_ad>
MaterialProperty<Real>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_dviscosity_dT
protectedinherited

Derivative of fluid phase viscosity wrt temperature at the nodes.

Definition at line 79 of file PorousFlowFluidPropertiesBase.h.

◆ _dviscosity_dX

MaterialProperty<Real>* const PorousFlowBrine::_dviscosity_dX
protected

Derivative of fluid phase viscosity wrt salt mass fraction at the nodes or qps.

Definition at line 34 of file PorousFlowBrine.h.

◆ _enthalpy

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_enthalpy
protectedinherited

Fluid phase enthalpy at the qps or nodes.

Definition at line 91 of file PorousFlowFluidPropertiesBase.h.

◆ _internal_energy

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_internal_energy
protectedinherited

Fluid phase internal_energy at the qps or nodes.

Definition at line 82 of file PorousFlowFluidPropertiesBase.h.

◆ _is_xnacl_nodal

const bool PorousFlowBrine::_is_xnacl_nodal
protected

Flag for nodal NaCl mass fraction.

Definition at line 49 of file PorousFlowBrine.h.

◆ _is_xnacl_pfvar

const bool PorousFlowBrine::_is_xnacl_pfvar
protected

Flag to denote whether NaCl mass fraction is a nonlinear variable.

Definition at line 55 of file PorousFlowBrine.h.

Referenced by computeQpProperties().

◆ _p_unit

template<bool is_ad>
enum PorousFlowFluidPropertiesBaseTempl::PressureUnitEnum PorousFlowFluidPropertiesBaseTempl< is_ad >::_p_unit
protectedinherited

◆ _phase

const std::string PorousFlowMaterialBase::_phase
protectedinherited

Stringified fluid phase number.

Definition at line 34 of file PorousFlowMaterialBase.h.

◆ _phase_num

const unsigned int PorousFlowMaterialBase::_phase_num
protectedinherited

◆ _porepressure

template<bool is_ad>
const GenericMaterialProperty<std::vector<Real>, is_ad>& PorousFlowFluidPropertiesBaseTempl< is_ad >::_porepressure
protectedinherited

Pore pressure at the nodes or quadpoints.

Definition at line 31 of file PorousFlowFluidPropertiesBase.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().

◆ _pressure_to_Pascals

template<bool is_ad>
const Real PorousFlowFluidPropertiesBaseTempl< is_ad >::_pressure_to_Pascals
protectedinherited

convert porepressure to Pascals by multiplying by this quantity

Definition at line 46 of file PorousFlowFluidPropertiesBase.h.

◆ _R

template<bool is_ad>
const Real PorousFlowFluidPropertiesBaseTempl< is_ad >::_R
protectedinherited

Universal gas constant.

Definition at line 40 of file PorousFlowFluidPropertiesBase.h.

◆ _t_c2k

template<bool is_ad>
const Real PorousFlowFluidPropertiesBaseTempl< is_ad >::_t_c2k
protectedinherited

Conversion from degrees Celsius to degrees Kelvin.

Definition at line 37 of file PorousFlowFluidPropertiesBase.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().

◆ _temperature

template<bool is_ad>
const GenericMaterialProperty<Real, is_ad>& PorousFlowFluidPropertiesBaseTempl< is_ad >::_temperature
protectedinherited

Fluid temperature at the nodes or quadpoints.

Definition at line 34 of file PorousFlowFluidPropertiesBase.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().

◆ _time_to_seconds

template<bool is_ad>
const Real PorousFlowFluidPropertiesBaseTempl< is_ad >::_time_to_seconds
protectedinherited

convert time to seconds by multiplying by this quantity

Definition at line 52 of file PorousFlowFluidPropertiesBase.h.

◆ _time_unit

template<bool is_ad>
enum PorousFlowFluidPropertiesBaseTempl::TimeUnitEnum PorousFlowFluidPropertiesBaseTempl< is_ad >::_time_unit
protectedinherited

◆ _viscosity

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>* const PorousFlowFluidPropertiesBaseTempl< is_ad >::_viscosity
protectedinherited

Fluid phase viscosity at the nodes.

Definition at line 73 of file PorousFlowFluidPropertiesBase.h.

◆ _water_fp

const SinglePhaseFluidProperties* PorousFlowBrine::_water_fp
protected

Water fluid properties UserObject.

Definition at line 46 of file PorousFlowBrine.h.

Referenced by PorousFlowBrine().

◆ _xnacl

const VariableValue& PorousFlowBrine::_xnacl
protected

NaCl mass fraction at the qps or nodes.

Definition at line 52 of file PorousFlowBrine.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().


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