StarCCM+
Simcenter STAR-CCM+ is a commercial simulation software based on computational fluid dynamics developed by Siemens Digital Industries Software. Simcenter STAR-CCM+ allows modeling and analysis of a range of engineering problems involving fluid flow, heat transfer, stress, particle flow, electromagnetics, and related phenomena.
License required
Please purchase the StarCCM+ license, download, and install it yourself. If you need assistance with installation or usage, please contact us with proof that your research group owns a StarCCM+ license.
1. Script Template
submit.sh
#!/bin/bash
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=56 # Number of cores per node
#SBATCH --ntasks=56 # Total number of cores
#SBATCH --partition=g1_share # Queue partition; must specify the correct partition
#SBATCH --job-name=hello # Job name
#SBATCH --output=hello_%j.out # Normal log output (%j parameter value is jobId)
#SBATCH --error=hello_%j.err # Error log output (%j parameter value is jobId)
##############################################
# Software Envrironment #
##############################################
unset I_MPI_PMI_LIBRARY # Unset default MPI library, use Intel's built-in
export I_MPI_JOB_RESPECT_PROCESS_PLACEMENT=0 # Parameter modification required for Intel multi-node jobs
module load intel/2022 intelmpi/2022 # Load Intel environment
##############################################
# Run job #
##############################################
ulimit -s unlimited
ulimit -l unlimited
cat /dev/null > machinefile
scontrol show hostname $SLURM_JOB_NODELIST > machinefile
jobname=`ls | grep sim | sed 's/.\{3\}.$//'` # Automatically identify and submit the single .sim file in the directory; if multiple files exist, modify the jobname parameter below
starccm+ -power -mpi intel -machinefile './machinefile' -np $SLURM_NTASKS -rsh ssh -cpubind -batch run -batch-report $jobname
2. The meanings of the command-line parameters are as follows:
-power: Run starccm+ in PowerSession mode.-mpi intel: Use the Intel MPI library.-machinefile './machinefile': Specify the path to the machine file containing the node list.-np $SLURM_NTASKS: Specify the number of processes to use, where $SLURM_NTASKS is the number of processes available in the Slurm job.-rsh ssh: Use the SSH protocol for remote shell access.-cpubind: Bind processes to CPUs to improve performance.-batch run: Run starccm+ in batch mode.-batch-report $jobname: Specify the name of the batch report, where $jobname is the name of the Slurm job.
3. Running Issues
# Output file hangs at this content during parallel execution, and nodes remain idle
Starting STAR-CCM+ parallel server
# Solution: Remove the -mpi intel flag from the command line
# License file not found during runtime
License build date: 31 March 2022
This version of the code requires license version 2023.02 or greater.
Licensing problem: Unable to find a path to any license file or license server. Please create the CDLMD_LICENSE_FILE environment variable and point it to the license server.
# Solution: export CDLMD_LICENSE_FILE=<path_to_license_file>