Buildings.Controls.Sources.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.Sources.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Controls.Sources.Examples.DayType DayType Example model for the source that outputs the type of the day

Buildings.Controls.Sources.Examples.DayType Buildings.Controls.Sources.Examples.DayType

Example model for the source that outputs the type of the day

Buildings.Controls.Sources.Examples.DayType

Information

This example generates signals for three different work weeks. The instance dayTypMon outputs a signal with five working days, followed by two non-working days. The instance dayTypSat does the same, except that the first days is a non-working day. The instance dayTypTwoWeeks outputs six working days, followed by 8 non-working days. The instance dayTypMonThr is configured the same as dayTypMon, except that it outputs the type of the day for three days, starting with the current day, then the next day and the day after.

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

Modelica definition

model DayType "Example model for the source that outputs the type of the day" extends Modelica.Icons.Example; Buildings.Controls.Sources.DayType dayTypMon "Model that outputs the type of the day, starting with Monday"; Buildings.Controls.Sources.DayType dayTypSat(iStart=6) "Model that outputs the type of the day, starting with Saturday"; Buildings.Controls.Sources.DayType dayTypTwoWeeks(days={Buildings.Controls.Types.Day.WorkingDay, Buildings.Controls.Types.Day.WorkingDay,Buildings.Controls.Types.Day.WorkingDay, Buildings.Controls.Types.Day.WorkingDay,Buildings.Controls.Types.Day.WorkingDay, Buildings.Controls.Types.Day.WorkingDay,Buildings.Controls.Types.Day.NonWorkingDay, Buildings.Controls.Types.Day.NonWorkingDay,Buildings.Controls.Types.Day.NonWorkingDay, Buildings.Controls.Types.Day.NonWorkingDay,Buildings.Controls.Types.Day.NonWorkingDay, Buildings.Controls.Types.Day.NonWorkingDay,Buildings.Controls.Types.Day.NonWorkingDay, Buildings.Controls.Types.Day.NonWorkingDay}, nout=14) "Model that outputs the type of the day, starting with 6 workdays, then 8 non-working days"; Buildings.Controls.Sources.DayType dayTypMonThr(nout=3) "Model that outputs the type of the day for 3 days, starting with Monday"; end DayType;