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

Multizone airflow calculation

asked 2016-04-25 10:40:02 -0500

Hamo gravatar image

updated 2017-10-18 07:19:37 -0500


i have recently started using OpenStudio and Energyplus, and have question regarding airflow calculation.

I have found on numerous websites that CONTAM is incorporated in OS and E+, or rather that it can be used with these calculations.

I am interested to know is CONTAM actually part of E+ and, if not, how to convert .idf or .osm to .prj.

Is there any actual need to use CONTAM separately or is E+ calculation sufficient?

I have found osm2prj, but keep on getting errors when using cmake (if anyone know how to use it, detailed tutorial would be useful).

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-04-26 13:52:55 -0500

updated 2016-04-28 16:21:12 -0500

CONTAM is not part of E+, but you can use it with E+. As for whether you need to, that depends on what you want to do. In any case, there are a couple of different paths for multizone airflow calculations with E+:

  • There's AirflowNetwork, which is built-in to E+. It is not supported in OpenStudio right now, though I am working on fixing that. Check the EnergyPlus documentation (both the engineering and I/O references for more information).
  • OpenStudio can export ContamX 3.1 input files. This is what osm2prj was doing (assuming you're talking about this osm2prj: link). That's code I wrote a long time ago and it is behind the current version of OpenStudio. I'll eventually update it, but using it requires you to build OpenStudio. So the preferred route is via the Ruby bindings to OpenStudio. Once I verify that it works, I'll be posting a Ruby script in that GitHub repo that does pretty much what the C++ does. Be aware that the translator creates a model that makes some assumptions about the OpenStudio model. The new Ruby script includes documentation.
  • CONTAM 3.2 (the current version) includes more cosimulation support, you generate your model using ContamW and then you can cosimulate. Well, that's what I understand, as I haven't personally had time to try this out. It's on my list of things to do. The documentation is here, there's a section entitled "Working with EnergyPlus" under "Using CONTAM".

There are a couple of other (commercial) options, but I don't have experience with those.

Update: The first version of the Ruby script is available here. It should work for OpenStudio version 1.11.1 or greater.

edit flag offensive delete link more


Is the osm2prj on a private repository? The link gives me a 404.

Can't wait to use this when it's updated. Thanks for writing it!

mdahlhausen gravatar image mdahlhausen  ( 2016-04-28 15:39:41 -0500 )edit

@mdahlhausen That would be because I moved it and forgot that I should update the link here. Thanks for catching that. The script version is now available too, it isn't quite as fancy as the C++ version. But is a lot less work.

Jason DeGraw gravatar image Jason DeGraw  ( 2016-04-28 16:23:58 -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: 2016-04-25 10:40:02 -0500

Seen: 461 times

Last updated: Apr 28 '16