How to run CFX

This page describes how to run CFX, which is part of the Ansys suite of programs. 

Prerequisites

To run Fluent you need to be added to the ansys  group and have set up your floating licence. Please refer to:

Steps

You will only run CFX in batch mode. Slurm batch scripts need to load the appropriate cfx  module and then launch the program. When running on Cray systems, there are additional runtime arguments that need to be passed. Listing 1 shows an example. 

Listing 1. Sample Slurm script to run CFX
#!/bin/bash -l
# list resources for your job using #SBATCH
# load the module
#CFX is a module in ansys-fluids package
module load ansys-fluids/version

# Tell CFX where the licence server is.
export ANSYSLI_SERVERS=2325@myflexlmserver.edu.au
export ANSYSLMD_LICENSE_FILE=1055@myflexlmserver.edu.au

# run the job 
cfx5solve # list of arguments 
# for Running on Cray systems like Magnus/Galaxy and Setonix you will 
# need to add extra arguments
cfx5solve -start-method "Cray MPI Distributed Parallel" -partition 4

When running the program, use a sensible number of partitions, which will depend on your individual model as well as the number of nodes you are running on.  Make sure the overlap of partitions is small, and aim for less than 10% overlap.