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

Revision history [back]

click to hide/show revision 1
initial version

Schedules added by default in OpenStudio and schedule databases

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 this schedule and apply them to a spacetype/zone, the line of code

model.getScheduleRulesets()

and

model.getSchedules()

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

Schedules added by default in OpenStudio and schedule databases

Firstly I am building a OpenStudio model from the ground up using the SDK and I need to add schedules 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 this these schedule and apply them to a spacetype/zone, the line spacetype/zone?

The lines of code

model.getScheduleRulesets()

and

model.getSchedules()

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

Schedules added by default in OpenStudio and schedule databases

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

model.getScheduleRulesets()

and

model.getSchedules()

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

Schedules added by default in OpenStudio and schedule databases

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

model.getScheduleRulesets()

and

model.getSchedules()

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

OS:DefaultScheduleSet,
{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?