IDFtoJSON

EnergyPlus is developed based on Fortran 950. The file format looks very like JavaScript Object Notation (JSON). By extracting the comments as properties, it can be transformed to JSON format. I did some modifications to EnergyPlus IDF file and transformed it to JSON format with Python. The JSON file was validated by https://www.bejson.com/ . Then, I transformed it back to IDF and ran the simulation again.

{
“Version”: “8.8”,
“Timestep”: “4”,
“Building”: “___Simple One Zone w Windows,___0,___Suburbs,___0.04,___0.004,___MinimalShadowing,___30,___6”,
“HeatBalanceAlgorithm”: “ConductionTransferFunction”,
“SurfaceConvectionAlgorithm___Inside”: “TARP”,
“SurfaceConvectionAlgorithm___Outside”: “DOE-2”,
“SimulationControl”: “___No,___No,___No,___Yes,___No”,
“RunPeriod”: “___Null,___1,___1,___12,___31,___Tuesday,___Yes,___Yes,___No,___Yes,___Yes”,
“Site___Location”: “___Denver Stapleton Intl Arpt CO USA WMO=724690,___39.77,___-104.87,___-7.00,___1611.00”,
“SizingPeriod___DesignDay”: “___Denver Stapleton Intl Arpt Ann Clg 1% Condns DB=>MWB,___7,___21,___SummerDesignDay,___32.6,___15.2,___Null,___Null,___Wetbulb,___15.6,___Null,___Null,___Null,___Null,___83411.,___4,___120,___No,___No,___No,___ASHRAEClearSky,___Null,___Null,___Null,___Null,___1.00”,
“Material___NoMass”: “___R31LAYER,___Rough,___5.456,___0.9000000,___0.7500000,___0.7500000”,
“Material”: “___C5 – 4 IN HW CONCRETE,___MediumRough,___0.1014984,___1.729577,___2242.585,___836.8000,___0.9000000,___0.6500000,___0.6500000”,
“Construction”: “___ROOF31,___R31LAYER”,
“Construction___WindowDataFile”: “___DoubleClear,___..BACKSLASHdatasetsBACKSLASHWindow5DataFile.dat”,
“Site___GroundTemperature___BuildingSurface”: “18.89,18.92,19.02,19.12,19.21,19.23,19.07,19.32,19.09,19.21,19.13,18.96”,
“Zone”: “___ZONE ONE,___0,___0,___0,___0,___1,___1,___autocalculate,___autocalculate”,
“ScheduleTypeLimits”: “___Fraction,___0.0,___1.0,___CONTINUOUS”,
“GlobalGeometryRules”: “___UpperLeftCorner,___CounterClockWise,___World”,
“BuildingSurface___Detailed”: “___Zn001___Roof001,___Roof,___ROOF31,___ZONE ONE,___Outdoors,___Null,___SunExposed,___WindExposed,___0,___4,___0.000000,15.24000,4.572,___0.000000,0.000000,4.572,___15.24000,0.000000,4.572,___15.24000,15.24000,4.572”,
“FenestrationSurface___Detailed”: “___Zn001___Wall001___Win001,___Window,___DoubleClear,___Zn001___Wall001,___Null,___0.5000000,___Null,___Null,___1.0,___4,___0.548000,0,2.5000,___0.548000,0,0.5000,___5.548000,0,0.5000,___5.548000,0,2.5000”,
“Output___Variable”: “ZN001___WALL001___WIN001,Surface Outside Face Temperature,timestep”,
“Output___VariableDictionary”: “Regular”,
“Output___Surfaces___Drawing”: “dxf”,
“Output___Surfaces___List”: “details”,
“Output___Constructions”: “Constructions”,
“Output___Meter___MeterFileOnly”: “EnergyTransfer___Facility,hourly”,
“OutputControl___Table___Style”: “___HTML”,
“Output___Table___SummaryReports”: “___AllSummary”
}

Leave a Reply

Your email address will not be published. Required fields are marked *