Buildings.Controls.SetPoints
Package with models for control set points
Information
This package contains component models to compute set points of control systems. For additional models, see also Modelica.Blocks.Continuous.Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).
Package Content
| Name | Description |
|---|---|
| Occupancy schedule with look-ahead | |
| Block to compute the supply and return set point | |
| Model for a set point that is interpolated based on a user-specified table | |
| Collection of models that illustrate model use and test models | |
| Collection of validation models |
Buildings.Controls.SetPoints.OccupancySchedule
Occupancy schedule with look-ahead
Information
This model outputs whether the building is currently occupied, and how long it will take until the next time when the building will be occupied or non-occupied. The latter may be used, for example, to start a ventilation system half an hour before occupancy starts in order to ventilate the room.
The occupancy is defined by a time schedule of the form
occupancy = 3600*{7, 12, 14, 19}
This indicates that the occupancy is from 7:00 until 12:00
and from 14:00 to 19:00. This will be repeated periodically.
The parameter periodicity defines the periodicity.
The period always starts at t=0 seconds.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | occupancy[:] | 3600*{7,19} | Occupancy table, each entry switching occupancy on or off |
| Boolean | firstEntryOccupied | true | Set to true if first entry in occupancy denotes a changed from unoccupied to occupied |
| Time | period | 86400 | End time of periodicity [s] |
Connectors
| Type | Name | Description |
|---|---|---|
| output RealOutput | tNexNonOcc | Time until next non-occupancy |
| output RealOutput | tNexOcc | Time until next occupancy |
| output BooleanOutput | occupied | Outputs true if occupied at current time |
Modelica definition
Buildings.Controls.SetPoints.SupplyReturnTemperatureReset
Block to compute the supply and return set point
Information
This block computes the set point temperatures for the supply and return water temperature. The set point for the room air temperature can either be specified by a parameter, or it can be an input to the model. The latter allows to use this model with systems that have night set back.
If used to reset the temperature in a heating system,
the parameter dTOutHeaBal can be used to shift the heating curve
to take into account that heat gains from solar, equipment and people
make up for some of the transmission losses.
For example, in energy efficient houses, the heating may not be switched on if
the outside air temperature is greater than
12°C, even if a room temperature of 20°C is required.
In such a situation, set dTOutHeaBal=20-12=8 Kelvin to
shift the heating curve.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | m | 1.3 | Exponent for heat transfer |
| Boolean | use_TRoo_in | false | Get the room temperature set point from the input connector |
| Temperature | TRoo | 293.15 | Fixed value of room temperature set point [K] |
| TemperatureDifference | dTOutHeaBal | 8 | Offset for heating curve [K] |
| Nominal conditions | |||
| Temperature | TSup_nominal | Supply temperature [K] | |
| Temperature | TRet_nominal | Return temperature [K] | |
| Temperature | TRoo_nominal | 293.15 | Room temperature [K] |
| Temperature | TOut_nominal | Outside temperature [K] | |
Connectors
| Type | Name | Description |
|---|---|---|
| input RealInput | TRoo_in | Room air temperature set point [K] |
| input RealInput | TOut | Outside temperature [K] |
| output RealOutput | TSup | Setpoint for supply temperature [K] |
| output RealOutput | TRet | Setpoint for return temperature [K] |
Modelica definition
Buildings.Controls.SetPoints.Table
Model for a set point that is interpolated based on a user-specified table
Information
This block can be used to schedule a set-point by using piecewise linear functions. For example, the instances
Buildings.Controls.SetPoints.Table tabLinExt(constantExtrapolation=false,
table=[20, 0.0;
22, 0.5;
25, 0.5;
26, 1.0]);
Buildings.Controls.SetPoints.Table tabConExt(constantExtrapolation=true,
table=[20, 0.0;
22, 0.5;
25, 0.5;
26, 1.0]);
will cause the following output:
For the default setting constantExtrapolation=true, the
block outputs
y=y1+offset for u ≤ u1, and
y=yMax+offset for u ≥ uMax.
Otherwise, the table is linearly extrapolated with a constant derivative.
Note that the first column must be strictly increasing.
Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | table[:, 2] | fill(0.0, 1, 2) | Table matrix ( e.g., table=[u1, y1; u2, y2; u3, y3]) |
| Real | offset | 0 | Offset of output signal |
| Boolean | constantExtrapolation | true | If true, then y=y1 for u<u1, and y=yMax for u>uMax |
Connectors
| Type | Name | Description |
|---|---|---|
| input RealInput | u | Connector of Real input signal |
| output RealOutput | y | Connector of Real output signal |