Ansys

Notitle

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. QMUL has a ANSYS Research Associate Parallel license for up to a maximum of 16 cores.

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

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 64 cores across two nxv nodes.

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

module load ansys
ansys180 -dis -np ${NSLOTS} -b < [INPUT FILE]

GPU job

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

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

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]