Set holidays in OS
Is possible in OS automatically define holidays in the schedule?
First time here? Check out the Help page!
Is possible in OS automatically define holidays in the schedule?
The short answer is no. At least the ScheduleRuleset object that makes most of our schedules doesn't support holidays, and there isn't a way in OpenStudio store holidays. Eventually we need two things.
What can you do today? I see two options if you want to include holidays, neither one is very pretty:
Mimicking holidays with ScheduleRuleset
Using Compact Schedules
Import compact schedules into your model. Ideally they will be edited as needed ahead of time since you can't edit them in the OpenStudio application, although if you had to you can edit them in the SketchUp Plugin.
You need to tell EnergyPlus what holidays are. There are two options. Option "A" is to set the "Use Weather File Holidays and Special Days" field of the OS:RunPeriod object to yes. You would need to do this in an OpenStudio measure since the GUI doesn't expose this field. Option "B" is to write an EnergyPlus to manually add the specific holidays you want instead of relying on the weather file.
Warning: If you enable holidays and you also still use some ScheduleRuleset objects in your model there might be un-expected consequences, so I wouldn't recommend a hybrid of these two solutions.I seem to recall that the default profile was being used where a holiday was defined.
The OpenStudio Application now supports Holiday profiles similar to how summer and winter design days are setup https://github.com/openstudiocoalitio...
There is a new simulation setting to use the weather file for holidays. If you want to define custom holiday dates you can alter the weather file or can write a measure using RunPeriodControlSpecialDays
So looking into an old issue I see we do have a field in OS:Scedule:Rule for Apply Holiday just like we do for days of the week, but I don't currently see a method to get or set that in the API.
@David Goldwasser that field is in the data model for future use but it is not currently enabled, we would enable it when we add holiday support to the API.
5 years later... Just sharing my personal experience to anyone struggling with holidays definition: forget the schedule rulesets and don't edit your weather file!
I struggled quite a bit with the schedule rulesets... as good and flexible as they are (and I like how they are displayed in OpenStudioApplication), it is a real pain to maintain them for simulating through the whole year. If you study for example a school building, you typically need to define all the school and public holidays. If you have just one schedule that needs this information, it is totally fine with the rulesets, but you will probably need more then that (e.g. one schedule per classroom if each classroom has its own timetable and occupancy). I found no way to combine a simple occupancy schedule that is not aware of the holidays with another holiday-aware generic schedule that I would re-use multiple times.
That's why I ended up converting all my rulesets schedules to compact schedules that are not holidays-aware (you can't edit in openstudio but you can do it easily by hand - you need to really define only the weekdays because for holidays and weekends, you default to 0 or any other value of your choice... so your schedule in the end is maybe 20 lines, much less than all the objects that are created for a ruleset and that makes it difficult to edit by hand). Then you turn on "Use weather File Holidays and Special Days" in the "Advanced RunPeriod Parameters" and you use the measure InjectIDFObjects to import your holidays that you had defined as RunPeriodControl:SpecialDays in an IDF file. With this solution, you have to do more manual work and you can't visualize your holidays in OpenStudio, but in the end this is way easier and way less error-prone.
As an alternative to the IDF injection, you can define the holidays in your weather file... but this is somehow exactly the same as writing RunPeriodControl:SpecialDays objects, just it is more complicated.
@Adrien as a heads up holiday profiles were recently added to the OpenStudio Application for RulesetSchedules. I just updated my answer with a link in update at the bottom of my answer.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2015-08-07 05:28:23 -0600
Seen: 857 times
Last updated: Nov 25 '20