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)
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?