Go to the documentation of this file.
64 using Kernel::computeOffDiagJacobian;
79 void upwind(
bool compute_res,
bool compute_jac,
unsigned int jvar);
88 const VariableValue &
_pp;
106 const MaterialProperty<RealVectorValue> &
_gravity;
std::vector< Real > _dmobility_dp
d(_mobility)/d(porepressure) These are used in the jacobian calculations
Real _viscosity
fluid viscosity
std::vector< Real > _dmobility_ds
d(_mobility)/d(saturation) These are used in the jacobian calculations
This is a fully upwinded flux Kernel The Variable of this Kernel should be the saturation.
const MaterialProperty< RealTensorValue > & _permeability
permeability
unsigned int _num_nodes
number of nodes in the element
Base class for Richards relative permeability classes that provide relative permeability as a functio...
std::vector< Real > _mobility
nodal values of mobility = density*relperm/viscosity These are multiplied by _flux_no_mob to give the...
virtual void computeJacobian() override
this simply calls upwind
const VariableValue & _pp
porepressure at the quadpoints
Q2PSaturationFlux(const InputParameters ¶meters)
void upwind(bool compute_res, bool compute_jac, unsigned int jvar)
Do the upwinding for both the residual and jacobian I've put both calculations in the same code to tr...
const VariableGradient & _grad_pp
grad(porepressure) at the quadpoints
InputParameters validParams< Q2PSaturationFlux >()
virtual void computeOffDiagJacobian(MooseVariableFEBase &jvar) override
this simply calls upwind
unsigned int _pp_var
variable number of the porepressure variable
const MaterialProperty< RealVectorValue > & _gravity
gravity
const RichardsDensity & _density
fluid density
const VariableValue & _pp_nodal
porepressure at the nodes
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
virtual void computeResidual() override
This simply calls upwind.
Real computeQpJac(unsigned int dvar)
the derivative of the flux without the upstream mobility terms
virtual Real computeQpResidual() override
Note that this is not the complete residual for the quadpoint In computeResidual we sum over the quad...
void prepareNodalValues()
calculates the nodal values of mobility, and derivatives thereof
const RichardsRelPerm & _relperm
fluid relative permeability