Running a Co-Simulation Using Resource Manager

Resource manager is a command-line application that simplifies the process by which you run a co-simulation through the command line. The other option for running from the command-line is to use the Simcenter STAR-CCM+ batch client.

  1. Set up the simulation for Simcenter STAR-CCM+ to Simcenter STAR-CCM+ Co-Simulation. For more information see STAR-CCM+ Co-Simulation Workflow.
  2. Select External Links > [Link 1] > Conditions > Launch Partner Options node, and set Option to Launch Application via Resource Manager.
  3. Select [Link 1] > Values > Simcenter STAR-CCM+ Simulation File, and set Simcenter STAR-CCM+ Simulation File to the file you want the simulation to couple with.
  4. Save and close the simulation.
As you cannot activate resource manager directly from Simcenter STAR-CCM+ you must activate it using the command line.
  1. Open the command prompt (Windows) or terminal (Linux).
  2. Enter the command to launch the resource manager:
    • On Windows:
      > [INSTALLDIR]\star\bin\starlaunch.bat --resources <hostname>:<np> --command "[INSTALLDIR]\star\bin\starccm+ -batch run <sim-file>" --slots <ns>
    • On Linux:
      % [INSTALLDIR]/star/bin/starlaunch --resources <hostname>:<np> --command "[INSTALLDIR]/star/bin/starccm+ -batch run <sim-file>" --slots <ns>
    Where [INSTALLDIR] is the Simcenter STAR-CCM+ installation directory, <hostname> is the name of the host where the simulation is launched, <np> is the total number of processors allocated to the job on hostname, <sim-file> is the path to the co-simulation simulation file, and <ns> is the number of processors allocated to the Simcenter STAR-CCM+ application specified by --command.
    If <np> cores are allocated on <hostname> and <ns> cores are assigned to the leading simulation, the partner simulation is launched automatically using the remaining number of cores <nf> = <np> - <ns>.
    The output is displayed within the terminal/command prompt.