Adjusting parametric schedules in OpenStudio including derived schedules

asked 2025-10-27 04:40:57 -0500

fredd's avatar

updated 2025-10-27 09:19:41 -0500

Hi everyone,

I'm trying to create building models in OpenStudio in a programmatic way. So far I've approached the problem using osw-files. In them, I start with ChangeBuildingLocation, followed by create_bar_from_space_type_ratios and create_typical_doe_building_from_model.

In the last measure, I can define operating hours for weekdays and weekends and from that it also creates derived parametric schedules, including ramps, e.g, "CLGSETP_SCH_NO_SETBACK" and "HTGSETP_SCH_YES_OPTIMUM".

However, the buildings I consider often have operating hours that differ by day, e.g., they shift operating hours every 2nd day, or they have the same operating hours for Monday, Wednesday, Friday, different ones for Tuesday and Thursday, and then possibly again different ones for the weekend. I'd like to express that while keeping the logic for the "derived" schedules.

I was making some progress, but I don’t think I’m quite there. What is did is that I adapted shift_hours_of_operation to a daily version, i.e., I can set operating hours for each day of the week, instead of just for weekdays and Saturday and Sunday. This results in an additional schedule “Building Hours of Operation NonResidential 1” which has the operating hours I set, in 7 profiles (rules?) (Priority 1-6 and Default). The calendar view on the right also looks as expected.

Interestingly, for the derived schedules, I also get these 7 profiles. However, the weekday ones are all identical and do not depend on the operating hours I set for the individual days. Does anyone have a pointer on where I need to make additional changes to fix this?

Follow-up question: I’d like to model temperature setpoints based on occupancy, i.e., to have a different setpoint for the occupied periods and then a setback for the unoccupied periods. Currently, the temperature setpoints in the model are based on the values in ashrae_90_1.schedules.json because I’m using the create_typical_building_from_model measure to create the building. So far, I could not find a measure to overwrite these schedules with schedules I’d like. I could do it through the Python SDK but before doing that I wanted to make sure there isn’t a more obvious way.

Thanks a lot in advance!

edit retag flag offensive close merge delete