https://mooseframework.inl.gov
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PorousFlow1PhaseFullySaturatedTempl< is_ad > Class Template Reference

Material designed to calculate fluid phase porepressure and saturation for the single-phase situation assuming full saturation where porepressure is the nonlinear variable. More...

#include <PorousFlow1PhaseFullySaturated.h>

Inheritance diagram for PorousFlow1PhaseFullySaturatedTempl< is_ad >:
[legend]

Public Types

typedef DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
 

Public Member Functions

 PorousFlow1PhaseFullySaturatedTempl (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
 
void buildQpPPSS ()
 Assemble std::vectors of porepressure, saturation and temperature at the quadpoints. More...
 

Protected Attributes

const GenericVariableValue< is_ad > & _porepressure_var
 Nodal or quadpoint value of porepressure of the fluid phase. More...
 
const GenericVariableGradient< is_ad > & _gradp_qp_var
 Gradient(_porepressure at quadpoints) More...
 
const unsigned int _porepressure_varnum
 Moose variable number of the porepressure. More...
 
const unsigned int _p_var_num
 The PorousFlow variable number of the porepressure. More...
 
 usingPorousFlowVariableBaseMembers
 
const unsigned int _num_phases
 Number of phases. More...
 
const unsigned int _num_components
 Number of components. More...
 
const unsigned int _num_pf_vars
 Number of PorousFlow variables. More...
 
GenericMaterialProperty< std::vector< Real >, is_ad > & _porepressure
 Computed nodal or quadpoint values of porepressure of the phases. More...
 
MaterialProperty< std::vector< std::vector< Real > > > *const _dporepressure_dvar
 d(porepressure)/d(PorousFlow variable) More...
 
GenericMaterialProperty< std::vector< RealGradient >, is_ad > *const _gradp_qp
 Grad(p) at the quadpoints. More...
 
MaterialProperty< std::vector< std::vector< Real > > > *const _dgradp_qp_dgradv
 d(grad porepressure)/d(grad PorousFlow variable) at the quadpoints More...
 
MaterialProperty< std::vector< std::vector< RealGradient > > > *const _dgradp_qp_dv
 d(grad porepressure)/d(PorousFlow variable) at the quadpoints More...
 
GenericMaterialProperty< std::vector< Real >, is_ad > & _saturation
 Computed nodal or qp saturation of the phases. More...
 
MaterialProperty< std::vector< std::vector< Real > > > *const _dsaturation_dvar
 d(saturation)/d(PorousFlow variable) More...
 
GenericMaterialProperty< std::vector< RealGradient >, is_ad > *const _grads_qp
 Grad(s) at the quadpoints. More...
 
MaterialProperty< std::vector< std::vector< Real > > > *const _dgrads_qp_dgradv
 d(grad saturation)/d(grad PorousFlow variable) at the quadpoints More...
 
MaterialProperty< std::vector< std::vector< RealGradient > > > *const _dgrads_qp_dv
 d(grad saturation)/d(PorousFlow variable) at the quadpoints More...
 

Detailed Description

template<bool is_ad>
class PorousFlow1PhaseFullySaturatedTempl< is_ad >

Material designed to calculate fluid phase porepressure and saturation for the single-phase situation assuming full saturation where porepressure is the nonlinear variable.

Definition at line 20 of file PorousFlow1PhaseFullySaturated.h.

Constructor & Destructor Documentation

◆ PorousFlow1PhaseFullySaturatedTempl()

template<bool is_ad>
PorousFlow1PhaseFullySaturatedTempl< is_ad >::PorousFlow1PhaseFullySaturatedTempl ( const InputParameters parameters)

Definition at line 28 of file PorousFlow1PhaseFullySaturated.C.

31 
32  _porepressure_var(_nodal_material ? this->template coupledGenericDofValue<is_ad>("porepressure")
33  : this->template coupledGenericValue<is_ad>("porepressure")),
34  _gradp_qp_var(this->template coupledGenericGradient<is_ad>("porepressure")),
35  _porepressure_varnum(coupled("porepressure")),
36  _p_var_num(_dictator.isPorousFlowVariable(_porepressure_varnum)
37  ? _dictator.porousFlowVariableNum(_porepressure_varnum)
38  : 0)
39 {
40  if (_num_phases != 1)
41  mooseError("The Dictator proclaims that the number of phases is ",
42  _dictator.numPhases(),
43  " whereas PorousFlow1PhaseFullySaturated can only be used for 1-phase simulations."
44  " Be aware that the Dictator has noted your mistake.");
45 }
const GenericVariableGradient< is_ad > & _gradp_qp_var
Gradient(_porepressure at quadpoints)
void mooseError(Args &&... args)
const unsigned int _p_var_num
The PorousFlow variable number of the porepressure.
Base class for thermophysical variable materials, which assemble materials for primary variables such...
const unsigned int _porepressure_varnum
Moose variable number of the porepressure.
const unsigned int _num_phases
Number of phases.
const GenericVariableValue< is_ad > & _porepressure_var
Nodal or quadpoint value of porepressure of the fluid phase.

Member Function Documentation

◆ buildQpPPSS()

template<bool is_ad>
void PorousFlow1PhaseFullySaturatedTempl< is_ad >::buildQpPPSS ( )
protected

Assemble std::vectors of porepressure, saturation and temperature at the quadpoints.

Definition at line 79 of file PorousFlow1PhaseFullySaturated.C.

80 {
81  _porepressure[_qp][0] = _porepressure_var[_qp];
82  _saturation[_qp][0] = 1.0;
83 }
GenericMaterialProperty< std::vector< Real >, is_ad > & _porepressure
Computed nodal or quadpoint values of porepressure of the phases.
const GenericVariableValue< is_ad > & _porepressure_var
Nodal or quadpoint value of porepressure of the fluid phase.
GenericMaterialProperty< std::vector< Real >, is_ad > & _saturation
Computed nodal or qp saturation of the phases.

◆ computeQpProperties()

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

Reimplemented from PorousFlowVariableBaseTempl< is_ad >.

Definition at line 57 of file PorousFlow1PhaseFullySaturated.C.

58 {
59  // Size vectors correctly and prepare the derivative matrices with zeroes
61 
62  buildQpPPSS();
63 
64  if (!_nodal_material)
65  (*_gradp_qp)[_qp][0] = _gradp_qp_var[_qp];
66 
67  // _porepressure is only dependent on _porepressure, and its derivative is 1
68  if (!is_ad && _dictator.isPorousFlowVariable(_porepressure_varnum))
69  {
70  // _porepressure is a PorousFlow variable
71  (*_dporepressure_dvar)[_qp][0][_p_var_num] = 1.0;
72  if (!_nodal_material)
73  (*_dgradp_qp_dgradv)[_qp][0][_p_var_num] = 1.0;
74  }
75 }
virtual void computeQpProperties() override
const GenericVariableGradient< is_ad > & _gradp_qp_var
Gradient(_porepressure at quadpoints)
const unsigned int _p_var_num
The PorousFlow variable number of the porepressure.
const unsigned int _porepressure_varnum
Moose variable number of the porepressure.
void buildQpPPSS()
Assemble std::vectors of porepressure, saturation and temperature at the quadpoints.

◆ initQpStatefulProperties()

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

Reimplemented from PorousFlowVariableBaseTempl< is_ad >.

Definition at line 49 of file PorousFlow1PhaseFullySaturated.C.

50 {
52  buildQpPPSS();
53 }
virtual void initQpStatefulProperties() override
void buildQpPPSS()
Assemble std::vectors of porepressure, saturation and temperature at the quadpoints.

◆ validParams()

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

Definition at line 17 of file PorousFlow1PhaseFullySaturated.C.

18 {
20  params.addRequiredCoupledVar("porepressure",
21  "Variable that represents the porepressure of the single phase");
22  params.addClassDescription("This Material is used for the fully saturated single-phase situation "
23  "where porepressure is the primary variable");
24  return params;
25 }
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)

