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");
const unsigned int _v_var
The number of the coupled variable.
unsigned int number() const
Get variable number coming from libMesh.
MooseVariable & _var
variable this works on
Adds a force proportional to the value of the coupled variable.
virtual Real computeQpJacobian() override
The user can override this function to compute the "on-diagonal" Jacobian contribution.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
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...
const VariableValue & _v
The value of the coupled variable.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
CoupledForceNodalKernel(const InputParameters ¶meters)
static InputParameters validParams()
Class constructor.
static InputParameters validParams()
Base class for creating nodal kernels with hand-coded Jacobians.
registerMooseObject("MooseApp", CoupledForceNodalKernel)
unsigned int _qp
Quadrature point index.
const Real _coef
A multiplicative factor for computing the coupled force.