Specifying Co-Simulation Settings in Simcenter Amesim

To couple Simcenter Amesim with Simcenter STAR-CCM+, you add a TCP element to the Simcenter Amesim system and you configure it to act as a server.

  1. Add a TCP element (the dynamic_cosim_socket element) to the Simcenter Amesim system, with the required number of input and output ports:


    The number of ports at left option specifies the number of ports that export data to Simcenter STAR-CCM+. The number of ports at right option specifies the number of ports that import data from Simcenter STAR-CCM+. For example, if you want to transfer two scalar values from Simcenter STAR-CCM+ to Simcenter Amesim, and transfer three scalar values from Simcenter Amesim to Simcenter STAR-CCM+, you require a total of five ports on the TCP element: three ports on the left side and two ports on the right side.

Set the TCP element to act as a server. When the TCP element is set as a server, you can set the time-step for the Simcenter Amesim solver.
  1. Click the PARAMETER tab.


    The appropriate license for your Simcenter Amesim system is checked out.
  2. Double-click the dynamic_cosim_socket element.
    The Change Parameters dialog appears.
  3. Set mode to server.
    A new property, sample time, appears in the dialog.
  4. Set sample time to the desired time-step for your case.
  5. Click Close.
After configuring the TCP element to act as a server, you can modify the run parameters for the Simcenter Amesim solver. You can adjust the time-step and total time of the simulation. It is good practice to set the total run time of the Simcenter Amesim solver to a larger value than the total run time set in Simcenter STAR-CCM+. When coupled to Simcenter Amesim, Simcenter STAR-CCM+ keeps two steps of Simcenter Amesim data and interpolates between them.
  1. Click the SIMULATION tab.
To set the run parameters:
  1. Click Run Parameters.


    In the Run Parameters dialog:
  2. Set Start time to 0.
  3. Set Final time to a value greater than the total simulation time in Simcenter STAR-CCM+.
    This action is required to make sure that Simcenter Amesim does not finish solving before Simcenter STAR-CCM+, due to numerical precision issues.
  4. Set Print interval to match the sample time-step that you set in the TCP element.
    This property is used for post-processing in Simcenter Amesim.
  5. Click OK.