19 "A function that returns a constant value as defined by an input parameter.");
20 params.
addParam<Real>(
"value", 0.0,
"The constant value");
26 :
Function(parameters), _value(getParam<Real>(
"value"))
51 return RealVectorValue(0);
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MooseApp", ConstantFunction)
Class that represents constant function.
static InputParameters validParams()
ConstantFunction(const InputParameters ¶meters)
virtual Real value(Real t, const Point &p) const override
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero,...
virtual Real timeDerivative(Real t, const Point &p) const override
Get the time derivative of the function.
virtual RealVectorValue gradient(Real t, const Point &p) const override
Function objects can optionally provide a gradient at a point.
virtual Real timeIntegral(Real t1, Real t2, const Point &p) const override
Computes the time integral at a spatial point between two time values.
Base class for function objects.
static InputParameters validParams()
Class constructor.