Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Schedules added by default in OpenStudio and schedule databases

asked 2017-10-19 21:31:45 -0600

antonszilasi gravatar image

updated 2017-10-21 11:12:33 -0600

Firstly I am building a OpenStudio model from the ground up using the SDK and I need to add schedules. I noticed that the OpenStudio standards json contains references to schedules e.g Hospital Critical Occ however it does not contain the schedules themselves.

Where can I find/how can I import these schedules into my OpenStudio model using the SDK?

Secondly I noticed that without writing any code when I create an OpenStudio model there are a bunch of RuleSet Schedules added by default (see the picture below)

image description

How can I get these schedule and apply them to a spacetype/zone?

The lines of code




both return nothing and their sizes are 0, so how can I get these schedules?

EDIT: @David Goldwasser

Thank you David for your answer, assigning a default schedule with apply_internal_load_schedules does generate a default schedule for the spaceType which I called the method on.

However that default schedule set has no schedules within it! e.g

{20861976-2c47-4bdf-88c1-bd71b0c7ea09}, !- Handle Office_PrivateOffice Schedule Set, !- Name ,
!- Hours of Operation Schedule Name
!- Number of People Schedule Name , !- People Activity Level Schedule Name ,
!- Lighting Schedule Name ,
!- Electric Equipment Schedule Name
!- Gas Equipment Schedule Name ,
!- Hot Water Equipment Schedule Name
!- Infiltration Schedule Name ,
!- Steam Equipment Schedule Name ;
!- Other Equipment Schedule Name

Why are these schedules empty?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-10-20 11:15:40 -0600

updated 2017-10-20 11:18:51 -0600

openstudio-standards gem has methods has methods to consume the data from the JOSN and generate OpenStudio RulesetSchedules.

For example there is a method spaceType.apply_internal_load_schedules that has a lot of arguments about what schedules it apples. Here is link to that method. openstudio-standards adds methods like this on top of methods that objects inherit from the main OpenStudio API. Here is a link to the documentation for the gem methods

The Space Type and Construction Set Wizard is a good example of this. It grabs constructions, internal loads, and internal load schedules from the json file.

Re: the extra schedules, those are in a library separate from your OSM. They only get brought into your model if you drag them over. You can use the file menu to browse to any OSM file, to use it as a library. That does not look like the default library on fresh install.

edit flag offensive delete link more


@David Goldwasser thank you this does work however the appropriate schedules for the default DefaultScheduleSet do not actually appear in the model once I run this method instead I get a OS:DefaultScheduleSet with a Name and Handle but no schedules how do I add the appropriate schedules to the model?

antonszilasi gravatar image antonszilasi  ( 2017-10-21 10:57:59 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Question Tools

1 follower


Asked: 2017-10-19 21:31:45 -0600

Seen: 695 times

Last updated: Oct 21 '17