STARCCM+ Fusion

From Public Wiki
Jump to navigation Jump to search

First, you need to get the correct path to STAR-CCM+ in your $PATH environmental variable. On Fusion, this is managed by SoftEnv. To add the current version to your path, add the key +starccm+-6.02.007 to your .soft file:


cat >> .soft <<EOF
+starccm+-6.02.007
EOF
resoft

Check your environment by issuing the command:

which starccm+

This should return:

/soft/starccm+/6.02.007/starccm+6.02.007/star/bin/starccm+

Here is a sample PBS script for submitting STAR-CCM+ jobs. In addition to the above STAR-CD sample, this script runs commands that time the run. Note: This script requires you to change the name of the .sim file. This one looks for one named "star.sim "

#!/bin/sh
#PBS -lnodes=4:ppn=4,walltime=48:00:00
#PBS -N starcccmp_q
#PBS -j oe
#PBS -V
cd $PBS_O_WORKDIR
#
# get the hosts in a format the star utility requires
#
NHOSTS=`cat $PBS_NODEFILE | wc -l`
#
echo '#######################################'
echo " "
echo '++++ began:' `date`
echo '++++ # of hosts: ' $NHOSTS
which starccm+
echo " "
echo '#######################################'
echo " "

TBEGIN=`echo "print time();" | ssh eddyeth perl`

starccm+ -batch -np $NHOSTS -machinefile $PBS_NODEFILE -rsh ssh star.sim  > starccmp.log 2>&1

TEND=`echo "print time();" | ssh eddyeth perl`

echo " "
echo '++++ ended:'  `date`