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?");
static InputParameters validParams()
This Constraint adds standardized methods for assembling to a primary scalar variable associated with...
const MooseVariableScalar *const _kappa_var_ptr
(Pointer to) Scalar variable this kernel operates on
const InputParameters & parameters() const
Get the parameters of the object.
const bool _compute_scalar_residuals
Whether to compute scalar contributions for this instance.
DualNumber< Real, DNDerivativeType, true > ADReal
const unsigned int _k_order
Order of the scalar variable, used in several places.
virtual void computeResidual() override
Method for computing the residual.
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.
const unsigned int _kappa_var
The unknown scalar variable ID.
virtual void computeResidual() override
Computes _var-residuals as well as _kappa-residual.
virtual void computeJacobian() override
Method for computing the Jacobian.
Class for scalar variables (they are different).
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...
ADMortarScalarBase(const InputParameters ¶meters)
virtual void initScalarQpResidual()
Put necessary evaluations depending on qp but independent of test functions here. ...
const MooseVariableScalar & scalarVariable() const
The scalar variable that this kernel operates on.
unsigned int _h
Used internally to iterate over each scalar component.
virtual void computeJacobian() override
Computes d-_var-residual / d-_var and d-_var-residual / d-jvar, as well as d-_kappa-residual / d-_var...
virtual ADReal computeScalarQpResidual()
Method for computing the scalar part of residual at quadrature points.