Exporting an Simcenter Amesim model on a Multicore Real-Time target
Preparing the model
Subsystem decomposition on the Simcenter Amesim side
The example presented hereafter is very simple but already shows how to proceed with the subsystem decomposition. It will also be used in the upcoming sections. The complete initial Simcenter Amesim system is represented in Subsystem decomposition on the Simcenter Amesim side. It will be decomposed into the two subsystems of Subsystem decomposition on the Simcenter Amesim side and Subsystem decomposition on the Simcenter Amesim side.
Figure 29: Complete Simcenter Amesim model before subsystem decomposition
To decompose your model, proceed as follows:
Procedure
Copy-paste parts of your initial sketch (before removing them) into as many independent Simcenter Amesim models as necessary, in accordance with your desired subsystem decomposition.
Insert Simulink interface blocks with the adequate physical/signal converters on each of the Simcenter Amesim models obtained so as to replace all the connections that have been cut during the decomposition of the initial system.
Results
For all the subsystems, inputs will be sent from Simulink and outputs will be sent to Simulink.
Figure 30: Simcenter Amesim subsystem 1 equipped with interface blocks
Figure 31: Simcenter Amesim subsystem 2 equipped with interface blocks
For subsystems having similar dynamics (1st case in the Main situations and principles section), it is possible to use AME2SL blocks only (for this purpose, select Simulink as interface type).
For subsystems eligible for co-simulation (2nd case in the Main situations and principles section), some AME2SL blocks can be used as well. They will all be resolved by the Simulink master solver with the same solver settings. Note that for subsystems for which different time steps are desired, co-simulation (AME2SLCosim) blocks are mandatory (for this purpose, select "SimuCosim" as interface type).
Note
Remember to define all the parameters and variables you want to be able to change or observe through the real-time targets interface. Refer to Table 1 in the Changing parameters or tables in the Simcenter Amesim model on the real-time target section to see how to proceed for your specific target.
On each of the Simcenter Amesim systems, execute the Write files for simulation and the Generate files for real-time commands successively.
Preparation of the "composite" Simulink model
Procedure
Import all the generated S functions into Simulink as usual using the blocks available in the Simcenter Amesim Interfaces Library (remember to use AME2SLCosim blocks for co-simulation blocks).
Connect these blocks together as to reproduce your complete initial system in Simulink. The result obtained on the example of the Subsystem decomposition on the Simcenter Amesim side section can be seen in the figure below.
Figure 32: Simulink system with two imported Simcenter Amesim subsystems
Test the assembled model with a Simulink solver suitable for real-time and configure the AME2SLCosim blocks, if any, with appropriate fixed-step solver and co-simulation intervals. Remember that the goal is to use the same fixed-step settings for the real-time targets solver after the export.
Results
Setting up the export in Simulink is specific to the considered multicore real-time target. We will illustrate this setup on a dSPACE target in the next section. For other targets such as RT-LAB, the principles are similar.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Real_Time/Preparing_the_model · retrieved 2026-07-17