43 mooseAssert(
_kappa_var_ptr,
"kappa pointer should have been set in the constructor");
94 "A scalar_variable has been set and compute_scalar_residuals=true, ",
95 "but the computeScalarQpResidual method was not overridden. Accidental call of base class?");
DualNumber< Real, DNDerivativeType, true > ADReal
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
virtual void computeJacobian() override
Method for computing the Jacobian.
virtual void computeResidual() override
Method for computing the residual.
This Constraint adds standardized methods for assembling to a primary scalar variable associated with...
virtual void initScalarQpResidual()
Put necessary evaluations depending on qp but independent of test functions here.
virtual void computeJacobian() override
Computes d-_var-residual / d-_var and d-_var-residual / d-jvar, as well as d-_kappa-residual / d-_var...
static InputParameters validParams()
const unsigned int _kappa_var
The unknown scalar variable ID.
const MooseVariableScalar & scalarVariable() const
The scalar variable that this kernel operates on.
virtual void computeResidual() override
Computes _var-residuals as well as _kappa-residual.
const MooseVariableScalar *const _kappa_var_ptr
(Pointer to) Scalar variable this kernel operates on
virtual ADReal computeScalarQpResidual()
Method for computing the scalar part of residual at quadrature points.
const ADVariableValue & _kappa
Reference to the current solution at the current quadrature point.
const bool _use_scalar
Whether a scalar variable is declared for this constraint.
unsigned int _h
Used internally to iterate over each scalar component.
const bool _compute_scalar_residuals
Whether to compute scalar contributions for this instance.
const unsigned int _k_order
Order of the scalar variable, used in several places.
const InputParameters & parameters() const
Get the parameters of the object.
Class for scalar variables (they are different).