Go to the documentation of this file.
36 const Field<Type>& yOld
39 Field<Type> yNew(xNew.size());
61 if (
n == 1 ||
x < xOld[0])
73 return (
x - xOld[0])/(xOld[1] - xOld[0])*(yOld[1] - yOld[0]) + yOld[0];
78 while (hi <
n && xOld[hi] <
x)
85 const Type&
y1 = yOld[lo];
86 const Type& y2 = yOld[hi];
109 scalar
mu = (
x - xOld[lo])/(xOld[hi] - xOld[lo]);
119 +
mu*((2*
y0 - 5*
y1 + 4*y2 - y3) +
mu*(-
y0 + 3*
y1 - 3*y2 + y3))
dimensionedScalar y1(const dimensionedScalar &ds)
const dimensionedScalar mu
Atomic mass unit.
#define forAll(list, i)
Loop across all elements in list.
Specialisations of Field<T> for scalar, vector and tensor.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar y0(const dimensionedScalar &ds)
volScalarField scalarField(fieldObject, mesh)
Interpolates y values from one curve to another with a different x distribution.
Field< Type > interpolateSplineXY(const scalarField &xNew, const scalarField &xOld, const Field< Type > &yOld)