Skip to main content
Part of Script Export Statistics on Structures macross built with the MacroBuilder and export the resulting workflow as a Functional Mockup Unit (FMU), for further use e.g. in Ansys OptiSLang.

Public Member Functions

Public Attributes

Detailed Description

Export Statistics on Structures macross built with the MacroBuilder and export the resulting workflow as a Functional Mockup Unit (FMU), for further use e.g. in Ansys OptiSLang. The MacroExporter is invoked when exporting a macrobased FMU from the graphical user interface. It gathers all inputs and outputs from the macro created with the MacroBuilder passed to the MacroExporter. Script example based on sos_demo.sdb: macro_exporter = sos.MacroExporter(); macro_exporter:exportFMU2(‘/dir/of/your/choice/approx_fmop.fmu’);

Member Function Documentation

addInputArg()

Add an input argument. Only scalar input arguments are exposed as an FMU 2.0 input. Parameters

addOutputArg()

Add an output argument. Only scalar output arguments are exposed as an FMU 2.0 output. Parameters

exportFMU2()

Write an FMU 2.0 file to disk Creates an .fmu archive containing the macro, a minimal database file, the necessary SoS libraries and the FMU modelDescription.xml file. Parameters

setDllPath()

The Macro Exporter attempts to auto-detect the library directory. Use this method to manually set a path pointing to the SoS FMU libraries. Parameters

Member Data Documentation

fmu_author

Author of the exported FMU.
Is written into modelDescription.xml, which is part of the exported FMU archive.

fmu_model_description

Model description of the exported FMU.
Is written into modelDescription.xml, which is part of the exported FMU archive.

fmu_model_name

Model name of the exported FMU.
Is written into modelDescription.xml, which is part of the exported FMU archive.