27 "True for using SUPG in this kernel, false otherwise. " 28 "This has no effect if the material does not use SUPG.");
30 "richardsVarNames_UO",
"The UserObject that holds the list of Richards variable names.");
37 _pvar(_richards_name_UO.richards_var_num(_var.number())),
39 _use_supg(getParam<bool>(
"use_supg")),
41 _mass(getMaterialProperty<
std::vector<
Real>>(
"mass")),
42 _dmass(getMaterialProperty<
std::vector<
std::vector<
Real>>>(
"dmass")),
43 _mass_old(getMaterialProperty<
std::vector<
Real>>(
"mass_old")),
70 Real test_fcn_prime = 0;
79 return (test_fcn * mass_prime + test_fcn_prime * (mass - mass_old)) /
_dt;
virtual Real computeQpResidual()
const MaterialProperty< std::vector< std::vector< Real > > > & _dmass
d(fluid mass_i)/d(var_j)
const MaterialProperty< std::vector< Real > > & _mass
fluid mass (or fluid masses in multiphase) at quadpoints
const VariablePhiGradient & _grad_phi
registerMooseObject("RichardsApp", RichardsMassChange)
bool _use_supg
whether to use SUPG for this kernel (not recommended)
const MaterialProperty< std::vector< std::vector< RealVectorValue > > > & _dtauvel_SUPG_dv
deriv of tau_SUPG wrt variable
static InputParameters validParams()
bool not_richards_var(unsigned int moose_var_num) const
returns true if moose_var_num is not a richards var
This holds maps between pressure_var or pressure_var, sat_var used in RichardsMaterial and kernels...
const MaterialProperty< std::vector< RealVectorValue > > & _tauvel_SUPG
tau_SUPG
const MaterialProperty< std::vector< std::vector< RealTensorValue > > > & _dtauvel_SUPG_dgradv
derivative of tau_SUPG wrt grad(variable)
Kernel = (mass - mass_old)/dt where mass = porosity*density*saturation This is used for the time deri...
TensorValue< Real > RealTensorValue
const MaterialProperty< std::vector< Real > > & _mass_old
old value of fluid mass (or fluid masses in multiphase) at quadpoints
const VariableTestValue & _test
unsigned int _pvar
the Richards variable number eg, if richards name = 'pwater pgas poil', and this kernel is for pgas...
const RichardsVarNames & _richards_name_UO
holds info on the Richards variables
virtual Real computeQpJacobian()
Real computeQpJac(unsigned int wrt_num)
Derivative of residual with respect to wrt_num Richards variable This is used by both computeQpJacobi...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
unsigned int richards_var_num(unsigned int moose_var_num) const
the richards variable number
const VariableTestGradient & _grad_test
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
static InputParameters validParams()
RichardsMassChange(const InputParameters ¶meters)
const VariablePhiValue & _phi