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

Revision history [back]

Best Practices for Adding Occupant Loads to a Space in the OS API

Using OpenStudio's ruby API:

Suppose I have defined an activity level schedule, activitySchedule, and then created a PeopleDefinition object person and a People object: people = OpenStudio::Model::People.new(person) and assigned the activity schedule to people.

How do I add people to a space as a load?

Bonus question: Is it more appropriate to create a single PeopleDefinition object with the number of people set to 1 and share it with each space that has the same occupancy, adjusting the number of people with the space's setNumberOfPeople method

OR

Should I create unique PeopleDefinition objects for every single space?