.Buildings.Utilities.IO.Files.WeeklySchedule

Information

This model interprets a schedule file and performs a weekly, cyclic extrapolation on the source data. An example for a schedule entry is

double tab1(3,2)
# For week-day, output 1 between 7:00 and 19:00, and 0 otherwise
mon,tue,wed,thu,fri:7:00:00  1
mon,tue,wed,thu,fri:19:00:00  0
# For week-end, output always 0
sat,sun:0:00:00 0

The first row must start with double tab1 and be followed by the number of rows (excluding comments) and number of columns, whereas the time column is considered the first column.
Lines that start with '#' are comments.
The list of week-days is separated by a comma, and ends with a colon, after which the time format for the start is listed in the format hour:minute:second. Week-day, hour, minute and second are optional fields, but if one of these fields is used, the fields coming before it in the sequence (week-day, hour, minute, second) must be used too.

By default, schedules are read from the parameter data but optionally schedules can be read from a file. The parameter columns is used to specify which columns of the table should be produced at the output y. The first column is time, hence for the above example, set columns = {2}.

See Buildings/Resources/Data/schedule.txt for an example of the supported file format.

Revisions


Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos