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.
- 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.
-
In the simulation that you submit to the batch queue, specify the settings for
automatically launching the partner simulation:
- Save and close the simulation.
-
Submit the simulation to the batch queue using the following command:
where N and M are the number of processes for the simulation and its partner, respectively.% starccm+ -batch -np N,M <SimulationName>.sim
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:
- Make sure that the standalone simulations can be run in parallel on the same environment.