FMU (.fmu)

Background

    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 and Export

  • Export["file.fmu","model","FMU"] exports an FMU for model exchange for SystemModel model.

Options

  • Export option:
  • "FMIVersion"Automaticversion of FMI standard
    "FMIKind"Automatickind of FMU
  • Supported "FMIVersion" settings are: Automatic, "1.0" and "2.0".
  • Supported "FMIKind" settings are: Automatic, "ModelExchange" and "CoSimulation".

Examples

Basic Examples  (3)

Export an FMU for model exchange:

In[7]:=
Click for copyable input
Out[7]=

Export an FMU for co-simulation:

In[1]:=
Click for copyable input
Out[1]=

Export an FMU for model exchange using FMI 1.0:

In[1]:=
Click for copyable input
Out[1]=

See Also

SystemModel  "MO"

Introduced in 2018
(11.3)