21 "Implements a simple consuming reaction term at nodes for an array variable");
23 "Coefficients for multiplying the reaction term");
31 _coeff(this->template getParam<RealEigenVector>(
"coeff"))
35 "The size of the coefficient vector must match the size of the array variable");
42 residual = _coeff.cwiseProduct(_u[_qp]);
49 for (
const auto i : index_range(_coeff))
50 setJacobian(i, i, _coeff(i));
registerMooseObject("MooseApp", ArrayReactionNodalKernel)
Moose::GenericType< RealEigenVector, is_ad > GenericRealEigenVector
const unsigned int _count
Number of components of the array variable.
Represents a nodal reaction term equivalent to $a * u$.
virtual void computeQpResidual(GenericRealEigenVector< is_ad > &residual) override
virtual void computeQpJacobian() override
The user can override this function to compute the intra-variable off-diagonal Jacobian contribution ...
const RealEigenVector & _coeff
rate coefficient
ArrayReactionNodalKernelTempl(const InputParameters ¶meters)
static InputParameters validParams()
Template for array nodal kernels, using or not automatic differentiation.
static InputParameters validParams()
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...