dragonfly_uwg.writer module¶
Methods to write files for UWG simulation from a Model.
- dragonfly_uwg.writer.model_to_uwg(model, epw_file, simulation_parameter=None)[source]¶
Create a fully simulate-able uwg dictionary from a Model.
- Parameters:
model – A dragonfly Model for which an URBANopt feature geoJSON and corresponding honeybee Model JSONs will be returned.
epw_file – File path to the EPW that will be morphed by the UWG. This will be used to fill all autocalculated fields like the ASHRAE climate zone and vegetation start/end.
simulation_parameter – A UWGSimulationParameter object that dictates various settings about the UWG simulation. If None, default parameters will be generated. (Default: None).
- Returns:
A dictionary following the UWG schema. This dictionary can be serialized into a JSON in order to be run through the UWG.