36 virtual void setData(
const std::vector<Real> & x,
const std::vector<Real> & y)
override;
std::unique_ptr< LinearInterpolation > _linear_interp
helper object to perform the linear interpolation of the function data
static InputParameters validParams()
Function base which provides a piecewise approximation to a provided (x,y) point data set via input p...
virtual void setData(const std::vector< Real > &x, const std::vector< Real > &y) override
Provides a means for explicitly setting the x and y data.
PiecewiseLinearBase(const InputParameters ¶meters)
DualNumber< Real, DNDerivativeType, true > ADReal
Base class for functions which provides a piecewise continuous linear interpolation of an (x...
virtual RealGradient gradient(Real, const Point &p) const override
Function objects can optionally provide a gradient at a point.
virtual Real average() const override
Returns the average of the function over its domain.
void buildInterpolation(const bool extrap=false)
Builds the linear interpolation object from the x/y data.
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 &) const override
Get the time derivative of the function.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real integral() const override
Returns the integral of the function over its domain.
const InputParameters & parameters() const
Get the parameters of the object.
virtual Real timeIntegral(Real t1, Real t2, const Point &p) const override
Computes the time integral at a spatial point between two time values.
virtual Real value(Real t, const Point &p) const
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero...
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
bool _interpolation_created
Whether the interpolation has been created.