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

Wrong boundary conditions after surface match : user scripts

asked 2018-04-10 14:33:23 -0600

rkbest gravatar image

updated 2018-04-10 19:29:50 -0600

I used Openstudio to model a complex building with different floor plans and then added plenum space at each floor followed by arranging them in the correct order.

  • >Intersect model
  • >surface match.

Following these steps generated a non-uniform boundary conditions properties in the model subsurfaces.

image description

The surface at the bottom of each plenum shows outside and default back when I try to change it to the surface.

2nd question: as I created each floor and plenum separately and then sandwiched them into a building prior to matching the entire model. The floor is identified as 'Building Story 1'. What can be a quick way to reorganize the spaces?

edit retag flag offensive close merge delete


I did see the partial solution on this thread and spend hours to get this right. I guess is not easy for a complex floor plan with objects inside another object that is surrounded by more than 3 boundaries.

rkbest gravatar imagerkbest ( 2018-04-11 07:55:04 -0600 )edit

I am trying the Apply measures option for intersect and then surface_matching to see if it does what I need to have proper boundary conditions. I will update here.

rkbest gravatar imagerkbest ( 2018-04-11 10:01:02 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-04-11 12:09:50 -0600

rkbest gravatar image

Had to redraw from floor plan level and connected all rectangles that were not touching other surfaces. And then used plugin surface match. I still have some wrong boundary conditions that need to be set manually. OSM measure of surface matching and intersect surfaces failed to help in my model as they took more than 30 minutes with no progress and so I canceled.

Suggestions for the first-timers: - At the floor plan level, all zones or rooms should be touching other surfaces for at least two sides to avoid this error at the later time. -Surface Match does not always do what you expect, so check the boundary conditions and diagnose the colors if they represent the correct situation. Change manually using Inspector from the plugin.

And hope you can fix all errors.

edit flag offensive delete link more



@rkbest, you may want to try this diagnostic version of the surface matching measure.. This version loops through one space at a time with info and puts statements to better troubleshot errors seen on some large models. It can identify the specific surfaces that are creating issues.

David Goldwasser gravatar imageDavid Goldwasser ( 2018-04-11 13:57:51 -0600 )edit

@David Goldwasser, I did create a custom measure using the ruby script but it fails with a syntax error. Am I missing any steps.

[19:50:34.129571 ERROR] :/ruby/2.2.0/gems/openstudio- workflow-1.3.1/lib/openstudio/workflow/util/measure.rb failed with message C:/Users/rajeev/OpenStudio/Measures/surface_match_2/measure.rb:7: syntax error, unexpected ' ^ C:/Users/rajeev/OpenStudio/Measures/surface_match_2/measure.rb:9: syntax error, unexpected '

rkbest gravatar imagerkbest ( 2018-04-11 19:54:45 -0600 )edit

Your Answer

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

Add Answer


Question Tools

1 follower


Asked: 2018-04-10 14:33:23 -0600

Seen: 74 times

Last updated: Apr 11 '18