Exporting the FMU Model from Simcenter Amesim

For this tutorial, you are provided with a complete Simcenter Amesim model. Open the model in Simcenter Amesim and export it as Co-Simulation 2.0 FMU model. In this format, the FMU model only provides the libraries to enable data exchange between Simcenter STAR-CCM+ and Simcenter Amesim, allowing the solvers to communicate through the FMU.

To load the initial simulation:
  1. Navigate to the couplingWithCaeCodes folder of the downloaded tutorial files and copy checkValve_FMI.ame to your working directory.
  2. Launch Simcenter Amesim.
  3. Select File > Open...
  4. In the Open dialog, navigate to your working directory.
  5. Select checkValve_FMI.ame, then click Open.
  6. Navigate to the Simulation tab in the toolbar.
  7. In the System Compilation dialog, wait for the simulation to compile, then click Close.
The model is now ready to be exported as a Co-Simulation 2.0 FMU model using the FMU Export Assistant.
  1. Select Interfaces > FMU Export Assistant...
  2. In the FMU Export Assistant dialog, select the Export Settings tab and set the following properties:
    Property Setting
    FMU type and version 2.0 Co-simulation 2.0
    Visibility level: exposed elements User-defined: expose only the watch parameters and variables
    Embed tables
    1. Set the Output directory to your working directory.
  3. Click Next >.
  4. In the Platform selection tab set the following properties:
    1. Deactivate Windows 32-bit compilation.
    2. Choose GNU GCC (64-bit) compilation as follows:
    • For Windows OS: activate Windows 64-bit compilation and select GNU GCC (64-bit).
    • For Linux OS: activate Linux 64-bit compilation and select GNU GCC (64-bit).
  5. Click Generate >.
  6. In the FMU Generation tab, wait for the FMU file to generate.
  7. Click Close.