https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
PorousFlowEffectiveFluidPressureTempl< is_ad > Class Template Reference

Material designed to calculate the effective fluid pressure that can be used in the mechanical effective-stress calculations and other similar places. More...

#include <PorousFlowEffectiveFluidPressure.h>

Inheritance diagram for PorousFlowEffectiveFluidPressureTempl< is_ad >:
[legend]

Public Types

typedef DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
 

Public Member Functions

 PorousFlowEffectiveFluidPressureTempl (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 Member Functions

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

Protected Attributes

const GenericMaterialProperty< std::vector< Real >, is_ad > & _porepressure
 Quadpoint or nodal porepressure of each phase.
 
const MaterialProperty< std::vector< std::vector< Real > > > *const _dporepressure_dvar
 d(porepressure)/d(PorousFlow variable)
 
const GenericMaterialProperty< std::vector< Real >, is_ad > & _saturation
 Quadpoint or nodal saturation of each phase.
 
const MaterialProperty< std::vector< std::vector< Real > > > *const _dsaturation_dvar
 d(saturation)/d(PorousFlow variable)
 
GenericMaterialProperty< Real, is_ad > & _pf
 Computed effective fluid pressure (at quadpoints or nodes)
 
MaterialProperty< std::vector< Real > > *const _dpf_dvar
 d(_pf)/d(PorousFlow variable)
 
const unsigned int _num_phases
 Number of phases.
 
const unsigned int _num_components
 Number of fluid components.
 
const unsigned int _num_var
 Number of PorousFlow variables.
 

Private Member Functions

bool haveMaterialProperty (const std::string &prop_name)
 
std::vector< VariableName > buildVariableVector (const VariableName &c1, const VariableName &c2, const VariableName &c3)
 
void validateCouplingHelper (const MaterialPropertyName &base, const std::vector< VariableName > &c, const System &system, std::vector< VariableName > &missing)
 
bool isNotObjectVariable (const VariableName &name)
 

Private Attributes

FEProblemBase_dmi_fe_problem
 

Detailed Description

template<bool is_ad>
class PorousFlowEffectiveFluidPressureTempl< is_ad >

Material designed to calculate the effective fluid pressure that can be used in the mechanical effective-stress calculations and other similar places.

This class computes effective fluid pressure = sum_{phases}Saturation_{phase}*Porepressure_{phase}

Definition at line 21 of file PorousFlowEffectiveFluidPressure.h.

Constructor & Destructor Documentation

◆ PorousFlowEffectiveFluidPressureTempl()

Definition at line 29 of file PorousFlowEffectiveFluidPressure.C.

31 : PorousFlowMaterialVectorBase(parameters),
33 _nodal_material
34 ? getGenericMaterialProperty<std::vector<Real>, is_ad>("PorousFlow_porepressure_nodal")
35 : getGenericMaterialProperty<std::vector<Real>, is_ad>("PorousFlow_porepressure_qp")),
36 _dporepressure_dvar(is_ad ? nullptr
37 : _nodal_material ? &getMaterialProperty<std::vector<std::vector<Real>>>(
38 "dPorousFlow_porepressure_nodal_dvar")
39 : &getMaterialProperty<std::vector<std::vector<Real>>>(
40 "dPorousFlow_porepressure_qp_dvar")),
42 _nodal_material
43 ? getGenericMaterialProperty<std::vector<Real>, is_ad>("PorousFlow_saturation_nodal")
44 : getGenericMaterialProperty<std::vector<Real>, is_ad>("PorousFlow_saturation_qp")),
45 _dsaturation_dvar(is_ad ? nullptr
46 : _nodal_material ? &getMaterialProperty<std::vector<std::vector<Real>>>(
47 "dPorousFlow_saturation_nodal_dvar")
48 : &getMaterialProperty<std::vector<std::vector<Real>>>(
49 "dPorousFlow_saturation_qp_dvar")),
50 _pf(_nodal_material
51 ? declareGenericProperty<Real, is_ad>("PorousFlow_effective_fluid_pressure_nodal")
52 : declareGenericProperty<Real, is_ad>("PorousFlow_effective_fluid_pressure_qp")),
54 is_ad ? nullptr
55 : _nodal_material
56 ? &declareProperty<std::vector<Real>>("dPorousFlow_effective_fluid_pressure_nodal_dvar")
57 : &declareProperty<std::vector<Real>>("dPorousFlow_effective_fluid_pressure_qp_dvar"))
58{
59}
const MaterialProperty< std::vector< std::vector< Real > > > *const _dporepressure_dvar
d(porepressure)/d(PorousFlow variable)
MaterialProperty< std::vector< Real > > *const _dpf_dvar
d(_pf)/d(PorousFlow variable)
const MaterialProperty< std::vector< std::vector< Real > > > *const _dsaturation_dvar
d(saturation)/d(PorousFlow variable)
GenericMaterialProperty< Real, is_ad > & _pf
Computed effective fluid pressure (at quadpoints or nodes)
const GenericMaterialProperty< std::vector< Real >, is_ad > & _porepressure
Quadpoint or nodal porepressure of each phase.
const GenericMaterialProperty< std::vector< Real >, is_ad > & _saturation
Quadpoint or nodal saturation of each phase.
Base class for all PorousFlow vector materials.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Member Function Documentation

