MV-7011: Co-Simulation with Twin Activate via Function Mockup Interface (FMI)
In this tutorial, you will learn about the process of setting up an MBS model to co-simulate with Twin Activate by following the FMI.
The co-simulation “flavor” of the FMI prescribes a protocol for different software to iteratively communicate data with one another, thus enabling multiple solvers to co-simulate amongst one another.
By leveraging this interface, MotionSolve can co-simulate with Twin Activate, or with any other software that supports the FMI standard. To do this, the MotionSolve model is first converted to a Functional Mockup Unit (FMU) which is a stand-alone modeling unit that represents the MotionSolve model. FMUs adhere to the protocol prescribed by the FMI and can thus be imported or exported by software that support this interface.
MotionSolve can export an FMU of type “co-simulation” which can be imported into other software such as 1-D simulators. The type “co-simulation” implies that the MotionSolve FMU is responsible for calculating its part of the solution i.e. MotionSolve is invoked at the time co-simulation is started.
This tutorial will describe the steps required to:
- Open and inspect the MBS model
- Export an FMU from MotionView
- Use the FMU to run a co-simulation analysis using Twin Activate
- Review co-simulation results in Twin Activate
A model representing a quad-rotorcraft is used for this tutorial. The model structure, rotor blades, and so on, are modeled using MotionView/MotionSolve and Twin Activate is used to control the spin rate of the rotors to control the thrust and lateral movement of the rotor. Roll forces are applied to the rotorcraft to mimic the effect of wind. The aim of the simulation is to control the thrust to make the rotor achieve a target height.
Software required to complete this tutorial successfully:
- MotionView/MotionSolve version 2017.1 or later
- sT/Twin Activate 2017.1 or later