First time here? Check our help page!
1

Setting occupancy and number of people schedule

I am trying to apply the same schedule twice in a default schedule set, which can be seen in the code attached below.

Where space_type_props["occupancy_activity_sch"] is a schedule name which I add to the model using the OpenStudio-Standards gem.

image description

Unfortunately - for whatever reason (there are no warnings emitted either) this doesn't work because as you can see in the resulting idf Number of People Schedule is missing.

What could I be doing wrong here?

image description

antonszilasi's avatar
1.5k
antonszilasi
asked 2018-09-04 23:00:14 -0500, updated 2018-09-04 23:23:41 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

setPeopleActivityLevelSchedule expects a schedule with units in watts, while setNumberofPeopleSchedule takes a fractional schedule. Each of the methods returns a bool, so you could do something like test = sch_set.setNumberofPeopleSchedule and see if test is true. You can also call if sch_set.numberofPeopleSchedule.is_initialized.

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2018-09-04 23:12:54 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments