STAR-CCM+
The STAR-CCM+ engineering simulation tool is installed on the CC software stack.
Getting a license
Licenses are provided by Siemens.
Running using the CC installation
STAR-CCM+ 12.04.011
STAR-CCM+ is only available on the CC software stack. On Niagara you must run the following module commands:
module load CCEnv module load StdEnv module load starccm/12.04.011-R8
Setting up your .star-12.04.011 directory
STAR-CCM+ version 12.04.011 will attempt to write to your $HOME/.star-12.04.011 directory. This will work when you are testing your workflow on the login nodes, because they can write to $HOME. However, recall that the compute nodes cannot write to the /home filesystem. If you attempt to run STAR-CCM+ from a compute node using the default configuration, it will fail because STAR-CCM+ cannot write to $HOME/.star-12.04.011.
The solution is to create an alternative directory called $SCRATCH/.star-12.04.011, and create a soft link from $HOME/.star-12.04.011 to $SCRATCH/.star-12.04.011:
mkdir $SCRATCH/.star-12.04.011 ln -s $SCRATCH/.star-12.04.011 $HOME/.star-12.04.011
This will fool Ansys into thinking it is writing to $HOME/.star-12.04.011, when in fact it is writing to $SCRATCH/.star-12.04.011. This command only needs to be run once, though it needs to be run for each version of STAR-CCM+ you run.
Running STAR-CCM+
Example submission script for a job running on 1 node, with max walltime of 4 hours:
#!/bin/bash #SBATCH --nodes=1 #SBATCH --ntasks-per-node=1 #SBATCH --cpus-per-task=40 #SBATCH --time=4:00:00 #SBATCH --job-name test module load CCEnv module load StdEnv module load starccm/12.04.011 # DIRECTORY TO RUN - $SLURM_SUBMIT_DIR is directory job was submitted from cd $SLURM_SUBMIT_DIR machines=`srun bash -c 'hostname -s' | sort | uniq | awk '{print $1 ":" 40}' | paste -s -d ':'` ansys190 -b -j JOBNAME -ppf aa_r -dis -machines $machines -i ansys.in
Running using the CC installation
Ansys 19.0
To access the CC software stack you must unload the Niagara stack.
module load CCEnv module load ansys/19.0
You can run the script given in the previous section by substituting the previous module commands with the above two.