dragonfly_doe2.writer module

Write an inp file from a Dragonfly model.

dragonfly_doe2.writer.model_to_inp(model: dragonfly.model.Model, folder: str = '.', name: str = None) → pathlib.Path[source]

Export a dragonfly model to a Doe2 INP file.

Parameters:
  • model – A Dragonfly model.

  • folder – Path to target folder to export the file. Default is current folder.

  • name – An optional name for exported file. By default the name of the model will be used.

Returns:

Path to exported inp file.