FMU (.fmu)
- Export supports Version 2.0 of the FMI standard for model exchange or co-simulation.
Background & Context
-
- Model or component with defined interfaces for simulation.
- A Functional Mockup Unit (FMU) implements the Functional Mockup Interface (FMI).
- An FMU for model exchange represents an ODE model with events.
- An FMU for co-simulation is a black box model with an embedded solver.
- FMUs for co-simulation communicate inputs and outputs at discrete time points.
- Contains a binary library with a standardized C interface.
- Contains XML file with variable definitions and other model information.
Import & Export
- Export["file.fmu",model,"FMU"] exports the SystemModel model as an FMU file.
- See the following reference pages for full general information:
-
Export export to a file CloudExport export to a cloud object ExportString export to a string ExportByteArray export to a byte array
Examples
Basic Examples (3)
Export an FMU for model exchange:
Export["HelloWorld.fmu", [image], "FMU"]Export an FMU for co-simulation:
Export["SawTooth.fmu", [image], "FMU", "FMIKind" -> "CoSimulation"]Export an FMU for model exchange using FMI 2.0:
Export["HelloWorld.fmu", [image], "FMU", "FMIVersion" -> "2.0"]Related Guides
Related Links
History
Introduced in 2018 (11.3)