Buildings.Examples.ScalableBenchmarks.BuildingVAV.BaseClasses
Base classes
Information
Package with base classes for scalable building models implementation.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
ControlBus | Control bus that is adapted to the signals connected to it |
CoolSetpoint | Schedule for cooling setpoint |
FanOnOffWithDP | Controller for fan on/off and to provide prescribed dP |
HeatSetpoint | Schedule for heating setpoint |
IntLoad | Schedule for time varying internal loads |
VAVBranch | Supply branch of a VAV system |
Buildings.Examples.ScalableBenchmarks.BuildingVAV.BaseClasses.ControlBus
Control bus that is adapted to the signals connected to it
Information
This connector defines the expandable connector
ControlBus that
is used to connect control signals.
Note, this connector is empty. When using it, the actual content is
constructed by the signals connected to this bus.
Extends from Modelica.Icons.SignalBus (Icon for signal bus).
Contents
Type | Name | Description |
---|---|---|
Temperature | TRooMin | Minimum temperature of multiple zones [K] |
Temperature | TRooAve | Average temperature of multiple zones [K] |
Temperature | TRooSetHea | Room heating setpoint temperature [K] |
Temperature | TRooSetCoo | Room cooling setpoint temperature [K] |
Temperature | TOut | Outdoor air temperature [K] |
Time | dTNexOcc | Time to next occupancy period [s] |
Boolean | occupied | Occupancy status |
Integer | controlMode | System operation modes |
Modelica definition
Buildings.Examples.ScalableBenchmarks.BuildingVAV.BaseClasses.CoolSetpoint
Schedule for cooling setpoint
Information
This block defines room air cooling setpoints.
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[:, :] | [0, 273.15 + 32.0; 8*3600, 2... | Table matrix (time = first column; e.g., table=[0, 0; 1, 1; 2, 4]) |
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} | Columns of table to be interpolated |
Smoothness | smoothness | Modelica.Blocks.Types.Smooth... | Smoothness of table interpolation |
Extrapolation | extrapolation | Modelica.Blocks.Types.Extrap... | Extrapolation of data outside the definition range |
Time | timeScale | 1 | Time scale of first table column [s] |
Real | offset[:] | {0} | Offsets of output signals |
Time | startTime | 0 | Output = offset for time < startTime [s] |
Time | shiftTime | startTime | Shift time of first table column [s] |
TimeEvents | timeEvents | Modelica.Blocks.Types.TimeEv... | Time event handling of table interpolation |
Boolean | verboseExtrapolation | false | = true, if warning messages are to be printed if time is outside the table definition range |
Connectors
Type | Name | Description |
---|---|---|
output RealOutput | y[nout] | Connector of Real output signals |
Modelica definition
Buildings.Examples.ScalableBenchmarks.BuildingVAV.BaseClasses.FanOnOffWithDP
Controller for fan on/off and to provide prescribed dP
Information
This model outputs ON/OFF
signal to control fan operation.
When the system is in mode like unoccupiedOff, safety
, it outputs
false
so that fan should be OFF
and provide 0 pressure rise;
When the system is in mode like unoccupiedNightSetBack,occupied,unoccupiedWarmUp,
unoccupiedPreCool
, it outputs true
so that fan should be
ON
and provide preRis
pressure rise.
Parameters
Type | Name | Default | Description |
---|---|---|---|
PressureDifference | preRis | 850 | Prescribed pressure difference [Pa] |
Connectors
Type | Name | Description |
---|---|---|
output RealOutput | y | Supply fan requested pressure rise, or zero if fan should be off [Pa] |
ControlBus | controlBus |
Modelica definition
Buildings.Examples.ScalableBenchmarks.BuildingVAV.BaseClasses.HeatSetpoint
Schedule for heating setpoint
Information
This block defines room air heating setpoints.
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[:, :] | [0, 273.15 + 13.0; 8*3600, 2... | Table matrix (time = first column; e.g., table=[0, 0; 1, 1; 2, 4]) |
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} | Columns of table to be interpolated |
Smoothness | smoothness | Modelica.Blocks.Types.Smooth... | Smoothness of table interpolation |
Extrapolation | extrapolation | Modelica.Blocks.Types.Extrap... | Extrapolation of data outside the definition range |
Time | timeScale | 1 | Time scale of first table column [s] |
Real | offset[:] | {0} | Offsets of output signals |
Time | startTime | 0 | Output = offset for time < startTime [s] |
Time | shiftTime | startTime | Shift time of first table column [s] |
TimeEvents | timeEvents | Modelica.Blocks.Types.TimeEv... | Time event handling of table interpolation |
Boolean | verboseExtrapolation | false | = true, if warning messages are to be printed if time is outside the table definition range |
Connectors
Type | Name | Description |
---|---|---|
output RealOutput | y[nout] | Connector of Real output signals |
Modelica definition
Buildings.Examples.ScalableBenchmarks.BuildingVAV.BaseClasses.IntLoad
Schedule for time varying internal loads
Information
This block defines schedule of internal load.
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[:, :] | [0, 0.1; 8*3600, 1.0; 18*360... | Table matrix (time = first column; e.g., table=[0, 0; 1, 1; 2, 4]) |
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} | Columns of table to be interpolated |
Smoothness | smoothness | Modelica.Blocks.Types.Smooth... | Smoothness of table interpolation |
Extrapolation | extrapolation | Modelica.Blocks.Types.Extrap... | Extrapolation of data outside the definition range |
Time | timeScale | 1 | Time scale of first table column [s] |
Real | offset[:] | {0} | Offsets of output signals |
Time | startTime | 0 | Output = offset for time < startTime [s] |
Time | shiftTime | startTime | Shift time of first table column [s] |
TimeEvents | timeEvents | Modelica.Blocks.Types.TimeEv... | Time event handling of table interpolation |
Boolean | verboseExtrapolation | false | = true, if warning messages are to be printed if time is outside the table definition range |
Connectors
Type | Name | Description |
---|---|---|
output RealOutput | y[nout] | Connector of Real output signals |
Modelica definition
Buildings.Examples.ScalableBenchmarks.BuildingVAV.BaseClasses.VAVBranch
Supply branch of a VAV system
Information
Model for a VAV supply branch. The terminal VAV box has a pressure independent damper and a water reheat coil. The pressure independent damper model includes an idealized flow rate controller and requires a discharge air flow rate set-point (normalized to the nominal value) as a control signal.
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package MediumA | Modelica.Media.Interfaces.Pa... | Medium model for air | |
replaceable package MediumW | Modelica.Media.Interfaces.Pa... | Medium model for water | |
PressureDifference | dpFixed_nominal | 0 | Pressure drop of duct and other resistances that are in series [Pa] |
MassFlowRate | m_flow_nominal | Mass flow rate of this thermal zone [kg/s] | |
Volume | VRoo | Room volume [m3] |
Connectors
Type | Name | Description |
---|---|---|
replaceable package MediumA | Medium model for air | |
replaceable package MediumW | Medium model for water | |
input RealInput | TRooHeaSet | Setpoint temperature for room for heating [K] |
input RealInput | TRooCooSet | Setpoint temperature for room for cooling [K] |
input RealInput | TRoo | Measured room temperature [K] |
FluidPort_a | port_a | Fluid connector a1 (positive design flow direction is from port_a1 to port_b1) |
FluidPort_a | port_b | Fluid connector b (positive design flow direction is from port_a1 to port_b1) |
output RealOutput | yDam | Actual VAV damper position |