Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses
Information
This package contains base classes that are used to construct the models in Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
getPeakLoad | Function that reads the peak load from the load profile |
Validation |
Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.getPeakLoad
Function that reads the peak load from the load profile
Information
Function that reads a double value from a text file.
This function scans a file that has a format such as
#1 #Some other text #Peak space cooling load = -383165.6989 Watts #Peak space heating load = 893931.4335 Watts double tab1(8760,4) 0,0,5972.314925,16 3600,0,4925.839944,1750.915684 ...
The parameter string
is a string that the function
searches for, starting at the first line.
If it finds the string, it expects an equality sign, and
returns the double value after this equality sign.
If the function encounters the end of the file, it
terminates the simulation with an assertion.
See Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.Validation.GetPeakLoad for how to invoke this function.
Inputs
Type | Name | Default | Description |
---|---|---|---|
String | string | String that is written before the '=' sign | |
String | filNam | Name of data file with heating and cooling load |
Outputs
Type | Name | Description |
---|---|---|
Real | number | Number that is read from the file |