Component List to define schedules

Day_schedule

Component used for simple definition of daily variation of a value.

Parameters

Example:


...

day = pro.new_component("Day_schedule","day")
param = {
    "time_steps": [7200,3600],
    "values": [10,20,15],
    "interpolation": "STEP"
}
day.set_parameters(param)

The first three hours of the day (7200 s) the value is 10, the next hour (3600 s) 20, and from that instant to the end of the day 15.

day_schedule_step

Using "interpolation": "LINEAR" this would be the result

day_schedule_linear

Week_schedule

Component used for simple definition of week variation of a value. It uses to Day_schedule components

Parameters

Example:


...

week = pro.new_component("Week_schedule","week")
param = {
    "days_schedules": ["working_day","working_day","working_day","working_day","working_day","holiday_day","holiday_day"]
}
week.set_parameters(param)

The Day_schedule called "working_day" will be used from Monday to Friday, "holiday_day" will be used on Saturday an Sunday.

Year_schedule

Component used for simple definition of year variation of a value. It uses to Week_schedule components

Parameters

Example:


...

year = pro.new_component("Year_schedule","year")
param = {
    "periods": ["31/07","31/08"],
    "weeks_schedules": ["working_week","holiday_week","working_week"]
}
year.set_parameters(param)

The Week_schedule called "holiday_week" will be used for August and "working_week" for the rest of the year.

Variables

If the project to be simulated has the daylight_saving parameter activated, summer time will be taken into account when obtaining the hourly values by shifting the values by one hour during the daylight saving period.