19 "reaction_coefficient",
20 "The name of the reactivity, can be scalar, vector, or matrix material property.");
22 "form of $(\\psi_i, u_h)$.");
28 _r(hasMaterialProperty<Real>(
"reaction_coefficient")
29 ? &getMaterialProperty<Real>(
"reaction_coefficient")
31 _r_array(hasMaterialProperty<RealEigenVector>(
"reaction_coefficient")
32 ? &getMaterialProperty<RealEigenVector>(
"reaction_coefficient")
34 _r_2d_array(hasMaterialProperty<RealEigenMatrix>(
"reaction_coefficient")
35 ? &getMaterialProperty<RealEigenMatrix>(
"reaction_coefficient")
40 MaterialPropertyName mat = getParam<MaterialPropertyName>(
"reaction_coefficient");
41 mooseError(
"Property " + mat +
" is of unsupported type for ArrayReaction");
55 "reaction_coefficient size is inconsistent with the number of components of array "
64 "reaction_coefficient size is inconsistent with the number of components of array "
67 "reaction_coefficient size is inconsistent with the number of components of array "
registerMooseObject("MooseApp", ArrayReaction)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
const ArrayVariableTestValue & _test
the current test function
static InputParameters validParams()
ArrayMooseVariable & _var
This is an array kernel so we cast to a ArrayMooseVariable.
virtual RealEigenMatrix computeQpOffDiagJacobian(const MooseVariableFEBase &jvar)
This is the virtual that derived classes should override for computing a full Jacobian component.
const ArrayVariableValue & _u
Holds the solution at current quadrature points.
const ArrayVariablePhiValue & _phi
the current shape functions
const MaterialProperty< RealEigenMatrix > *const _r_2d_array
matrix diffusion coefficient
const MaterialProperty< RealEigenVector > *const _r_array
array diffusion coefficient
static InputParameters validParams()
const MaterialProperty< Real > *const _r
scalar diffusion coefficient
virtual RealEigenMatrix computeQpOffDiagJacobian(const MooseVariableFEBase &jvar) override
This is the virtual that derived classes should override for computing a full Jacobian component.
virtual void computeQpResidual(RealEigenVector &residual) override
Compute this Kernel's contribution to the residual at the current quadrature point,...
virtual RealEigenVector computeQpJacobian() override
Compute this Kernel's contribution to the diagonal Jacobian at the current quadrature point.
ArrayReaction(const InputParameters ¶meters)
unsigned int _qp
The current quadrature point index.
unsigned int _j
current index for the shape function
unsigned int _i
current index for the test function
unsigned int number() const
Get variable number coming from libMesh.
unsigned int count() const
Get the number of components Note: For standard and vector variables, the number is one.
This class provides an interface for common operations on field variables of both FE and FV types wit...