◆ computeQpProperties()

template<bool is_ad>
void PorousFlowEffectiveFluidPressureTempl< is_ad >::computeQpProperties ( )
overrideprotectedvirtual

Definition at line 72 of file PorousFlowEffectiveFluidPressure.C.

73{
74 _pf[_qp] = 0.0;
75
76 if (!is_ad)
77 (*_dpf_dvar)[_qp].assign(_num_var, 0.0);
78
79 for (unsigned int ph = 0; ph < _num_phases; ++ph)
80 {
81 _pf[_qp] += _saturation[_qp][ph] * _porepressure[_qp][ph];
82
83 if constexpr (!is_ad)
84 for (unsigned int v = 0; v < _num_var; ++v)
85 (*_dpf_dvar)[_qp][v] += (*_dsaturation_dvar)[_qp][ph][v] * _porepressure[_qp][ph] +
86 _saturation[_qp][ph] * (*_dporepressure_dvar)[_qp][ph][v];
87 }
88}
const double v
const unsigned int _num_phases
Number of phases.
const unsigned int _num_var
Number of PorousFlow variables.

◆ initQpStatefulProperties()

template<bool is_ad>
void PorousFlowEffectiveFluidPressureTempl< is_ad >::initQpStatefulProperties ( )
overrideprotectedvirtual

Definition at line 63 of file PorousFlowEffectiveFluidPressure.C.

64{
65 _pf[_qp] = 0.0;
66 for (unsigned int ph = 0; ph < _num_phases; ++ph)
67 _pf[_qp] += _saturation[_qp][ph] * _porepressure[_qp][ph];
68}

◆ validParams()

template<bool is_ad>
InputParameters PorousFlowEffectiveFluidPressureTempl< is_ad >::validParams ( )
static

Definition at line 17 of file PorousFlowEffectiveFluidPressure.C.

18{
20 params.set<std::string>("pf_material_type") = "effective_pressure";
21 params.addClassDescription("This Material calculates an effective fluid pressure: "
22 "effective_stress = total_stress + "
23 "biot_coeff*effective_fluid_pressure. The effective_fluid_pressure = "
24 "sum_{phases}(S_phase * P_phase)");
25 return params;
26}
void addClassDescription(const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)

Member Data Documentation

◆ _dpf_dvar

template<bool is_ad>
MaterialProperty<std::vector<Real> >* const PorousFlowEffectiveFluidPressureTempl< is_ad >::_dpf_dvar
protected

d(_pf)/d(PorousFlow variable)

Definition at line 48 of file PorousFlowEffectiveFluidPressure.h.

◆ _dporepressure_dvar

template<bool is_ad>
const MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowEffectiveFluidPressureTempl< is_ad >::_dporepressure_dvar
protected

d(porepressure)/d(PorousFlow variable)

Definition at line 36 of file PorousFlowEffectiveFluidPressure.h.

◆ _dsaturation_dvar

template<bool is_ad>
const MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowEffectiveFluidPressureTempl< is_ad >::_dsaturation_dvar
protected

d(saturation)/d(PorousFlow variable)

Definition at line 42 of file PorousFlowEffectiveFluidPressure.h.

◆ _num_components

const unsigned int PorousFlowMaterialVectorBase::_num_components
protectedinherited

◆ _num_phases

const unsigned int PorousFlowMaterialVectorBase::_num_phases
protectedinherited

◆ _num_var

const unsigned int PorousFlowMaterialVectorBase::_num_var
protectedinherited

◆ _pf

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>& PorousFlowEffectiveFluidPressureTempl< is_ad >::_pf
protected

Computed effective fluid pressure (at quadpoints or nodes)

Definition at line 45 of file PorousFlowEffectiveFluidPressure.h.

◆ _porepressure

template<bool is_ad>
const GenericMaterialProperty<std::vector<Real>, is_ad>& PorousFlowEffectiveFluidPressureTempl< is_ad >::_porepressure
protected

Quadpoint or nodal porepressure of each phase.

Definition at line 33 of file PorousFlowEffectiveFluidPressure.h.

◆ _saturation

template<bool is_ad>
const GenericMaterialProperty<std::vector<Real>, is_ad>& PorousFlowEffectiveFluidPressureTempl< is_ad >::_saturation
protected

Quadpoint or nodal saturation of each phase.

Definition at line 39 of file PorousFlowEffectiveFluidPressure.h.


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