How to use Ansys-CFX


Submitting a CFX job on Dardel

Important note: Due to some technical issues, only single-node computations are possible (every node has 128 cores).We are working on the problem and will update this page once we fix the problem.

A script for running Ansys/CFX on Dardel called is shown below.

#!/bin/bash -l
# The -l above is required to get the full environment with modules

# Set name of your job
#SBATCH -J my_job

# The wall-clock time will be given to this job
#SBATCH -t 10:00:00

# The time allocation (project)
#SBATCH -A <your allocation>

# Specify the partition for your job
#SBATCH -p <partition>

# Number of nodes

#SBATCH -e error_file.e%J

## Load the ansys/cfx module 
module load PDC
module load cfx/21.2

# Set the license server below
export ANSYSLMD_LICENSE_FILE=<license file>
export ANSYSLI_SERVERS=<license server>
# If you are KTH user, contact PDC support or KTH IT for license server information

# The Input file

# Run cfx 
cfx5solve -batch -parallel -partition 128 -par-local -def $DEF_FILE  

and submit it from Dardel’s login node


Note that this script does not contain all the options for CFX. You may want to add more options depending on your job.


PDC takes no responsibility for the correctness of results produced with the binaries. Always evaluate the binaries against known results for the systems and properties you are investigating before using the binaries for production jobs.