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

Natural vented cavity

asked 2015-03-06 05:39:09 -0500

giofer gravatar image

updated 2015-07-11 17:16:04 -0500

I have created a model in SketchUp with OpenStudio.

How can I avoid to losing data in the switch between osm and idf? For example, I created a natural vented cavity with idf editor. Then, if I need to change the model with graphic input (as I use SketchUp) I lose that information.

Now the natural vented cavity is actually the most boring input overall when you have about 20 surfaces with it. How can maintain the information?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-06 09:01:25 -0500

updated 2015-03-06 09:04:10 -0500

I would write an EnergyPlus measure to edit the surface objects and add the natural vented cavity to the idf when you run your OpenStudio model. The run portion of the measure would probably look something like this:

# create other side conditions model object
sideConditionModel = "
    ScreenCavityModel,          ! OtherSideConditionsModel Name
    GapConvectionRadiation;         ! Type of Modeling used to determine Boundary Conditions
object = OpenStudio::IdfObject::load(sideConditionModel).get
wsObject = workspace.addObject(object)

# get all building surfaces in the starting model
heat_transfer_surfaces = workspace.getObjectsByType("BuildingSurface:Detailed".to_IddObjectType)

surface_names = []

heat_transfer_surfaces.each do |surface|
    # change outside boundary condition based on surface construction name
    construction_name = surface.getString(2)
    if construction_name.match("Ext wall - Insulated metal siding")
    # put surface name in array
    surface_name = surface.getString(0)
    surface_names << surface_name

naturallyVentedCavity = "
    Vented Cavity Exterior Surface,     ! Name
    ScreenCavityModel,      ! OtherSideConditionsModel Object Name
    0.02,                       ! Area Fraction of Openings
    0.9,                        ! Thermal Emissivity of Exterior Baffle Material
    0.92,                       ! Solar Absorbtivity of Exterior Baffle
    0.05,                       ! Height scale for bouyancy-driven ventilation
    0.05,                       ! Effective Thickness of Cavity Behind Exterior Baffle
    0.97,                       ! Ratio of Actual surface area to projected surface area
    Smooth ,                    ! Roughness of collector
    0.1 ,                       ! Cv, Effectiveness for perforations with respect to Wind
    0.5 ,                       ! Cd, Discharge Coefficient for Openings with respect to bouyancy-driven flow
    #{surface_names.join(",")} ;            ! Surface Name
cavity = OpenStudio::IdfObject::load(naturallyVentedCavity).get
wsCavity = workspace.addObject(cavity)
edit flag offensive delete link more


I took the liberty of marking this answer as accepted (answered a year and a half ago). @giofer, remember to mark answers as accepted if they solved your problem in the future. Thanks!

Julien Marrec gravatar image Julien Marrec  ( 2017-01-31 07:38:14 -0500 )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: 2015-03-06 05:39:09 -0500

Seen: 379 times

Last updated: Mar 06 '15