Sending Star-CCM+ simulations to ARCHIE-WeST

On this page:

An example script and instructions on how to send jobs to ARCHIE-WeST to run Star-CCM+ simulations in parallel.

Contents:

Example script file

This is an example script file. Everything in square brackets [] must be removed for the script to run.

#!/bin/bash

#=================================================================================
#
# Job script for running StarCCM+ on a multiple nodes
#
#=================================================================================

# Propogate environment variables to the compute node
#SBATCH --export=ALL
#
# Run in the standard partition (queue)
#SBATCH --partition=[standard, or teaching if you are an UG student]
#
# Specify project account
#SBATCH --account=[Project name]
#
# Distribute processes in round-robin fashion
#SBATCH --distribution=cyclic
#
# No. of tasks required
#SBATCH --ntasks=[Number of cores, eg 5]
#
# Specify runtime (hard) (HH:MM:SS)
#SBATCH --time=[Runtime, eg:50:00:00]
#
# Job name
#SBATCH --job-name=[Some simple description]
#
# Output file
#SBATCH --output=slurm-%j.out

module purge 
module load [star-ccm/16.04.007-r8]

#=========================================================
# Prologue script to record job details
#=========================================================
/opt/software/scripts/job_prologue.sh 
#----------------------------------------------------------

# Following line is necessary for multinode jobs
srun hostname -s > hosts.$SLURM_JOB_ID

starccm+ -rsh /usr/bin/ssh  -np $SLURM_NPROCS  -mpi intel -machinefile $SLURM_SUBMIT_DIR/hosts.$SLURM_JOB_ID -batch \
          -power -podkey [Your star license] -licpath 1999@flex.cd-adapco.com $SLURM_SUBMIT_DIR/[Your star-ccm file.sim]

#=========================================================
# Epilogue script to record job endtime and runtime
#=========================================================
/opt/software/scripts/job_epilogue.sh 
#----------------------------------------------------------

Copy the script above and paste it into a notepad. The notepad must be saved with a .sh extension.

Instructions on how to send a simulation to Archie through Thinlinc or MobaXterm

Instructions on how to open Star-CCM+ in Archie through Thinlinc of MobaXterm

  1. Replace abc12345 with your DS username