35 mooseAssert(
_kappa_var_ptr,
"kappa pointer should have been set in the constructor");
131 "A scalar_variable has been set and compute_scalar_residuals=true, ",
132 "but the computeScalarQpResidual method was not overridden. Accidental call of base class?");
const ADVariableValue & _kappa
Reference to the current solution at the current quadrature point.
std::vector< ADReal > _scalar_residuals
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.
const bool _use_scalar
Whether a scalar variable is declared for this kernel.
unsigned int _h
Used internally to iterate over each scalar component.
const unsigned int _k_order
Order of the scalar variable, used in several places.
DualNumber< Real, DNDerivativeType, true > ADReal
static InputParameters validParams()
const MooseVariableScalar *const _kappa_var_ptr
(Pointer to) Scalar variable this kernel operates on
virtual void computeScalarResidualsForJacobian()
compute the _scalar_residuals member for filling the Jacobian.
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-_var-residual / d-jvar as well as d-_kappa-residual / d-jvar.
virtual void computeResidual() override
Compute this object's contribution to the residual.
virtual Real computeScalarQpOffDiagJacobianScalar(const unsigned int)
Method for computing an off-diagonal jacobian component at quadrature points.
void computeOffDiagJacobianScalar(unsigned int) override
Computes jacobian block with respect to a scalar variable.
const unsigned int _kappa_var
The unknown scalar variable ID.
virtual Real computeScalarQpJacobian()
Method for computing the scalar variable part of Jacobian at quadrature points Added solely for Gener...
ADKernelScalarBase(const InputParameters ¶meters)
virtual Real computeScalarQpOffDiagJacobian(const unsigned int)
Method for computing an off-diagonal jacobian component at quadrature points.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void computeResidualAndJacobian() override
Computes residual and jacobian block for field and scalar variables.
Class for scalar variables (they are different).
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
const bool _compute_field_residuals
Whether to compute field contributions for this instance.
const InputParameters & parameters() const
Get the parameters of the object.
const bool _compute_scalar_residuals
Whether to compute scalar contributions for this instance.
This ADKernel adds standardized methods for assembling to a primary scalar variable associated with t...
virtual void computeJacobian() override
Compute this object's contribution to the diagonal Jacobian entries.
virtual Real computeQpOffDiagJacobianScalar(unsigned int)
For coupling scalar variables Added solely for GenericKernelScalar override; should not be used...
virtual ADReal computeScalarQpResidual()
Method for computing the scalar part of residual at quadrature points.