18 params.
addClassDescription(
"Adds a force proportional to the value of the coupled variable");
21 "coef", 1.0,
"Coefficent ($\\sigma$) multiplier for the coupled force term.");
29 _v(coupledValue(
"v")),
30 _coef(getParam<Real>(
"coef"))
34 "Coupled variable 'v' needs to be different from 'variable' with CoupledForceNodalKernel, "
35 "consider using Reaction or somethig similar");
registerMooseObject("MooseApp", CoupledForceNodalKernel)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Adds a force proportional to the value of the coupled variable.
const unsigned int _v_var
The number of the coupled variable.
const Real _coef
A multiplicative factor for computing the coupled force.
static InputParameters validParams()
CoupledForceNodalKernel(const InputParameters ¶meters)
const VariableValue & _v
The value of the coupled variable.
virtual Real computeQpJacobian() override
The user can override this function to compute the "on-diagonal" Jacobian contribution.
virtual Real computeQpResidual() override
The user can override this function to compute the residual at a node.
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
This is the virtual that derived classes should override for computing an off-diagonal jacobian compo...
unsigned int number() const
Get variable number coming from libMesh.
unsigned int _qp
Quadrature point index.
Base class for creating nodal kernels with hand-coded Jacobians.
static InputParameters validParams()
Class constructor.
MooseVariable & _var
variable this works on