Importing/Exporting a Model to an FMU Format

In a Functional Mock-Up (FMU) format, a model can be simulated but its code content is not visible.

You can import or export a dynamic behavior model to an FMU model, provided that you have a Binary Model Export license

This task shows you how to:

Related Topics
Creating/Running a Script with the Scripting Window

Import From a Functional Mock-Up Format

You can import a functional mock-up model into the Dynamic Behavior Modeling workbench.

Tip: You can also import a FMU Model using the Scripting Window, by typing the importFMU scripting function.

  1. Select Insert > Import FMU from the menu bar.

    The FMU Model Import dialog box appears.

  2. Browse to select your file.

  3. Click Open to import your .fmu file containing .dll and .lib resources within the Dynamic Behavior Modeling workbench.

    A progress bar appears.

    Note: As the .fmu file is checked before import, it must be correct for a successful import.

    The Message Reporting window appears to let you know the import result.

  4. Propagate to save your imported file within the PLM database.

Export to a Functional Mock-Up Format

You can export your Modelica model to an FMU format.

Tip: You can also export a FMU Model using the Scripting Window, by typing the translateModelFMU scripting function.

  1. Activate a model from the Package Browser.

  2. Select Tools > Export to FMU from the menu bar.

    The Modelica Class FMU Export dialog box appears.

  3. Optional: Enter a name for the new FMU file. By default, the name of the Modelica model is proposed.

    Warning: The FMU file name must only contain letters, digits and underscores. It must not begin with a digit.

  4. Browse to select the convenient location to store your new .fmu model.

  5. Click Save.

    The model is exported.