www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PorousFlow1PhaseFullySaturated Class Reference

Base 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 PorousFlow1PhaseFullySaturated:
[legend]

Public Member Functions

 PorousFlow1PhaseFullySaturated (const InputParameters &parameters)
 

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 VariableValue & _porepressure_var
 Nodal or quadpoint value of porepressure of the fluid phase. More...
 
const VariableGradient & _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...
 
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...
 
MaterialProperty< std::vector< Real > > & _porepressure
 Computed nodal or quadpoint values of porepressure of the phases. More...
 
MaterialProperty< std::vector< std::vector< Real > > > & _dporepressure_dvar
 d(porepressure)/d(PorousFlow variable) More...
 
MaterialProperty< std::vector< RealGradient > > *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...
 
MaterialProperty< std::vector< Real > > & _saturation
 Computed nodal or qp saturation of the phases. More...
 
MaterialProperty< std::vector< std::vector< Real > > > & _dsaturation_dvar
 d(saturation)/d(PorousFlow variable) More...
 
MaterialProperty< std::vector< RealGradient > > *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

Base 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 24 of file PorousFlow1PhaseFullySaturated.h.

Constructor & Destructor Documentation

PorousFlow1PhaseFullySaturated::PorousFlow1PhaseFullySaturated ( const InputParameters &  parameters)

Definition at line 22 of file PorousFlow1PhaseFullySaturated.C.

23  : PorousFlowVariableBase(parameters),
24 
25  _porepressure_var(_nodal_material ? coupledNodalValue("porepressure")
26  : coupledValue("porepressure")),
27  _gradp_qp_var(coupledGradient("porepressure")),
28  _porepressure_varnum(coupled("porepressure")),
29  _p_var_num(_dictator.isPorousFlowVariable(_porepressure_varnum)
30  ? _dictator.porousFlowVariableNum(_porepressure_varnum)
31  : 0)
32 {
33  if (_num_phases != 1)
34  mooseError("The Dictator proclaims that the number of phases is ",
35  _dictator.numPhases(),
36  " whereas PorousFlow1PhaseFullySaturated can only be used for 1-phase simulations."
37  " Be aware that the Dictator has noted your mistake.");
38 }
const unsigned int _p_var_num
the PorousFlow variable number of the porepressure
PorousFlowVariableBase(const InputParameters &parameters)
const VariableValue & _porepressure_var
Nodal or quadpoint value of porepressure of the fluid phase.
const unsigned int _porepressure_varnum
Moose variable number of the porepressure.
const unsigned int _num_phases
Number of phases.
const VariableGradient & _gradp_qp_var
Gradient(_porepressure at quadpoints)

Member Function Documentation

void PorousFlow1PhaseFullySaturated::buildQpPPSS ( )
protected

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

Definition at line 69 of file PorousFlow1PhaseFullySaturated.C.

Referenced by computeQpProperties(), and initQpStatefulProperties().

70 {
71  _porepressure[_qp][0] = _porepressure_var[_qp];
72  _saturation[_qp][0] = 1.0;
73 }
MaterialProperty< std::vector< Real > > & _saturation
Computed nodal or qp saturation of the phases.
const VariableValue & _porepressure_var
Nodal or quadpoint value of porepressure of the fluid phase.
MaterialProperty< std::vector< Real > > & _porepressure
Computed nodal or quadpoint values of porepressure of the phases.
void PorousFlow1PhaseFullySaturated::computeQpProperties ( )
overrideprotectedvirtual

Reimplemented from PorousFlowVariableBase.

Definition at line 48 of file PorousFlow1PhaseFullySaturated.C.

