LBL logo

Buildings.Controls.SetPoints.Examples

Collection of models that illustrate model use and test models

Information

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).

Package Content

NameDescription
Buildings.Controls.SetPoints.Examples.HotWaterTemperatureReset HotWaterTemperatureReset Test model for the heating curve
Buildings.Controls.SetPoints.Examples.OccupancySchedule OccupancySchedule Test model for occupancy schedule with look-ahead
Buildings.Controls.SetPoints.Examples.Table Table Test model for table that determines set points


Buildings.Controls.SetPoints.Examples.HotWaterTemperatureReset Buildings.Controls.SetPoints.Examples.HotWaterTemperatureReset

Test model for the heating curve

Buildings.Controls.SetPoints.Examples.HotWaterTemperatureReset

Information

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).

Modelica definition

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);
equation 
  connect(TOut.y, heaCur.TOut);
  connect(TOut2.y, heaCur1.TOut);
  connect(TRoo.y, heaCur1.TRoo_in);
end HotWaterTemperatureReset;

Buildings.Controls.SetPoints.Examples.OccupancySchedule Buildings.Controls.SetPoints.Examples.OccupancySchedule

Test model for occupancy schedule with look-ahead

Buildings.Controls.SetPoints.Examples.OccupancySchedule

Information

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).

Modelica definition

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;

Buildings.Controls.SetPoints.Examples.Table Buildings.Controls.SetPoints.Examples.Table

Test model for table that determines set points

Buildings.Controls.SetPoints.Examples.Table

Information

Example that demonstrates the use of the block Buildings.Controls.SetPoints.Table.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

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]);
equation 
  connect(TRoo.y, tabLinExt.u);
  connect(TRoo.y, tabConExt.u);
end Table;

Automatically generated Wed May 15 11:55:01 2013.