This package contains examples for the use of models that can be found in Buildings.Controls.SetPoints.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Name | Description |
---|---|
HotWaterTemperatureReset | Test model for the heating curve |
OccupancySchedule | Test model for occupancy schedule with look-ahead |
Table | Test model for table that determines set points |
Example that demonstrates the use of the hot water temperature reset
for a heating system.
The parameters of the block heaCur
are for a heating system with
60°C supply water temperature and
40°C return water temperature at
an outside temperature of
-10°C and a room temperature of
20°C. The offset for the temperature reset is
8 Kelvin, i.e., above
12°C outside temperature, there is no heating load.
The figure below shows the computed supply and return water temperatures.
Extends from Modelica.Icons.Example (Icon for runnable examples).
model HotWaterTemperatureReset "Test model for the heating curve" extends Modelica.Icons.Example;Buildings.Controls.SetPoints.HotWaterTemperatureReset heaCur( m=1, TSup_nominal=333.15, TRet_nominal=313.15, TOut_nominal=263.15); Modelica.Blocks.Sources.Ramp TOut( height=40, duration=1, offset=263.15); Buildings.Controls.SetPoints.HotWaterTemperatureReset heaCur1( m=1, use_TRoo_in=true, TSup_nominal=333.15, TRet_nominal=313.15, TOut_nominal=263.15, dTOutHeaBal=15); Modelica.Blocks.Sources.Step TRoo( offset=273.15 + 20, startTime=0.5, height=-5) "Night set back from 20 to 15 deg C"; Modelica.Blocks.Sources.Constant TOut2(k=273.15 - 10); equationconnect(TOut.y, heaCur.TOut); connect(TOut2.y, heaCur1.TOut); connect(TRoo.y, heaCur1.TRoo_in); end HotWaterTemperatureReset;
Example that demonstrates the use of the occupancy schedule. The figure below shows how the time until the next occupancy starts or ends is decreased. The red line hits zero when the schedule indicates an occupied time, and the blue line hits zero when the schedule indicates a non-occupied time.
Extends from Modelica.Icons.Example (Icon for runnable examples).
model OccupancySchedule "Test model for occupancy schedule with look-ahead" extends Modelica.Icons.Example;Buildings.Controls.SetPoints.OccupancySchedule occSchDay "Day schedule"; Buildings.Controls.SetPoints.OccupancySchedule occSchWee(occupancy=3600*{7,19, 31,43,55,67,79,91,103,115,127,139}, period=7*24*3600) "Week schedule"; end OccupancySchedule;
Example that demonstrates the use of the block Buildings.Controls.SetPoints.Table.
Extends from Modelica.Icons.Example (Icon for runnable examples).
model Table "Test model for table that determines set points" extends Modelica.Icons.Example; import Buildings;Buildings.Controls.SetPoints.Table tabConExt(table=[20,0; 22,0.5; 25,0.5; 26,1]); Modelica.Blocks.Sources.Ramp TRoo( duration=1, offset=15, height=15); Buildings.Controls.SetPoints.Table tabLinExt(constantExtrapolation=false, table=[ 20,0; 22,0.5; 25,0.5; 26,1]); equationconnect(TRoo.y, tabLinExt.u); connect(TRoo.y, tabConExt.u); end Table;