test.zip (250.9 KB)
I am using the Honeybee/Dragonfly libraries in Python for building energy simulation at the urban scale.
I am almost done with the modeling and wanted to launch simulations for early results. However, I have some issues with the generation of IDF.
I checked and it seems I am doing the same way as the components in Grasshopper, using “to_openstudio_osw”, then “run_osw” and finally “run_idf” function in honeybee_energy.run.
There are no errors, but some things seem to miss in the IDF and the the simulation stops after the initialization.
I used the same model, converted into hbjson in Grasshopper and I was able to generate a proper IDF that runs smoothly. The only differences between the IDF generated in Python and in Grasshopper are:
- the SimulationControl “zone sizing” and “plant sizing” were automatically added in Grasshopper (if I add it manually in the IDF from Python it doesn’t change anything, and I don’t see why I need to add sizing as I do not size anything… if someone knows if it’s mandatory for simulations ?).
- Grasshopper added “Sizing:Zone” paragraphs for each of the thermal zones, and if I add manually those sizing zones in the Python IDF it works.
Why does it seems to be necessary to enable sizing to launch a simulation? even with nothing to size ? (ideal HVAC system)
And am I doing something wrong in the code for Openstudio/Honeybee not adding those “Sizing:Zone” ?
Attached you’ll see a script showing how I generate and simulate IDFs (that can be launched, I added a hbjson model and simulation parameter and an epw file). There is also a Grasshopper file that simulate the same hbjson successfully.
I hope that you can help me finding why I cannot generate the IDF properly.
Thanks in advance !