3

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

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

sde's avatar
121
sde
asked 2017-09-10 23:59:39 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2018-05-21 21:50:36 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2017-09-11 04:22:18 -0500, updated 2017-09-12 03:42:34 -0500
edit flag offensive 0 remove flag delete link

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
add a comment see more comments