19 "Set this to make v a coupled variable, otherwise it will use the " 20 "kernel's nonlinear variable for v");
23 "The reaction rate used with the kernel");
25 params.
addCoupledVar(
"args",
"Vector of nonlinear variable arguments this object depends on");
31 _is_coupled(isCoupled(
"v")),
32 _v_name(_is_coupled ? coupledName(
"v") : _var.
name()),
33 _v(_is_coupled ? coupledValue(
"v") : _u),
34 _v_var(_is_coupled ? coupled(
"v") : _var.number()),
35 _L(getMaterialProperty<
Real>(
"reaction_rate")),
36 _eta_name(_var.
name()),
37 _dLdop(getMaterialPropertyDerivative<
Real>(
"reaction_rate", _eta_name)),
38 _dLdv(getMaterialPropertyDerivative<
Real>(
"reaction_rate", _v_name)),
42 for (
unsigned int i = 0; i <
_n_args; ++i)
43 _dLdarg[i] = &getMaterialPropertyDerivative<Real>(
"reaction_rate", i);
49 validateNonlinearCoupling<Real>(
"reaction_rate");
std::string name(const ElemQuality q)
static InputParameters validParams()
static InputParameters validParams()
virtual void initialSetup()
Gets called at the beginning of the simulation before this object is asked to do its job...
This kernel adds to the residual a contribution of where is a material property and is a variable ...
Interface class ("Veneer") for Kernel to provide a mapping from 'jvar' in computeQpOffDiagJacobian in...
MatReaction(const InputParameters ¶meters)
const VariableTestValue & _test
the current test function
const MaterialProperty< Real > & _dLdv
Reaction rate derivative w.r.t. the variable being added by this kernel.
unsigned int _i
current index for the test function
unsigned int mapJvarToCvar(unsigned int jvar)
Return index into the _coupled_moose_vars array for a given jvar.
const MaterialProperty< Real > & _dLdop
Reaction rate derivative w.r.t. order parameter.
virtual Real computeQpResidual()
Compute this Kernel's contribution to the residual at the current quadrature point.
unsigned int _j
current index for the shape function
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
For coupling standard variables.
const bool _is_coupled
is the kernel used in a coupled form?
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Interface class ("Veneer") to provide generator methods for derivative material property names...
std::vector< const MaterialProperty< Real > * > _dLdarg
Reaction rate derivatives w.r.t. other coupled variables.
const MaterialProperty< Real > & _L
Reaction rate.
const unsigned int _n_args
number of coupled moose variables
const VariablePhiValue & _phi
the current shape functions
registerMooseObject("MooseApp", MatReaction)
unsigned int _qp
The current quadrature point index.
virtual Real computeQpJacobian()
Compute this Kernel's contribution to the Jacobian at the current quadrature point.