First time here? Check our help page!
2

OpenStudio-Standards: Daylighting control

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.

Luis Lara's avatar
2.1k
Luis Lara
asked 2019-07-10 12:21:25 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2019-07-13 11:52:40 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

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)
ericringold's avatar
10.6k
ericringold
answered 2019-07-10 13:15:09 -0500
edit flag offensive 0 remove flag delete link

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
add a comment see more comments