Star-CCM+: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 28: Line 28:


<!--T:5-->
<!--T:5-->
You will also need to set up your job environment to use your license. If you are using CD-adapco's online <i>pay-on-usage</i> server, the configuration is rather simple. If you are using an internal license server, please contact [[technical support]] so that we can help you set up the access to it.  
When submitting jobs on a cluster for the first time, you must set up the environment to use your license. If you are using CD-adapco's online <i>pay-on-usage</i> server, simply create a  <code>~/.licenses/starccm.lic</code> file as shown in the <b>POD license file</b> section above and license checkouts should immediately work. If however you are using an internal license server, then after creating <code>~/.licenses/starccm.lic</code> you must submit a problem ticket to [[technical support]] so we can help co-ordinate the necessary one time network firewall changes required to access it.   If you still have problems getting the licensing to work then try removing or renaming file <code>~/.flexlmrc</code> since previous search paths and/or license server settings maybe stored in it which conflict with your current <code>starccm.lic</code> settings.  Not e that files from previous may have accumulated a significant amount of disc space in hidden directories named <code>.star-version_number</code> if you have run many long jobs in the past using older slurm scripts or if you regularly run starccm+ in gui mode. These can be removed periodically by carefully running the command <code>rm -rfIv ~/.starccm*</code> where the v option will list everything that is erased.
 
<!--T:8-->
Note that at [[Niagara]], the compute nodes mount the <code>$HOME</code> filesystem as <i>read-only</i>. Therefore it is important to define the environment variable <code>$STARCCM_TMP</code> and point it to a location on <code>$SCRATCH</code>, which is unique to the version of StarCCM+. Otherwise, StarCCM+ will try to create such a directory in <code>$HOME</code> and crash in the process.
 


<!--T:263-->
<!--T:263-->
Line 75: Line 71:
<!--T:270-->
<!--T:270-->
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server…
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server…
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -nbuserdir $SLURM_TMPDIR -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim


<!--T:271-->
<!--T:271-->
Line 118: Line 114:
<!--T:278-->
<!--T:278-->
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server…
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server…
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -nbuserdir $SLURM_TMPDIR -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2


<!--T:279-->
<!--T:279-->
Line 148: Line 144:
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export CDLMD_LICENSE_FILE="1999@flex.cd-adapco.com"
export CDLMD_LICENSE_FILE="1999@flex.cd-adapco.com"
<!--T:305-->
export STARCCM_TMP="${SCRATCH}/.starccm-${EBVERSIONSTARCCM}"
mkdir -p "$STARCCM_TMP"


<!--T:306-->
<!--T:306-->
slurm_hl2hl.py --format STAR-CCM+ > $STARCCM_TMP/machinefile-$SLURM_JOB_ID
slurm_hl2hl.py --format STAR-CCM+ > $SLURM_TMPDIR/machinefile


<!--T:307-->
<!--T:307-->
Line 161: Line 153:
<!--T:287-->
<!--T:287-->
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server…
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server…
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -nbuserdir -licpath $CDLMD_LICENSE_FILE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $SLURM_SUBMIT_DIR/your-file.sim -mpi intel -fabric psm2


<!--T:288-->
<!--T:288-->
Line 203: Line 195:


<!--T:295-->
<!--T:295-->
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server…
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi openmpi
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -nbuserdir $SLURM_TMPDIR -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi openmpi


<!--T:296-->
<!--T:296-->
Line 257: Line 249:
         echo "Attempt number: "$I
         echo "Attempt number: "$I
         # Remove "-power -podkey $LM_PROJECT" when using an institutional license server…
         # Remove "-power -podkey $LM_PROJECT" when using an institutional license server…
         starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -machinefile $SLURM_SUBMIT_DIR/machinefile_$SLURM_JOB_ID $SLURM_SUBMIT_DIR/your-simulation-file.java $SLURM_SUBMIT_DIR/your-simulation-file.sim > $SLURM_JOB_ID.results
         starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_SUBMIT_DIR/machinefile_$SLURM_JOB_ID $SLURM_SUBMIT_DIR/your-simulation-file.java $SLURM_SUBMIT_DIR/your-simulation-file.sim > $SLURM_JOB_ID.results
         RET=$?
         RET=$?
         i=$((i+1))
         i=$((i+1))
cc_staff
1,857

edits

Navigation menu