www.mooseframework.org
PorousFlowFullySaturatedDarcyBase.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef POROUSBASEFULLYSATURATEDDARCYBASE_H
9 #define POROUSBASEFULLYSATURATEDDARCYBASE_H
10 
11 #include "Kernel.h"
12 #include "PorousFlowDictator.h"
13 
15 
16 template <>
18 
24 class PorousFlowFullySaturatedDarcyBase : public Kernel
25 {
26 public:
27  PorousFlowFullySaturatedDarcyBase(const InputParameters & parameters);
28 
29 protected:
30  virtual Real computeQpResidual() override;
31  virtual Real computeQpJacobian() override;
32  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
33 
37  virtual Real mobility() const;
38 
43  virtual Real dmobility(unsigned pvar) const;
44 
47 
49  const MaterialProperty<RealTensorValue> & _permeability;
50 
52  const MaterialProperty<std::vector<RealTensorValue>> & _dpermeability_dvar;
53 
55  const MaterialProperty<std::vector<std::vector<RealTensorValue>>> & _dpermeability_dgradvar;
56 
58  const MaterialProperty<std::vector<Real>> & _density;
59 
61  const MaterialProperty<std::vector<std::vector<Real>>> & _ddensity_dvar;
62 
64  const MaterialProperty<std::vector<Real>> & _viscosity;
65 
67  const MaterialProperty<std::vector<std::vector<Real>>> & _dviscosity_dvar;
68 
70  const MaterialProperty<std::vector<Real>> & _pp;
71 
73  const MaterialProperty<std::vector<RealGradient>> & _grad_p;
74 
76  const MaterialProperty<std::vector<std::vector<Real>>> & _dgrad_p_dgrad_var;
77 
79  const MaterialProperty<std::vector<std::vector<RealGradient>>> & _dgrad_p_dvar;
80 
83 
85  const RealVectorValue _gravity;
86 };
87 
88 #endif // POROUSBASEFULLYSATURATEDDARCYBASE_H
const MaterialProperty< std::vector< std::vector< RealTensorValue > > > & _dpermeability_dgradvar
d(permeabiity)/d(grad(porous-flow variable))
const MaterialProperty< std::vector< Real > > & _pp
Quadpoint pore pressure in each phase.
InputParameters validParams< PorousFlowFullySaturatedDarcyBase >()
const MaterialProperty< RealTensorValue > & _permeability
Permeability of porous material.
const MaterialProperty< std::vector< std::vector< RealGradient > > > & _dgrad_p_dvar
Derivative of Grad porepressure in each phase wrt PorousFlow variables.
const RealVectorValue _gravity
Gravity pointing downwards.
const MaterialProperty< std::vector< std::vector< Real > > > & _ddensity_dvar
Derivative of the fluid density for each phase wrt PorousFlow variables (at the qp) ...
PorousFlowFullySaturatedDarcyBase(const InputParameters &parameters)
const MaterialProperty< std::vector< RealGradient > > & _grad_p
Gradient of the pore pressure in each phase.
const MaterialProperty< std::vector< Real > > & _viscosity
Viscosity of the fluid at the qp.
const MaterialProperty< std::vector< std::vector< Real > > > & _dviscosity_dvar
Derivative of the fluid viscosity wrt PorousFlow variables.
const bool _multiply_by_density
If true then the mobility contains the fluid density, otherwise it doesn&#39;t.
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const MaterialProperty< std::vector< RealTensorValue > > & _dpermeability_dvar
d(permeabiity)/d(porous-flow variable)
virtual Real mobility() const
The mobility of the fluid = density / viscosity.
virtual Real dmobility(unsigned pvar) const
The derivative of the mobility with respect to the porous-flow variable pvar.
const PorousFlowDictator & _porousflow_dictator
PorousFlow UserObject.
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
Darcy advective flux for a fully-saturated, single phase, single component fluid. ...
const MaterialProperty< std::vector< std::vector< Real > > > & _dgrad_p_dgrad_var
Derivative of Grad porepressure in each phase wrt grad(PorousFlow variables)
const MaterialProperty< std::vector< Real > > & _density
Fluid density for each phase (at the qp)