modelDayType

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

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

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.

Components

TypeNameDefaultDescription
Buildings.Controls.Sources.DayTypedayTypMonModel that outputs the type of the day, starting with Monday
Buildings.Controls.Sources.DayTypedayTypSatModel that outputs the type of the day, starting with Saturday
Buildings.Controls.Sources.DayTypedayTypTwoWeeksModel that outputs the type of the day, starting with 6 workdays, then 8 non-working days
Buildings.Controls.Sources.DayTypedayTypMonThrModel that outputs the type of the day for 3 days, starting with Monday

Revisions

  • March 20, 2014 by Michael Wetter:
    First implementation.