Importing the FMI Library and Defining a Co-Simulation Link
To couple Simcenter STAR-CCM+ with an FMU model, you import the .fmu archive containing the FMI library in the Simcenter STAR-CCM+ simulation and connect to the FMU through a co-simulation link.
-
Make sure that the FMU model is valid and properly defined.
Importing an invalid or corrupted FMI library may result in severe errors and terminate Simcenter STAR-CCM+. As Simcenter STAR-CCM+ is 64-bit software, make sure that the FMI library is 64-bit.
- In the Simcenter STAR-CCM+ simulation, select
-
In the
Open dialog, navigate to the relevant
.fmu file and click
Open.
Simcenter STAR-CCM+ extracts the content of the compressed .fmu file, including the modelDescription.xml that contains the FMU model details, to a new directory. The directory is created in the same location of the .fmu file.In the simulation, Simcenter STAR-CCM+ adds a library node under the User Libraries node. The name of the library node matches the name of the .fmu file.
-
Expand the
node.
During import, Simcenter STAR-CCM+ automatically loads the library and adds child nodes that represent the content of the FMU model. Only the [Imported Library] node has editable properties—the child nodes provide a convenient view of the information contained in the FMU modelDescription.xml file, including the FMU implementation details, the exposed variables, and type definitions.
If required, you can close and reopen the library through the [Imported Library] node right-click menu. For more information, see FMI Library Reference.
If required, you can also import multiple FMI libraries, these libraries can either be the same library or different ones. Import additional libraries by following the steps above or by right-clicking the User Libraries node and selecting New User Library.
To point the link to the relevant FMI library:
-
Select the
node and set FMI Library to the imported
library. Simcenter STAR-CCM+ automatically sets the node based on the information contained in the FMU.
For each FMI library that you import into the simulation a new FMI Library Import link must be created in order for it to be used by the simulation, as each link can only contain the information of one FMI library.
-
Select the
Lead,
Lead, or
Concurrent.
node and set
Method to either
For more information, see FMU Link Conditions and Values.
-
Select the
Simcenter STAR-CCM+ uses to determine the coupling time.
node and choose the method that
You can specify a time interval or you can use the simulation time-step as time interval for data transfer. For more information, see Coupling Negotiation Option.
- Select the Coupling Negotiation Option, this option can be read-only. node and specify the desired time interval. Depending on the selected
-
Select the
Simcenter STAR-CCM+ treats the simulation time-step when the remaining time that is required to meet the next coupling time is not an exact multiple of the simulation time-step.
node and specify how
For details, see Time-Step Adjustment Option.