18 params.
addClassDescription(
"Computes residual or the rate in a simple ODE of du/dt = rate.");
19 params.
addRequiredParam<Real>(
"rate",
"The constant rate in 'du/dt = rate'");
25 :
NodalKernel(parameters), _rate(getParam<Real>(
"rate"))
registerMooseObject("MooseApp", ConstantRate)
Represents the rate in a simple ODE of du/dt = rate.
virtual Real computeQpJacobian() override
The user can override this function to compute the "on-diagonal" Jacobian contribution.
ConstantRate(const InputParameters ¶meters)
static InputParameters validParams()
Constructor initializes the rate.
const Real & _rate
The rate.
virtual Real computeQpResidual() override
The user can override this function to compute the residual at a node.
Base class for creating nodal kernels with hand-coded Jacobians.
static InputParameters validParams()
Class constructor.