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"))
static InputParameters validParams()
registerMooseObject("MooseApp", DivField)
static InputParameters validParams()
const VectorVariablePhiDivergence & _div_phi
div of the shape function of the coupled vector variable
Weak form contribution corresponding to k*div(u)
const VariableTestValue & _test
the current test function
const VectorVariableDivergence & _div_u
div of the coupled vector variable
unsigned int _i
current index for the test function
Real _coeff
scalar coefficient
virtual Real computeQpOffDiagJacobian(unsigned jvar) override
unsigned int _j
current index for the shape function
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
DivField(const InputParameters ¶meters)
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
unsigned int _qp
The current quadrature point index.