First time here? Check out the Help page!

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 6 years ago

antonszilasi's avatar

updated 6 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 6 years ago

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.

Preview: (hide)
link

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 6 years ago

Seen: 352 times

Last updated: Sep 04 '18