diff --git a/IBPSA/Utilities/Math/Functions/smoothInterpolation.mo b/IBPSA/Utilities/Math/Functions/smoothInterpolation.mo index 05f50bfcd3..2ced8f620c 100644 --- a/IBPSA/Utilities/Math/Functions/smoothInterpolation.mo +++ b/IBPSA/Utilities/Math/Functions/smoothInterpolation.mo @@ -61,10 +61,20 @@ function value y1 is returned.
Note that if xSup
and ySup
only depend on parameters
-or constants, then
-
-IBPSA.Utilities.Math.Functions.cubicHermiteLinearExtrapolation
-will be more efficient.
+or constants and will not change during the simulation,
+it is more efficient to first call
+
+IBPSA.Utilities.Math.Functions.splineDerivatives
+to find the derivatives, and then call
+
+IBPSA.Utilities.Math.Functions.interpolate to perform the interpolation.
+This way the derivatives only need to be computed once upon initialisation,
+not at each step during the simulation.
+See the example implemented in
+
+IBPSA.Utilities.Math.Functions.Examples.Interpolate.
+
In contrast to the function Modelica.Math.Vectors.interpolate