Buildings.ThermalZones.Detailed.Validation.BESTEST.BaseClasses
Package with base classes for Buildings.ThermalZones.Detailed.Validation.BESTEST
Information
This package contains base classes that are used to construct the models in Buildings.ThermalZones.Detailed.Validation.BESTEST.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
DaySchedule | Schedule that repeats every day |
Buildings.ThermalZones.Detailed.Validation.BESTEST.BaseClasses.DaySchedule
Schedule that repeats every day
Information
Time schedule that is used for set points.
Extends from Modelica.Blocks.Sources.CombiTimeTable (Table look-up with respect to time and linear/periodic extrapolation methods (data from matrix/file)).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Table data definition | |||
Boolean | tableOnFile | false | = true, if table is defined on file or in function usertab |
Real | table[:, :] | fill(0.0, 0, 2) | Table matrix (time = first column; e.g., table=[0,2]) |
String | tableName | "NoName" | Table name on file or in function usertab (see docu) |
String | fileName | "NoName" | File where matrix is stored |
Boolean | verboseRead | true | = true, if info message that file is loading is to be printed |
Table data interpretation | |||
Integer | columns[:] | 2:size(table, 2) | Columns of table to be interpolated |
Smoothness | smoothness | Modelica.Blocks.Types.Smooth... | Smoothness of table interpolation |
Extrapolation | extrapolation | if size(table, 1) == 1 then ... | Extrapolation of data outside the definition range |
Real | offset[:] | fill(0, size(table, 2) - 1) | Offsets of output signals |
Time | startTime | 0 | Output = offset for time < startTime [s] |
Time | timeScale | 1 | Time scale of first table column [s] |
Connectors
Type | Name | Description |
---|---|---|
output RealOutput | y[nout] | Connector of Real output signals |
Modelica definition
model DaySchedule "Schedule that repeats every day"
extends Modelica.Blocks.Sources.CombiTimeTable(
final tableOnFile=false,
final tableName="NoName",
final fileName="NoName",
final columns=2:size(table, 2),
final smoothness=Modelica.Blocks.Types.Smoothness.LinearSegments,
final extrapolation=if size(table, 1) == 1
then
Modelica.Blocks.Types.Extrapolation.HoldLastPoint
else
Modelica.Blocks.Types.Extrapolation.Periodic,
final offset=fill(0, size(table, 2)-1),
final startTime=0);
end DaySchedule;