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 BuildingSystems.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 BuildingSystems.Airflow.Multizone.Table_m_flow and BuildingSystems.Airflow.Multizone.Table_V_flow
function interpolate extends Modelica.Icons.Function; input Real u "Independent variable"; input Real[:] xd "x-axis support points"; input Real[size(xd, 1)] yd "y-axis support points"; input Real[size(xd, 1)] d "Derivatives at the support points"; output Real z "Dependent variable with monotone interpolation"; end interpolate;