Package with functions
This package contains functions that are used in Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Name | Description |
---|---|
speedShift | Interpolates value between two speeds |
warnIfPerformanceOutOfBounds | Function that checks the performance and writes a warning if it is outside of 0.9 to 1.1 |
Interpolates value between two speeds
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.
Type | Name | Default | Description |
---|---|---|---|
Real | spe | Speed of compressor | |
Real | speSet[:] | Array of standard compressor speeds | |
Real | u[:] | Array to be interpolated |
Type | Name | Description |
---|---|---|
Real | y | Interpolated value |
Function that checks the performance and writes a warning if it is outside of 0.9 to 1.1
This function checks if the numeric argument is outside of the interval 0.9 to 1.1. If this is the case, the function writes a warning.
Type | Name | Default | Description |
---|---|---|---|
Real | x | Argument to be checked | |
String | msg | String to be added to warning message | |
String | curveName | Name of the curve that was tested |
Type | Name | Description |
---|---|---|
Integer | retVal | 0 if x is inside bounds, -1 if it is below bounds, or +1 if it is above bounds |