Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PorousFlowPorosityConst Class Reference

Material to provide a constant value of porosity. More...

#include <PorousFlowPorosityConst.h>

Inheritance diagram for PorousFlowPorosityConst:

Public Member Functions

 PorousFlowPorosityConst (const InputParameters &parameters)

Protected Member Functions

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

Protected Attributes

const VariableValue & _input_porosity
 Constant porosity. More...
MaterialProperty< Real > & _porosity
 Computed porosity at the nodes or quadpoints. More...
MaterialProperty< std::vector< Real > > & _dporosity_dvar
 d(porosity)/d(PorousFlow variable) More...
MaterialProperty< std::vector< RealGradient > > & _dporosity_dgradvar
 d(porosity)/d(grad PorousFlow variable) More...
const unsigned int _num_phases
 Number of phases. More...
const unsigned int _num_components
 Number of fluid components. More...
const unsigned int _num_var
 Number of PorousFlow variables. More...

Detailed Description

Material to provide a constant value of porosity.

This can be specified by either a constant value in the input file, or taken from an aux variable. Note: this material assumes that the porosity remains constant throughout a simulation, so the coupled aux variable porosity must also remain constant.

Definition at line 26 of file PorousFlowPorosityConst.h.

Constructor & Destructor Documentation

◆ PorousFlowPorosityConst()

PorousFlowPorosityConst::PorousFlowPorosityConst ( const InputParameters &  parameters)

Definition at line 28 of file PorousFlowPorosityConst.C.

29  : PorousFlowPorosityBase(parameters), _input_porosity(coupledValue("porosity"))
30 {
31 }
PorousFlowPorosityBase(const InputParameters &parameters)
const VariableValue & _input_porosity
Constant porosity.

Member Function Documentation

◆ computeQpProperties()

void PorousFlowPorosityConst::computeQpProperties ( )

Definition at line 41 of file PorousFlowPorosityConst.C.

42 {
45  // The derivatives are zero for all time
46  _dporosity_dvar[_qp].assign(_num_var, 0.0);
48 }
VectorValue< Real > RealGradient
MaterialProperty< std::vector< Real > > & _dporosity_dvar
d(porosity)/d(PorousFlow variable)
MaterialProperty< std::vector< RealGradient > > & _dporosity_dgradvar
d(porosity)/d(grad PorousFlow variable)
const unsigned int _num_var
Number of PorousFlow variables.
virtual void initQpStatefulProperties() override

◆ initQpStatefulProperties()

void PorousFlowPorosityConst::initQpStatefulProperties ( )

Definition at line 34 of file PorousFlowPorosityConst.C.

Referenced by computeQpProperties().

35 {
36  // note the [0] below: _phi0 is a constant monomial and we use [0] regardless of _nodal_material
37  _porosity[_qp] = _input_porosity[0];
38 }
MaterialProperty< Real > & _porosity
Computed porosity at the nodes or quadpoints.
const VariableValue & _input_porosity
Constant porosity.

Member Data Documentation

◆ _dporosity_dgradvar

MaterialProperty<std::vector<RealGradient> >& PorousFlowPorosityBase::_dporosity_dgradvar

◆ _dporosity_dvar

MaterialProperty<std::vector<Real> >& PorousFlowPorosityBase::_dporosity_dvar

◆ _input_porosity

const VariableValue& PorousFlowPorosityConst::_input_porosity

Constant porosity.

Definition at line 36 of file PorousFlowPorosityConst.h.

Referenced by initQpStatefulProperties().

◆ _num_components

const unsigned int PorousFlowMaterialVectorBase::_num_components

◆ _num_phases

const unsigned int PorousFlowMaterialVectorBase::_num_phases

◆ _num_var

const unsigned int PorousFlowMaterialVectorBase::_num_var

◆ _porosity

MaterialProperty<Real>& PorousFlowPorosityBase::_porosity

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