dragonfly_iesve.writer module

Write a gem file from a Dragonfly model.

dragonfly_iesve.writer.model_to_gem(model, use_multiplier=True, exclude_plenums=False, merge_method='None')[source]

Generate an IES GEM string from a Dragonfly Model.

Parameters:
  • model – A dragonfly Model.

  • use_multiplier – Boolean to note whether the multipliers on each Building story will be passed along to the Room objects or if full geometry objects should be written for each repeated story in the building. (Default: True).

  • exclude_plenums – Boolean to indicate whether ceiling/floor plenum depths assigned to Room2Ds should generate distinct 3D Rooms in the translation. (Default: False).

  • merge_method

    An optional text string to describe how the Room2Ds should be merged into individual Rooms during the translation. Specifying a value here can be an effective way to reduce the number of Room volumes in the resulting Model and, ultimately, yield a faster simulation time with less results to manage. Note that Room2Ds will only be merged if they form a contiguous volume across their solved adjacencies. Otherwise, there will be multiple Rooms per zone or story, each with an integer added at the end of their identifiers. Choose from the following options:

    • None - No merging of Room2Ds will occur

    • Zones - Room2Ds in the same zone will be merged

    • PlenumZones - Only plenums in the same zone will be merged

    • Stories - Rooms in the same story will be merged

    • PlenumStories - Only plenums in the same story will be merged

Returns:

Path to exported GEM file.