Skip to content

Ansys

ANSYS offers a comprehensive software suite that spans the entire range of physics, providing access to virtually any field of engineering simulation that a design process requires. You can find out about the features it provides at www.ansys.com.

Ansys is available as a module on Apocrita.

Usage

To run the default version of Ansys, simply load the ansys module:

module load ansys

Ansys documentation

anshelp no longer available

The Ansys documentation used to be available via the anshelp command, but this now requires a web browser and thus does not work on Apocrita.

For more detailed documentation, please visit the official ANSYS online documentation website.

Licensing

Ansys is licensed for 128 cores on Apocrita, when running the application you can request licences via the -l ansys=<number of cores> parameter.

Example jobs

In all the example jobs below, replace SIM-FILE with the name of your simulation file.

One node or less

Here is an example Mechanical APDL job running on 4 cores and 16G of ram on a single node.

#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe smp 4
#$ -l h_rt=1:0:0
#$ -l h_vmem=4G
#$ -l ansys=4

module load ansys
mapdl -np $NSLOTS -b < SIM-FILE

Here is an example CFX job running on 4 cores and 16G of ram on a single node.

#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe smp 4
#$ -l h_rt=1:0:0
#$ -l h_vmem=4G
#$ -l ansys=4

module load ansys
cfx5solve -batch -parallel -par-local -part $NSLOTS -def SIM-FILE

Here is an example of a fluent 3d job running on 4 cores and 16G of ram on a single node.

#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe smp 4
#$ -l h_rt=1:0:0
#$ -l h_vmem=4G
#$ -l ansys=4

module load ansys
fluent 3d -g -rsh -t$NSLOTS -i SIM-FILE

Parallel job

Here is an example of an Ansys job running on 96 cores across two ddy nodes.

#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe parallel 96
#$ -l h_rt=240:0:0
#$ -l infiniband=ddy-i
#$ -l ansys=96

module load ansys
ansys232 -dis -np ${NSLOTS} -b < SIM-FILE

GPU job

Here is an example job running on 12 cores and 1 GPU:

#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe smp 8
#$ -l h_rt=240:0:0
#$ -l h_vmem=11G
#$ -l gpu=1
#$ -l ansys=12

module load ansys
export NUM_GPU_DEVICES=`echo $SGE_HGR_gpu | wc -w`
fluent 3d -g -rsh -t$NSLOTS -gpgpu=$NUM_GPU_DEVICES -i SIM-FILE