In this week’s post we will go through an interesting simulation case carried out by coupling Simcenter STAR-CCM+ together with Simcenter Amesim. In this marine scenario, Simcenter STAR-CCM+ provides the detailed dynamics of a Rigid Inflatable Boat (RIB) moving through rough sea, whereas system simulation provides the boat’s electric propulsion and control system. Additionally, an overview of how to set up co-simulation between Simcenter STAR-CCM+ and Simcenter Amesim by employing Functional Mock-up Units (FMUs) will be provided.Combining the strengths of the two software offer many benefits. Accounting for instantaneous forces from waves hitting the hull at high speed is a difficult fluid dynamics topic and typically not something managed with system simulation. Vice versa, constructing a detailed electric propulsion system along with its control is very cumbersome to address using only scripting in Simcenter STAR-CCM+.To connect Simcenter STAR-CCM+ to Simcenter Amesim two main Co-Simulation paths are avaiable to the user:
- Simcenter Amesim Co-Simulation using the built in two-way Simcenter Amesim connection. Here communication is established using TCP/IP where for example Simcenter Amesim could be configures as the server and Simcenter STAR-CCM+ the client. More information concerning this approach together with another co-simulation example can be found by following this link.
- Co-Simulation using the Functional Mock-up Interface. A framework and software-independent standard for exchanging dynamic simulation models which specifies how to couple simulation models built with various simulation tools.
FMI interfaces provided in Simcenter Amesim
Within Simcenter Amesim a FMU Export Assistant is available to aid in the process of generating the FMU. Once a system model is built, an interface block is added to the model sketch and the FMU interface is selected.The FMU Export Assistant is accessed from the Simulation mode under the Interfaces menu, and the assistant:- Prepares the model for export by generating the FMI API functions.
- Compiles the C source code of the model into binary files compatible with the selected target environment.
- generates the XML model description file.
- Compresses the files, i.e. the description file, binaries, into an FMU file.
- Co-simulation zones specify a set of Simcenter STAR-CCM+ model parts (boundaries or regions) that exchange data with the FMU. Values that are imported from the FMU through a co-simulation zone are stored as spatially-uniform fields that can be used to set boundary and region settings.
- Link value specifications are generally useful for exchanging general data that are not necessarily applied to the boundaries or regions. Values that are imported from the FMU through link specifications are stored as single values.
We hope you have found this article interesting. If you have any questions or comments, please feel free to reach out to us on support@volupe.com
Author
Fabian Hasselby, M.sc.