Member Data Documentation

◆ _dgradp_qp_dgradv

template<bool is_ad>
MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowVariableBaseTempl< is_ad >::_dgradp_qp_dgradv
protectedinherited

d(grad porepressure)/d(grad PorousFlow variable) at the quadpoints

Definition at line 51 of file PorousFlowVariableBase.h.

◆ _dgradp_qp_dv

template<bool is_ad>
MaterialProperty<std::vector<std::vector<RealGradient> > >* const PorousFlowVariableBaseTempl< is_ad >::_dgradp_qp_dv
protectedinherited

d(grad porepressure)/d(PorousFlow variable) at the quadpoints

Definition at line 54 of file PorousFlowVariableBase.h.

◆ _dgrads_qp_dgradv

template<bool is_ad>
MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowVariableBaseTempl< is_ad >::_dgrads_qp_dgradv
protectedinherited

d(grad saturation)/d(grad PorousFlow variable) at the quadpoints

Definition at line 66 of file PorousFlowVariableBase.h.

◆ _dgrads_qp_dv

template<bool is_ad>
MaterialProperty<std::vector<std::vector<RealGradient> > >* const PorousFlowVariableBaseTempl< is_ad >::_dgrads_qp_dv
protectedinherited

d(grad saturation)/d(PorousFlow variable) at the quadpoints

