This function interpolates data for intermediate compressor speeds using cubic hermite splines with linear extrapolation. To avoid linear extrapolation below minimum standard speed, the origin is added to the modified arrays.
function speedShift input Real spe "Speed of compressor"; input Real speSet[:] "Array of standard compressor speeds"; input Real u[:] "Array to be interpolated"; output Real y "Interpolated value"; end speedShift;
Buildings.Fluid.DXSystems.BaseClasses
to
Buildings.Fluid.DXSystems.Cooling.BaseClasses.Functions
because the package
Buildings.Fluid.DXSystems.BaseClasses
already contains a block called
SpeedShift
which gives a clash in file names on file systems
that do not distinguish between upper and lower case letters.