19 params.
addClassDescription(
"The divergence operator optionally scaled by a constant scalar "
20 "coefficient. Weak form: $(\\psi_i, k \\nabla \\cdot \\vec{u})$.");
22 params.
addParam<Real>(
"coeff", 1.0,
"The constant coefficient");
28 _u_var(*getVectorVar(
"coupled_vector_variable", 0)),
29 _u_var_num(coupled(
"coupled_vector_variable")),
30 _div_u(coupledDiv(
"coupled_vector_variable")),
31 _div_phi(_assembly.divPhi(_u_var)),
32 _coeff(getParam<Real>(
"coeff"))
registerMooseObject("MooseApp", DivField)
Weak form contribution corresponding to k*div(u)
static InputParameters validParams()
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
const VectorVariableDivergence & _div_u
div of the coupled vector variable
virtual Real computeQpOffDiagJacobian(unsigned jvar) override
DivField(const InputParameters ¶meters)
Real _coeff
scalar coefficient
const VectorVariablePhiDivergence & _div_phi
div of the shape function of the coupled vector variable
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
const VariableTestValue & _test
the current test function
static InputParameters validParams()