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

Setting occupancy and number of people schedule

asked 2018-09-04 23:00:14 -0500

antonszilasi gravatar image

updated 2018-09-04 23:23:41 -0500

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-09-04 23:12:54 -0500

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.

edit flag offensive delete link more

Your Answer

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

Add Answer

 



Question Tools

1 follower

Stats

Asked: 2018-09-04 23:00:14 -0500

Seen: 41 times

Last updated: Sep 04 '18