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.
- Navigate to the couplingWithCaeCodes folder of the downloaded tutorial files and copy checkValve_FMI.ame to your working directory.
- Launch Simcenter Amesim.
- Select
- In the Open dialog, navigate to your working directory.
- Select checkValve_FMI.ame, then click Open.
- Navigate to the Simulation tab in the toolbar.
- 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.
- Select
-
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 - Set the Output directory to your working directory.
- Click Next >.
-
In the Platform selection tab set the
following properties:
- Deactivate Windows 32-bit compilation.
- 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).
- Click Generate >.
- In the FMU Generation tab, wait for the FMU file to generate.
- Click Close.