.Buildings.Utilities.Math.Functions.interpolate

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 Buildings.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 Buildings.Airflow.Multizone.Table_m_flow and Buildings.Airflow.Multizone.Table_V_flow

References

Interface

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;

Revisions


Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos