Star-CCM+/en: Difference between revisions

Jump to navigation Jump to search
Updating to match new version of source page
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 8: Line 8:


== Configuring your account ==
== Configuring your account ==
In order to configure your account to use your own license server with our Star-CCM+ module, create a license file <code>$HOME/.licenses/starccm.lic</code> with
In order to configure your account to use a license server with our Star-CCM+ module, create a license file <code>$HOME/.licenses/starccm.lic</code> with the following layout:
{{File|name=starccm.lic|contents=SERVER IP ANY PORT
{{File|name=starccm.lic|contents=SERVER IP ANY PORT
USE_SERVER}}
USE_SERVER}}
where you change <code>IP</code> and <code>PORT</code> with the IP address and the port used by the license server at your institution.
where <code>IP</code> and <code>PORT</code> should be changed to specify the IP address and the static starccm PORT used by the server.


=== POD license file ===
=== POD license file ===


Researchers who have purchased a POD license from [https://www.plm.automation.siemens.com/global/en/buy/ Siemens] may simply configure the following <code>$HOME/.licenses/starccm.lic</code>  file on any of our clusters where Star-CCM+ jobs are to be run.
Researchers who have purchased a POD license from [https://www.plm.automation.siemens.com/global/en/buy/ Siemens] may simply configure their license file on any cluster as follows:
{{File|name=starccm.lic|contents=SERVER flex.cd-adapco.com ANY 1999
{{File|name=starccm.lic|contents=SERVER flex.cd-adapco.com ANY 1999
USE_SERVER}}
USE_SERVER}}
Line 21: Line 21:
= Cluster batch job submission =
= Cluster batch job submission =
Select one of the available modules:
Select one of the available modules:
* <code>starccm</code> for the double-precision flavour,  
* <code>starccm</code> for the double-precision flavour ie) <code>module load starccm/19.04.007-R8</code>,  
* <code>starccm-mixed</code> for the mixed-precision flavour.
* <code>starccm-mixed</code> for the mixed-precision flavour ie) <code>module load starccm-mixed/19.04.007</code>
 
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.
 
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.


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 <code>rm -ri ~/.starccm*</code> and replying yes as prompted.


<tabs>
<tabs>
Line 61: Line 58:


# 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


}}</tab>
}}</tab>
Line 95: Line 92:


# 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


}}</tab>
}}</tab>
Line 121: Line 118:
export CDLMD_LICENSE_FILE="1999@flex.cd-adapco.com"
export CDLMD_LICENSE_FILE="1999@flex.cd-adapco.com"


export STARCCM_TMP="${SCRATCH}/.starccm-${EBVERSIONSTARCCM}"
slurm_hl2hl.py --format STAR-CCM+ > $SLURM_TMPDIR/machinefile
mkdir -p "$STARCCM_TMP"
 
slurm_hl2hl.py --format STAR-CCM+ > $STARCCM_TMP/machinefile-$SLURM_JOB_ID


NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE))
NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE))


# 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


}}</tab>
}}</tab>
Line 162: Line 156:
NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE))
NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE))


# 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


}}
}}
Line 209: Line 203:
         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))
38,757

edits

Navigation menu