How to use Ansys-CFX

Software
Version
Cluster
Ansys-CFX
21.2
Dardel

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 cfx_run.sh 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 -N 1

#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
DEF_FILE=input.def

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

and submit it from Dardel’s login node

sbatch cfx_run.sh

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

Disclaimer

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.