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.
- Set up the simulation for Simcenter STAR-CCM+ to Simcenter STAR-CCM+ Co-Simulation. For more information see STAR-CCM+ Co-Simulation Workflow.
- Select Option to Launch Application via Resource Manager. node, and set
- Select Simcenter STAR-CCM+ Simulation File to the file you want the simulation to couple with. , and set
- Save and close the simulation.
As you cannot activate resource manager directly from Simcenter STAR-CCM+ you must activate it using the
command line.
- Open the command prompt (Windows) or terminal (Linux).
-
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. - On
Windows: