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 www.ansys.com

Ansys is available as a module on Apocrita.

Usage

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

module load ansys

Ansys documentation

The Ansys documentation is available via the anshelp command, this requires X-windows forwarding to be enabled. This command will open a windows style help viewer.

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=4: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=4: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=4: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 48 cores across two sdv nodes.

#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe parallel 48
#$ -l h_rt=4:0:0
#$ -l infiniband=sdv-i
#$ -l ansys=48

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

GPU job

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

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

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