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

How to convert Energyplus IDF file - building geometry to json format ?

asked 7 years ago

sde's avatar

updated 6 years ago

How to convert Energyplus IDF file - building geometry to json format ?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 7 years ago

updated 7 years ago

I believe you're a tiny bit early on this. There is currently a work in progress by notably @MarkAdams (aided by Ksennia Burova and Preston Shires) on Pull Request #5893 that is planned to go in E+ v8.8.0.

If you're feeling confident, you can checkout the code of the PR, and build compile EnergyPlus yourself. I believe the function you're after is around IdfParser#L165.

EDIT:

I actually found this presentation from Building SImulation 2017: 2017_IBPSA_JSON that will reference this companion repository: IBPSA-BuildingSim-2017-JSON. In this repository you'll find a JSON-enabled EnergyPlus (see "Releases" tab to download) and instructions to run an IDF and also produce the epJSON.

IDF input (with epJSON converted output)

./energyplus -c -d Outputs/ -w USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw 1ZoneUncontrolled.idf

Otherwise I'm pretty sure you could use eppy for this, perhaps not directly, but since it stores everything in a python dict-like objects it shouldn't be too hard to create a JSON output.

Preview: (hide)
link

Comments

Thank you Julien. Is it possible to view this JSON file in 3D model viewer(like three.js) ?

sde's avatar sde  ( 7 years ago )

Directly, no. You should look at the view_model measure on BCL, which uses a JSON file (different format, vA3C JSON) and which goal is to visualize an OpenStudio model in a browser. That might be informative!

Julien Marrec's avatar Julien Marrec  ( 7 years ago )

Yes i got it. JSON file format should be similar to this. https://github.com/va3c/json/blob/gh-...

sde's avatar sde  ( 7 years ago )

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

3 followers

Stats

Asked: 7 years ago

Seen: 1,183 times

Last updated: Sep 12 '17