23 const std::vector<Real> & y,
34 const std::vector<Real> & y,
49 if (
_x.size() !=
_y.size())
50 mooseError(
"SplineInterpolation: vectors are not the same length");
53 for (
unsigned i = 0; !error && i + 1 <
_x.size(); ++i)
54 if (
_x[i] >=
_x[i + 1])
58 mooseError(
"x-values are not strictly increasing");
Real sample(Real x) const
This function will take an independent variable input and will return the dependent variable based on...
Real _yp1
boundary conditions
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Real sample2ndDerivative(const std::vector< Real > &x, const std::vector< Real > &y, const std::vector< Real > &y2, Real x_int) const
Real sample(const std::vector< Real > &x, const std::vector< Real > &y, const std::vector< Real > &y2, Real x_int) const
Real sampleDerivative(const std::vector< Real > &x, const std::vector< Real > &y, const std::vector< Real > &y2, Real x_int) const
void setData(const std::vector< Real > &x, const std::vector< Real > &y, Real yp1=_deriv_bound, Real ypn=_deriv_bound)
Set the x-, y- values and first derivatives.
unsigned int getSampleSize()
This function returns the size of the array holding the points, i.e.
std::vector< Real > _y2
Second derivatives.
Real sample2ndDerivative(Real x) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real sampleDerivative(Real x) const
void spline(const std::vector< Real > &x, const std::vector< Real > &y, std::vector< Real > &y2, Real yp1=_deriv_bound, Real ypn=_deriv_bound)
This function calculates the second derivatives based on supplied x and y-vectors.