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 2017-09-10 23:59:39 -0500

sde's avatar

updated 2018-05-21 21:50:36 -0500

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-09-11 04:22:18 -0500

updated 2017-09-12 03:42:34 -0500

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.

edit flag offensive delete link more

Comments

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

sde's avatar sde  ( 2017-09-14 02:26:36 -0500 )edit

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  ( 2017-09-14 02:45:48 -0500 )edit

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

sde's avatar sde  ( 2017-09-14 23:20:19 -0500 )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

Careers

Question Tools

3 followers

Stats

Asked: 2017-09-10 23:59:39 -0500

Seen: 1,104 times

Last updated: Sep 12 '17