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

How do I have a parametric WWR analysis Skip my Atrium

asked 2015-11-11 00:50:22 -0600

I want to do a parametric analysis where I change the window to wall ratio but I don't want to want to change the fenestration on my atrium. I know I can do this manually in the SketchUp Plugin by non making the atrium part of my selection for the user script, but the window to wall ratio measure on BCL only lets me filter the selection by orientation.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-11-11 01:01:19 -0600

updated 2015-11-11 01:45:10 -0600

This has come up a number of times. The current Set Window to Wall Ratio by Facade Measure does only let you select the scope of the measure by orientation. We don't currently have a way in OpenStudio to pass a selection to the measure like user scripts in the SketchUp plugin can. One solution would be for us or someone else to add a new argument to the measure to select a measure to include or exclude from the measure. You could also filter by story, surface size, construction etc. If you want to use this today, below is a quick fix.

First, download the measure from BCL, and make a copy of it, so it is in the "My Measures" directory.
Next open up the measure.rb file and look for the following code.

new_window = s.setWindowToWallRatio(wwr, sillHeight_si.value, true)

This is inside of a loop through surfaces where "s" is the surface. If you add the lines below prior to the "new_window" line you can hard code it to follow this logic. "If the parent space for this surface has a space type assigned, and if the name of that space type is Atrium then go to the next surface in the model, don't do anything to this one".

if space.get.spaceType.is_initialized and space.get.spaceType.get.name.to_s == "Atrium"
  runner.registerInfo("Skipping this surface because it belongs to a hard coded space type that I want to skip")
  next
end

You may want to skip the "info" message if you have a lot of these. I just put it in the example code for demonstration. The "new_window" line should be on the line after "end". Congratulations! you are a ruby programmer now.

edit flag offensive delete link more

Comments

Phew! For a second there, it seemed like there was something you couldn't do with a measure!

__AmirRoth__ gravatar image __AmirRoth__  ( 2015-11-11 09:58:09 -0600 )edit

Your Answer

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

Add Answer

Training Workshops

Question Tools

1 follower

Stats

Asked: 2015-11-11 00:50:22 -0600

Seen: 203 times

Last updated: Nov 11 '15