Go to the documentation of this file.
20 params.
addParam<MaterialPropertyName>(
"reaction_coefficient",
21 "The name of the reactivity, "
22 "can be scalar, vector, or matrix.");
24 "form of $(\\psi_i, u_h)$.");
30 _r(hasMaterialProperty<Real>(
"reaction_coefficient")
31 ? &getMaterialProperty<Real>(
"reaction_coefficient")
36 _r_2d_array(hasMaterialProperty<
RealEigenMatrix>(
"reaction_coefficient")
42 MaterialPropertyName mat = getParam<MaterialPropertyName>(
"reaction_coefficient");
43 mooseError(
"Property " + mat +
" is of unsupported type for ArrayReaction");
56 "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 "
unsigned int _i
current index for the test function
void mooseError(Args &&... args) const
registerMooseObject("MooseApp", ArrayReaction)
static InputParameters validParams()
unsigned int _j
current index for the shape function
static InputParameters validParams()
const MaterialProperty< RealEigenMatrix > * _r_2d_array
matrix diffusion coefficient
unsigned int _qp
The current quadrature point index.
unsigned int count() const
Get the number of components Note: For standard and vector variables, the number is one.
const MaterialProperty< RealEigenVector > * _r_array
array diffusion coefficient
ArrayReaction(const InputParameters ¶meters)
const ArrayVariableTestValue & _test
the current test function
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic > RealEigenMatrix
virtual RealEigenVector computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
virtual RealEigenMatrix computeQpOffDiagJacobian(MooseVariableFEBase &jvar) override
This is the virtual that derived classes should override for computing a full Jacobian component.
const MaterialProperty< Real > * _r
scalar diffusion coefficient
virtual RealEigenVector computeQpJacobian() override
Compute this Kernel's contribution to the diagonal Jacobian at the current quadrature point.
virtual RealEigenMatrix computeQpOffDiagJacobian(MooseVariableFEBase &jvar)
This is the virtual that derived classes should override for computing a full Jacobian component.
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealEigenVector
const ArrayVariablePhiValue & _phi
the current shape functions
ArrayMooseVariable & _var
This is an array kernel so we cast to a ArrayMooseVariable.
defineLegacyParams(ArrayReaction)
const ArrayVariableValue & _u
Holds the solution at current quadrature points.
unsigned int number() const
Get variable number coming from libMesh.