Definition at line 69 of file PorousFlowVariableBase.h.

◆ _dporepressure_dvar

template<bool is_ad>
MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowVariableBaseTempl< is_ad >::_dporepressure_dvar
protectedinherited

d(porepressure)/d(PorousFlow variable)

Definition at line 45 of file PorousFlowVariableBase.h.

◆ _dsaturation_dvar

template<bool is_ad>
MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowVariableBaseTempl< is_ad >::_dsaturation_dvar
protectedinherited

d(saturation)/d(PorousFlow variable)

Definition at line 60 of file PorousFlowVariableBase.h.

◆ _gradp_qp

template<bool is_ad>
GenericMaterialProperty<std::vector<RealGradient>, is_ad>* const PorousFlowVariableBaseTempl< is_ad >::_gradp_qp
protectedinherited

Grad(p) at the quadpoints.

Definition at line 48 of file PorousFlowVariableBase.h.

◆ _gradp_qp_var

template<bool is_ad>
const GenericVariableGradient<is_ad>& PorousFlow1PhaseFullySaturatedTempl< is_ad >::_gradp_qp_var
protected

◆ _grads_qp

template<bool is_ad>
GenericMaterialProperty<std::vector<RealGradient>, is_ad>* const PorousFlowVariableBaseTempl< is_ad >::_grads_qp
protectedinherited

Grad(s) at the quadpoints.

Definition at line 63 of file PorousFlowVariableBase.h.

◆ _num_components

template<bool is_ad>
const unsigned int PorousFlowVariableBaseTempl< is_ad >::_num_components
protectedinherited

◆ _num_pf_vars

template<bool is_ad>
const unsigned int PorousFlowVariableBaseTempl< is_ad >::_num_pf_vars
protectedinherited

Number of PorousFlow variables.

Definition at line 39 of file PorousFlowVariableBase.h.

◆ _num_phases

template<bool is_ad>
const unsigned int PorousFlowVariableBaseTempl< is_ad >::_num_phases
protectedinherited

◆ _p_var_num

template<bool is_ad>
const unsigned int PorousFlow1PhaseFullySaturatedTempl< is_ad >::_p_var_num
protected

The PorousFlow variable number of the porepressure.

Definition at line 43 of file PorousFlow1PhaseFullySaturated.h.

◆ _porepressure

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

◆ _porepressure_var

template<bool is_ad>
const GenericVariableValue<is_ad>& PorousFlow1PhaseFullySaturatedTempl< is_ad >::_porepressure_var
protected

Nodal or quadpoint value of porepressure of the fluid phase.

Definition at line 37 of file PorousFlow1PhaseFullySaturated.h.

◆ _porepressure_varnum

template<bool is_ad>
const unsigned int PorousFlow1PhaseFullySaturatedTempl< is_ad >::_porepressure_varnum
protected

Moose variable number of the porepressure.

Definition at line 41 of file PorousFlow1PhaseFullySaturated.h.

◆ _saturation

template<bool is_ad>
GenericMaterialProperty<std::vector<Real>, is_ad>& PorousFlowVariableBaseTempl< is_ad >::_saturation
protectedinherited

◆ usingPorousFlowVariableBaseMembers

template<bool is_ad>
PorousFlow1PhaseFullySaturatedTempl< is_ad >::usingPorousFlowVariableBaseMembers
protected

Definition at line 45 of file PorousFlow1PhaseFullySaturated.h.


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