20 "coefficient. Weak form: $(\\nabla \\cdot \\vec{\\psi_i}, k v)$.");
22 params.
addParam<Real>(
"coeff", 1.0,
"The constant coefficient");
28 _p_var(*getVar(
"coupled_scalar_variable", 0)),
29 _p_var_num(coupled(
"coupled_scalar_variable")),
30 _p(coupledValue(
"coupled_scalar_variable")),
31 _p_phi(_assembly.phi(_p_var)),
32 _div_test(_var.divPhi()),
33 _coeff(getParam<Real>(
"coeff"))
registerMooseObject("MooseApp", GradField)
Weak form contribution corresponding to -k*grad(p)
const VariablePhiValue & _p_phi
shape function of the coupled scalar variable
const VariableValue & _p
value of the coupled scalar variable
const VectorVariableTestDivergence & _div_test
div of the test function
virtual Real computeQpOffDiagJacobian(unsigned jvar) override
static InputParameters validParams()
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
GradField(const InputParameters ¶meters)
Real _coeff
scalar coefficient
unsigned int _qp
The current quadrature point index.
unsigned int _j
current index for the shape function
unsigned int _i
current index for the test function
static InputParameters validParams()