Model.hm_exportoptimizationcards#

Model.hm_exportoptimizationcards(type, filename, export_template)#

Exports a Radioss optimization file.

Parameters:
  • type (int) –

    The type of file to write:

    1 - Export optimization file only

  • filename (hwString) –

    The full path and filename of the output optimization file (.radopt). Paths with spaces must be enclosed in quotes.

    This can also be the Starter file name, or the Engine file name. The optimization file name is derived from this name.

  • export_template (hwString) – The full path and filename of the optimization export template. Paths with spaces must be enclosed in quotes.

Returns:

Example#

Export the optimization file , derive the name from the model file C:/my_files / model_0000.rad#
import hm
import hm.entities as ent

model = hm.Model()

model.hm_exportoptimizationcards(
    type=1,
    filename="C:/my_files/model_0000.rad",
    export_template="[hm_info -appinfo SPECIFIEDPATH TEMPLATES_DIR]/feoutput/radioss/optientities.blk"
)