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

OpenStudio-Standards: Daylighting control

asked 2019-07-10 12:21:25 -0500

updated 2019-07-13 11:52:40 -0500

The measure from the BCL to do add daylighting control automatically is broken. I noticed that the OpenStudio-Standards gem has a working method to add them.

How can I use the space_add_daylighting_controls method from the OpenStudio-Standards Gem by itself? I do not want to create a baseline of my building, just add daylighting controls per the 90.1 geometry rules. A small code snippet to apply it to a model would be helpful.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2019-07-10 13:15:09 -0500

Here is how it's used within the model_create_prm_baseline_building method. The only difference would be, since it is a method that's part of the Standard class, you would first initialize a Standard object:

template = "90.1-2010" #or whatever
std = Standard.build(template)

and then use that to call the method, passing in a space:

std.space_add_daylighting_controls(space, false, false)
edit flag offensive delete link more

Comments

Thank you! I was able to add the controls, but how can I get the log-file that includes information about the spaces that had a sensor added?

Luis Lara's avatar Luis Lara  ( 2019-07-10 16:28:01 -0500 )edit

I'm not sure, other than I think the log messages are printed to the terminal if you run it as a ruby script. The method indicates it returns a hash with information on the daylit areas, but that seems to be wrong.

ericringold's avatar ericringold  ( 2019-07-10 16:39:34 -0500 )edit

However, space_daylighted_areas will return that hash.

ericringold's avatar ericringold  ( 2019-07-10 16:40:23 -0500 )edit

Your Answer

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

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2019-07-10 12:21:25 -0500

Seen: 260 times

Last updated: Jul 10 '19