49 {
50  // Size vectors correctly and prepare the derivative matrices with zeroes
52 
53  buildQpPPSS();
54 
55  if (!_nodal_material)
56  (*_gradp_qp)[_qp][0] = _gradp_qp_var[_qp];
57 
58  // _porepressure is only dependent on _porepressure, and its derivative is 1
59  if (_dictator.isPorousFlowVariable(_porepressure_varnum))
60  {
61  // _porepressure is a PorousFlow variable
62  _dporepressure_dvar[_qp][0][_p_var_num] = 1.0;
63  if (!_nodal_material)
64  (*_dgradp_qp_dgradv)[_qp][0][_p_var_num] = 1.0;
65  }
66 }
MaterialProperty< std::vector< std::vector< Real > > > & _dporepressure_dvar
d(porepressure)/d(PorousFlow variable)
const unsigned int _p_var_num
the PorousFlow variable number of the porepressure
void buildQpPPSS()
Assemble std::vectors of porepressure, saturation and temperature at the quadpoints.
virtual void computeQpProperties() override
const unsigned int _porepressure_varnum
Moose variable number of the porepressure.
const VariableGradient & _gradp_qp_var
Gradient(_porepressure at quadpoints)
void PorousFlow1PhaseFullySaturated::initQpStatefulProperties ( )
overrideprotectedvirtual

Reimplemented from PorousFlowVariableBase.

Definition at line 41 of file PorousFlow1PhaseFullySaturated.C.

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

Member Data Documentation

MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowVariableBase::_dgradp_qp_dgradv
protectedinherited

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

Definition at line 52 of file PorousFlowVariableBase.h.

MaterialProperty<std::vector<std::vector<RealGradient> > >* const PorousFlowVariableBase::_dgradp_qp_dv
protectedinherited

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

Definition at line 55 of file PorousFlowVariableBase.h.

MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowVariableBase::_dgrads_qp_dgradv
protectedinherited

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

Definition at line 67 of file PorousFlowVariableBase.h.

MaterialProperty<std::vector<std::vector<RealGradient> > >* const PorousFlowVariableBase::_dgrads_qp_dv
protectedinherited

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

Definition at line 70 of file PorousFlowVariableBase.h.

MaterialProperty<std::vector<std::vector<Real> > >& PorousFlowVariableBase::_dporepressure_dvar
protectedinherited
MaterialProperty<std::vector<std::vector<Real> > >& PorousFlowVariableBase::_dsaturation_dvar
protectedinherited
MaterialProperty<std::vector<RealGradient> >* const PorousFlowVariableBase::_gradp_qp
protectedinherited

Grad(p) at the quadpoints.

Definition at line 49 of file PorousFlowVariableBase.h.

const VariableGradient& PorousFlow1PhaseFullySaturated::_gradp_qp_var
protected

Gradient(_porepressure at quadpoints)

Definition at line 41 of file PorousFlow1PhaseFullySaturated.h.

Referenced by computeQpProperties().

MaterialProperty<std::vector<RealGradient> >* const PorousFlowVariableBase::_grads_qp
protectedinherited

Grad(s) at the quadpoints.

Definition at line 64 of file PorousFlowVariableBase.h.

const unsigned int PorousFlowVariableBase::_num_components
protectedinherited
const unsigned int PorousFlowVariableBase::_num_pf_vars
protectedinherited
const unsigned int PorousFlowVariableBase::_num_phases
protectedinherited
const unsigned int PorousFlow1PhaseFullySaturated::_p_var_num
protected

the PorousFlow variable number of the porepressure

Definition at line 45 of file PorousFlow1PhaseFullySaturated.h.

Referenced by computeQpProperties().

MaterialProperty<std::vector<Real> >& PorousFlowVariableBase::_porepressure
protectedinherited
const VariableValue& PorousFlow1PhaseFullySaturated::_porepressure_var
protected

Nodal or quadpoint value of porepressure of the fluid phase.

Definition at line 39 of file PorousFlow1PhaseFullySaturated.h.

Referenced by buildQpPPSS().

const unsigned int PorousFlow1PhaseFullySaturated::_porepressure_varnum
protected

Moose variable number of the porepressure.

Definition at line 43 of file PorousFlow1PhaseFullySaturated.h.

Referenced by computeQpProperties().

MaterialProperty<std::vector<Real> >& PorousFlowVariableBase::_saturation
protectedinherited

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