21 "Implements a simple consuming reaction term at nodes for an array variable");
23 "Coefficients for multiplying the reaction term");
35 "The size of the coefficient vector must match the size of the array variable");
42 residual = _coeff.cwiseProduct(_u[_qp]);
50 setJacobian(i, i, _coeff(i));
registerMooseObject("MooseApp", ArrayReactionNodalKernel)
const RealEigenVector & _coeff
rate coefficient
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 ...
Represents a nodal reaction term equivalent to $a * u$.
Template for array nodal kernels, using or not automatic differentiation.
static InputParameters validParams()
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 ...
ArrayReactionNodalKernelTempl(const InputParameters ¶meters)
static InputParameters validParams()
const unsigned int _count
Number of components of the array variable.
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealEigenVector
auto index_range(const T &sizable)
Moose::GenericType< RealEigenVector, is_ad > GenericRealEigenVector