Running a Co-Simulation in Batch Mode

One of the two options for running a co-simulation from the command line is to use the Simcenter STAR-CCM+ batch client. When you using this option, you must specify the number of processors for both the leading simulation and the partner simulation.

  1. Before running the co-simulation, specify co-simulation settings in each simulation as described in the previous sections.
During the co-simulation, the client only connects to the server that you submit to the batch queue. For this reason, the simulation that you submit to the batch queue is typically the simulation that you want to monitor during the co-simulation run.
  1. In the simulation that you submit to the batch queue, specify the settings for automatically launching the partner simulation:
    1. Select the External Links > [Link 1] > Conditions > Launch Partner Option node and set Option to Launch Default Application.
    2. Select the [Link 1] > Values > Launch STAR-CCM+ node and set STAR-CCM+ Launch Command to:
      • On Linux:
        % <Path_to_STAR-CCM+_executable>/starccm+ -load -server <partnerSimulationName>.sim
      • On Windows:
        > <Path_to_STAR-CCM+_executable>\starccm+ -load -server <partnerSimulationName>.sim
  2. Save and close the simulation.
  3. Submit the simulation to the batch queue using the following command:
    % starccm+ -batch -np N,M <SimulationName>.sim
    where N and M are the number of processes for the simulation and its partner, respectively.
    This command launches the simulation that you submitted to the batch queue on N processes. This simulation automatically launches the specified partner simulation on M processes and connects to it.

    Depending on the run environment, specify all the command line options that are required for running a regular Simcenter STAR-CCM+ session in parallel, such as -mpi or -ssh.

In case of errors:
  1. Make sure that the standalone simulations can be run in parallel on the same environment.