20 "reaction_coefficient",
21 "The name of the reaction (can be either a scalar, vector, or matrix) material property.");
23 "An automatic differentiation kernel for the array reaction operator ($r * u$)");
29 _r(hasADMaterialProperty<Real>(
"reaction_coefficient")
30 ? &getADMaterialProperty<Real>(
"reaction_coefficient")
32 _r_array(hasADMaterialProperty<RealEigenVector>(
"reaction_coefficient")
33 ? &getADMaterialProperty<RealEigenVector>(
"reaction_coefficient")
35 _r_2d_array(hasADMaterialProperty<RealEigenMatrix>(
"reaction_coefficient")
36 ? &getADMaterialProperty<RealEigenMatrix>(
"reaction_coefficient")
41 MaterialPropertyName mat = getParam<MaterialPropertyName>(
"reaction_coefficient");
42 mooseError(
"Property '" + mat +
"' is of unsupported type for ADArrayReaction");
registerMooseObject("MooseApp", ADArrayReaction)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Base class for array variable (equation) kernels using automatic differentiation.
const ADArrayVariableValue & _u
Holds the solution at current quadrature points.
const ArrayVariableTestValue & _test
the current test function
static InputParameters validParams()
Array kernel for adding a reaction term.
virtual void computeQpResidual(ADRealEigenVector &residual) override
Compute this Kernel's contribution to the residual at the current quadrature point,...
const ADMaterialProperty< RealEigenVector > *const _r_array
array reaction coefficient
static InputParameters validParams()
const ADMaterialProperty< RealEigenMatrix > *const _r_2d_array
matrix of reaction coefficients (for cross reaction terms between array variables)
ADArrayReaction(const InputParameters ¶meters)
const ADMaterialProperty< Real > * _r
scalar reaction coefficient
static InputParameters validParams()
unsigned int _qp
The current quadrature point index.
unsigned int _i
current index for the test function