19 MooseEnum direction(
"LEFT RIGHT LEFT_INCLUSIVE RIGHT_INCLUSIVE",
"LEFT");
21 "direction", direction,
"Direction to look to find value: " + direction.
getRawNames());
22 params.
addClassDescription(
"Defines piece-wise constant data using a set of x-y data pairs");
39 const Real tolerance = 1.0e-14;
103 for (
unsigned i = 0; i < len - 1; ++i)
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MooseApp", PiecewiseConstant)
std::string getRawNames() const
Method for returning the raw name strings for this instance.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
virtual Real functionSize() const
virtual Real domain(const int i) const
virtual Real range(const int i) const
Function which provides a piecewise constant interpolation of a provided (x,y) point data set.
virtual Real average() const override
Returns the average of the function over its domain.
enum PiecewiseConstant::Direction _direction
virtual Real integral() const override
Returns the integral of the function over its domain.
virtual Real timeDerivative(Real t, const Point &pt) const override
Get the time derivative of the function (based on time only)
Direction
Enum for which direction to apply values.
PiecewiseConstant(const InputParameters ¶meters)
virtual Real value(Real t, const Point &p) const override
Get the value of the function (based on time only)
static InputParameters validParams()
Function base which provides a piecewise approximation to a provided (x,y) point data set via input p...
static InputParameters validParams()
const Real & _scale_factor
function value scale factor
unsigned int _axis
if _has_axis is true point component to use as function argument, otherwise use t