Rescale provides several versions of CD-Adapco STAR-CCM+. In general, Rescale will make available the latest version with 4 weeks of its release. If a specific version is not available, it can be requested by contacting email@example.com.
What Command do I use to run STAR-CCM+?
To run STAR-CCM+ on Rescale, the standard STAR-CCM+ command-line interface can be used:
starccm+ -power -np <mpi-ranks> -machinefile $HOME/machinefile -batch <batch-script>
-batch - Run in batch mode (no UI). Commands:
<.java macro file>
-np - Specify the number of parallel processes. By choosing
$RESCALE_CORES_PER_SLOT you are passing in the number of cores you selected for the job, thereby setting up a DMP job.
-power - This option is essential when using the Rescale provided On-Demand License or your own Power Session License
-rsh - Set multinode communication. Commands:
For a job with a script:
starccm+ -power -rsh ssh -np $RESCALE_CORES_PER_SLOT -machinefile $HOME/machinefile -batch macro.java -load input.sim
For a job wihout macro:
starccm+ -power -rsh ssh -np $RESCALE_CORES_PER_SLOT -machinefile $HOME/machinefile -batch run -load input.sim
How do I use STAR-CCM+ POD Licenses?
You will require a valid STAR-CCM+ license when setting up your STAR-CCM+ job on Rescale. A POD license can be referenced on the Software Setup section of the job setup. Having selected STAR-CCM+ as the software you wish to use, in License Options select Provide Existing License and enter the following information into the license fields:
- Enter firstname.lastname@example.org into the License field
- Enter your product code into the Project Code field (Your project code is a set of random characters and can be found on the CD-Adapco Steve Portal)
An example of a STAR-CCM+ POD license setup on Rescale is shown below.
How can I remotely access running STAR-CCM+ Jobs using the client on my desktop?
This tutorial shows you how to remotely connect to your STAR-CCM+ job (running on Rescale cluster) using the STAR-CCM+ client on a desktop.
First, you will need to set up and launch a STAR-CCM+ job through Rescale (read here). At the Software Settings page, you will need to include the
-collab flag into the command box before the
-batch command. For example:
starccm+ -power -collab -batch run -load <input-file>
Once the cluster is up and the job is running, you can monitor the status of your job. Do note that there is a slight difference between the methods of connection using a Rescale Desktop and using your personal workstation.
Connecting from Rescale Desktops
Please open up the
process_output.log file. At approximately line 20 of the log, you can find the server information.
You can read the file through the live tailing window if the line is still visible, else you will first need to download the file or expand the number of lines shown (use the icon on the top right hand corner of the black live tailing window).
Server::start -host ip-10-25-38-85.ec2.internal:47827
Next, launch the STAR-CCM+ client on your Rescale Desktop and navigate to "File > Connect to Server..."
Next, enter the server information (extracted above) in the following format, and click "OK" (see below). You will now be connected to your running job.
Connecting from your Personal Workstation
If you are using your personal workstation, you would need to first set up an SSH tunnel to the remote cluster. (Note: your SSH key has to be set up on your Rescale account settings BEFORE you launch the job). If you need guidance on how to use PuTTY or Pageant, please refer to our SSH Documentation.
Ensure Pageant is running and that your key is added. Next open a command prompt and enter the following command:
plink -ssh <user>@<ip> -L 47827:localhost:47827 -N -v
ssh -i </path/to/key> <user>@<ip> -L 47827:localhost:47827 -N -v
Note: you can extract the
<user>@<ip> information under the "Job Logs" section on the Status Page of the Rescale Web UI.
When prompted to trust the host and store the key in cache, enter 'y' or 'yes'.
Lastly, return to the "Connect to Server" popup on the STAR-CCM+ client and enter
localhost into the "Host" field and
47827 into the "Port" field, and click "OK".
Monitor and Control your Running Job
You should now be connected to your running job, and you are able to track the job output on the client window:
Note: This only works if the version of the client on your desktop exactly matches the version of STAR-CCM+ you have selected and run on the Rescale platform. If not, you will get the error shown below:
How do I insert a checkpoint/stop file to my running job?
This tutorial shows you how to save a
checkpoint file and a stop (
ABORT) file. STAR-CCM+ only polls for these files every minute.
To complete these tasks, you will need to use our in-browser SSH. To do so, go to the Status page of your job. Then below the Live Tailing panel, you will see an SSH panel with a thunderbolt symbol. In the SSH panel, you will se a Server IP address which you can click to launch an in-browser SSH terminal. This way, you can interact with the running cluster from your browser.
For more information on using Rescale's in-broswer SSH feature, please refer to the tutorial here.
To insert a
checkpoint file, enter the following commands in your SSH session (2 lines).
cd work touch CHECKPOINT
The commands above will insert a
checkpoint file in the job directory running in the cluster. This action triggers STAR-CCM+ to save at the end of the current step (iteration in a steady case, time-step in a transient case). This action saves the new simulation (.sim) file in the results directory and thus appears in the Results page of the job.
In addition, both the trigger and the original input (.sim) files will be saved in the results directory and will be renamed with a (~) appended at the end of the filename.
It's important to distinguish between the two simulation files. The new .sim file is the saved file at the current iteration. An example is shown below.
- Original input file (renamed):
- New saved file:
There are two options to insert a stop (
ABORT) file. Firstly, this can be done interactively in the STAR CCM+ GUI by pressing the Stop Iterating button located on the top toolbar.
The second option is to enter the following commands in your SSH session (2 lines):
cd work touch ABORT
The commands above will insert a stop file (
ABORT) in the job directory running in the cluster. This action triggers STAR_CCM+ to save at the end of the current step and exits the program. This action creates a new simulation (.sim) file saved at the current iteration, with a (@) and iteration number appended to the filename.
In addition, both the stop and original input (.sim) files will be saved in the results directory, but they are not renamed.
To distinguish between the two simulation files, the new .sim file containing the number of the current iteration is the saved file.
- Original input file:
- New saved file: