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"))
const VectorVariableTestDivergence & _div_test
div of the test function
const VariableValue & _p
value of the coupled scalar variable
static InputParameters validParams()
const VariablePhiValue & _p_phi
shape function of the coupled scalar variable
GradField(const InputParameters ¶meters)
Real _coeff
scalar coefficient
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
unsigned int _i
current index for the test function
registerMooseObject("MooseApp", GradField)
unsigned int _j
current index for the shape function
Weak form contribution corresponding to -k*grad(p)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
virtual Real computeQpOffDiagJacobian(unsigned jvar) override
This is the virtual that derived classes should override for computing an off-diagonal Jacobian compo...
unsigned int _qp
The current quadrature point index.