The HEC currently hosts several components of the commercial Ansys package, with licenses supplied by the Engineering Department. This page describes the CFX component.


On first use, Ansys will set up your user preferences to use the educational license, which has limits with regards to certain model sizes. To switch to the academic license, first load your preferred Ansys module on the HEC login node and then run:

  cd && tar xf $ANSYS_HOME/ansys-hpc-lic-prefs.tgz

This setup procedure needs to been run once for each version of Ansys you use. If you switch to a different Ansys module/version you'll need to rerun the above command to set up license preferences for that version.



More information

 A sample serial job script for cfx5solve

cfx5solve batch jobs may be run by creating a batch job control script (such as the example below, which uses ansys_job.com):

#$ -S /bin/bash

#$ -q serial
#$ -l h_vmem=3G

source /etc/profile
module add ansys

time cfx5solve -batch -def mymodel.def


where mymodel.def is the name of the Solver Input File. For a more detailed description of serial batch jobs, please see Submitting jobs on the HEC.




 A sample parallel job script for cfx5solve

For models suitable for parallel running, the following parallel job template can be used:

#$ -S /bin/bash

#$ -q parallel
#$ -l nodes=1
#$ -l node_type=10Geth*

source /etc/profile
module add ansys

## Create hosts list
PAR_HOSTS=`parhosts`
echo Hosts are: $PAR_HOSTS

cfx5solve -batch -def mymodel.def -par-dist "$PAR_HOSTS" \
-start-method "HP MPI Distributed Parallel"


where mymodel.def is the name of the Solver Input File. Ansys uses MPI for parallelism see Using the Message Passing Interface (MPI) on the HEC for more details on MPI job scripts.




 A sample parallel job script for fluent

For models suitable for parallel running, the following parallel job template can be used:

#$ -S /bin/bash

#$ -q parallel
#$ -l nodes=1
#$ -l node_type=10Geth*

source /etc/profile
module add ansys/17.2

fluent 3ddp -g -sge -pinfiniband -i myjournal.jou


Where myjournal.jou is the name of your fluent journal file. Ansys uses MPI for parallelism see Using the Message Passing Interface (MPI) on the HEC for more details on MPI job scripts.