functioninterpolate

Function for cubic hermite spline interpolation of table data

Extends from Modelica.Icons.Function (Icon for functions).

Information

This function returns the value on a cubic hermite spline through the given support points and provided spline derivatives at these points. The spline derivatives at the support points can be computed using AixLib.Utilities.Math.Functions.splineDerivatives. The support points must be monotonically increasing. Outside the provided support points, the function returns a linear extrapolation with the same slope as the cubic spline has at the respective support point.

A similar model is also used in the CONTAM software (Dols and Walton, 2015).

This function is used in AixLib.Airflow.Multizone.Table_m_flow and AixLib.Airflow.Multizone.Table_V_flow

References

  • W. S. Dols and B. J. Polidoro,2015. CONTAM User Guide and Program Documentation Version 3.2, National Institute of Standards and Technology, NIST TN 1887, Sep. 2015. doi: 10.6028/NIST.TN.1887.

Inputs

TypeNameDefaultDescription
RealuIndependent variable
Realxdx-axis support points
Realydy-axis support points
RealdDerivatives at the support points

Outputs

TypeNameDefaultDescription
RealzDependent variable with monotone interpolation

Revisions