14 #include "libmesh/quadrature.h" 23 "PorousFlowDictator",
"The UserObject that holds the list of PorousFlow variable names.");
25 "conc_var",
"The variable that represents the concentration of desorped species");
34 _conc_var_number(coupled(
"conc_var")),
35 _conc(coupledValue(
"conc_var")),
36 _conc_old(coupledValueOld(
"conc_var")),
37 _porosity(getMaterialProperty<
Real>(
"PorousFlow_porosity_qp")),
38 _porosity_old(getMaterialPropertyOld<
Real>(
"PorousFlow_porosity_qp")),
39 _dporosity_dvar(getMaterialProperty<
std::vector<
Real>>(
"dPorousFlow_porosity_qp_dvar")),
41 getMaterialProperty<
std::vector<
RealGradient>>(
"dPorousFlow_porosity_qp_dgradvar"))
const VariableValue & _conc_old
Old value of the concentration variable.
const MaterialProperty< std::vector< RealGradient > > & _dporosity_dgradvar
d(porosity)/d(grad PorousFlow variable) - these derivatives will be wrt grad(vars) at qps ...
bool notPorousFlowVariable(unsigned int moose_var_num) const
Returns true if moose_var_num is not a porous flow variabe.
Kernel = (desorped_mass - desorped_mass_old)/dt It is NOT lumped to the nodes.
static InputParameters validParams()
unsigned int number() const
const VariablePhiGradient & _grad_phi
const MaterialProperty< Real > & _porosity_old
Old value of porosity.
const MaterialProperty< std::vector< Real > > & _dporosity_dvar
d(porosity)/d(PorousFlow variable) - these derivatives will be wrt variables at the qps ...
Real computeQpJac(unsigned int jvar) const
Derivative of residual with respect to variable number jvar This is used by both computeQpJacobian an...
const VariableTestValue & _test
Real deriv(unsigned n, unsigned alpha, unsigned beta, Real x)
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const VariableValue & _conc
The concentration variable.
virtual Real computeQpJacobian() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
const PorousFlowDictator & _dictator
PorousFlowDictator UserObject.
const unsigned int _conc_var_number
The MOOSE variable number of the concentration variable.
registerMooseObject("PorousFlowApp", PorousFlowDesorpedMassTimeDerivative)
const MaterialProperty< Real > & _porosity
Porosity at the qps.
PorousFlowDesorpedMassTimeDerivative(const InputParameters ¶meters)
unsigned int porousFlowVariableNum(unsigned int moose_var_num) const
The PorousFlow variable number.
virtual Real computeQpResidual() override
const VariablePhiValue & _phi
static InputParameters validParams()