A simple toolkit for parsing EnergyPlus IDF files and generating 2D/3D visualisations of the geometry. Based on the parseidf module by Daren Thomas.
Project description
IDF Parser and Geometry 2D/3D Visualiser
Parses an IDF file and provides a JSON-like dictionary of lists. Refer to original README below for information on format.
Also provides functions to generate 2D Projections, 3D Point Clouds, and 3D Mesh visualisations of the geometry in the IDF file. This is the main feature that sets it apart from the original repo.
ORIGINAL README
parseidf.py
Parses an IDF file (as used by EnergyPlus) into a dictionary of lists in the following manner:
-
each IDF object is represented by a list of its fields, with the first field being the object type.
-
each such list is appended to a list of objects with the same type in the dictionary, indexed by type:
{ A => [[A, x, y, z], [A, a, b, c]], B => [[B, 1, 2], [B, 1, 2, 3]] }
-
the index keys are all capitalized.
-
also, all field values are strings, i.e. no interpretation of the values is made.
Example
import parseidf
with open(r'in.idf', 'r') as f:
idf = parseidf.parse(f.read())
print idf.keys() # lists the object types in the idf file
print idf['OUTPUT:VARIABLE'] # lists all the Output:Variable objects in the idf file
Dependencies
parseidf depends on PLY (Python Lex & Yacc): https://pypi.python.org/pypi/ply/3.4
License & Credit
This project is licensed under the terms of the MIT license. See the file "LICENSE" in the project root for more information.
This module was developed by Daren Thomas at the assistant chair for Sustainable Architecture and Building Technologies (SuAT) at the Institute of Technology in Architecture, ETH Zürich.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file energyplus_parser-0.0.1.tar.gz
.
File metadata
- Download URL: energyplus_parser-0.0.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e8423c4f710ba0216abc7dbf5a57ca1d5feae6c851a1e14d7adc90b4b9be5c9 |
|
MD5 | 7cf0ee28b355e86bf47f155abbe16203 |
|
BLAKE2b-256 | d9bc51947061871259bf9eacca851bebae18a741e8ba84db059980dfffcd088d |
File details
Details for the file energyplus_parser-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: energyplus_parser-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 713aee792e65e2a02d4e38ec52b12a22b083f202fa7164a79e275c003aa8c8b4 |
|
MD5 | aa6fe1fc607068f54c59237fb9517355 |
|
BLAKE2b-256 | f6b4331198248b6a6b647903e02eb30f82f068837a058ddac0b293a4c9ed84aa |