Buildings.Fluid.DXSystems.Cooling.BaseClasses.Functions
Package with functions
Information
This package contains functions that are used in Buildings.Fluid.DXSystems.BaseClasses.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
nominalValuesToString | Converts the nominal values to a string representation |
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 |
Buildings.Fluid.DXSystems.Cooling.BaseClasses.Functions.nominalValuesToString
Converts the nominal values to a string representation
Information
Returns a string representation of the nominal values.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
NominalValues | nomVal | Nominal values |
Outputs
Type | Name | Description |
---|---|---|
String | s | A string representation of the nominal values |
Modelica definition
Buildings.Fluid.DXSystems.Cooling.BaseClasses.Functions.speedShift
Interpolates value between two speeds
Information
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.
Inputs
Type | Name | Default | Description |
---|---|---|---|
Real | spe | Speed of compressor | |
Real | speSet[:] | Array of standard compressor speeds | |
Real | u[:] | Array to be interpolated |
Outputs
Type | Name | Description |
---|---|---|
Real | y | Interpolated value |
Modelica definition
Buildings.Fluid.DXSystems.Cooling.BaseClasses.Functions.warnIfPerformanceOutOfBounds
Function that checks the performance and writes a warning if it is outside of 0.9 to 1.1
Information
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.
Inputs
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 |
Outputs
Type | Name | Description |
---|---|---|
Integer | retVal | 0 if x is inside bounds, -1 if it is below bounds, or +1 if it is above bounds |