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