Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

CFX is a Computational Fluid Dynamics (CFD) and Engineering package. CFX contains:

  • Advanced coupled multigrid linear solver technology
  • meshing flexibility
  • parallel enabled
  • pre- and post-processing capabilities

Examples of uses include: multiple frame of reference, turbulence, combustion and radiation, Eulerian two phase and free surface flow.

In addition, CFX offers an open architecture that encourages customization on all levels. Both input and results are in accessible formats that allow easy customization.

Usage

NCI installs CFX as part of the ANSYS package, load ansys module to add the executables into your search path.

module load ansys/2021r1

There are also license modulefiles for users to configure where to check out ANSYS licence(s). Users need to join the corresponding ansys software group before they can see the license modulefile, for example, only members of ansys_nci group can see the license module `ansys_licence/nci`. The software group membership gives not only the access to the license module,  and also allows checkouts from the corresponding licensing server.

To load the licence module for your own ansys software group, run

module load ansys_licence/<institution>


A example job submission script (cfxjob.sh) is provided below. It requests 96 processors, 380 GB of memory, 400GB of local disk space for 10 minutes in the normal queue and tells the job to mount /g/data/ab01 and /scratch/ab01 project folder into the job. Within the job it tells CFX to use the start method "Gadi_openmpi" and the loaded openmpi by the ansys module to run the simulation on $PBS_NCPUS processors.

#!/bin/csh
#PBS -q normal
#PBS -l walltime=00:10:00
#PBS -l ncpus=96
#PBS -l mem=380Gb
#PBS -l jobfs=400GB
#PBS -l storage=gdata/ab01+scratch/ab01
#PBS -l software=<license_string>
#PBS -l wd

module load ansys/2021r1
module load ansys_licence/<institution>

export CFX5_OPENMPI_DIR=$OPENMPI_ROOT
cfx5solve -def "StaticMixer.def" -part $PBS_NCPUS -start-method Gadi_openmpi

Note that the submission script uses the PBS directive`-l software`, to ask the job scheduler for the reservation of ansys licence seats from license  <license_string> , see details in the section `License requirements` below. To change the number of processors, memory, or jobfs required, and/or project folders to mount, simply modify the appropriate PBS resource requests at the top of this file.

The maximum number of CPU cores a CFX job can use is limited by the license availability. For example, NCI owns an academic ANSYS license file which has 128 seats for the hpc feature and it supports jobs request up to 128 CPU cores. If you submit many 128-core fluent jobs, they are expected to run one at a time.

Once the job submission script is saved to the same directory in which the input file StaticMixer.def is located, run 

qsub cfxjob.sh 

inside that directory to submit your job to the PBS scheduler.

Restart Jobs

If you need to run CFX for a very long period of time which exceeds the default walltime limit set for the job, see the walltime limit for different queues and number of cores on the Queue Limits page, we suggest to add checkpoints to the long job, save restart files and use the last one as input to the next job. 

License requirements

Users from the following institutions have access to their own institution licenses and should join the corresponding software group. To join a software group, login to my.nci.org.au first, search for the group by the software group name, and use the tab `Join` on its project page to submit the membership request. It may take up to 1 business day for the lead CI to respond. Once your group membership request is approved, the corresponding licence module becomes visible and ready for use. Run `module avail ansys` to list all ansys related modulefiles. Jobs need to load the license module together with the application module to run CFX.

License Ownerlicense modulePBS Directive `-lsoftware=`software group
Royal Melbourne Institute of Technologyansys_licence/rmitansys_rmit ansys_rmit
The University of Wollongongansys_licence/wollongongansys_wollongongansys_wollongong
The University of New South Walesansys_licence/unswunsw_ansysunsw_ansys
The University of Sydneyansys_licence/usydansys_usydansys_usyd
NCI*ansys_licence/nciansys_nciansys_nci

* NCI owns an academic ANSYS license file which provides 25 CFD feature seats and 128 HPC feature seats. Users who have no access to the above licenses are welcome to join the software group ansys_nci to enable the access to modulefile ansys_licence/nci and the checkouts from licence ansys_nci.




A sample batch job for running a CFX job is as follows:

#!/bin/bash
#PBS -q normal
#PBS -l walltime=00:10:00
#PBS -l ncpus=96
#PBS -l mem=Gb
#PBS -l wd
#PBS -l software=ansys_<institution>

module load ansys/2021r1
module load ansys_licence/<institution>

export CFX5_OPENMPI_DIR=$OPENMPI_ROOT
cfx5solve -def "StaticMixer.def" -part $PBS_NCPUS -start-method Gadi_openmpi

This script will work for an arbitrary number of cpus, please choose it carefully according to your problem size.


License

The license is for academic usage. Please request membership of the Fluent software group. to get access to this software. Users from the following institutions have access to their own institution licenses and should join the corresponding software group as well as the general Fluent software group.

UNSW

Staff members of the University of NSW who are part of the unsw_ansys software group can access their own license files to run Fluent. To do this you will need a batch script along the lines of

#!/bin/bash
#PBS -q express
#PBS -l walltime=00:10:00
#PBS -l ncpus=16
#PBS -l mem=32GB
#PBS -l software=unsw_ansys
#PBS -l wd
module load cfx/17.2
module load unsw-ansys-license
cfx5solve -def "StaticMixer.def" -part $PBS_NCPUS -start-method Raijin

RMIT

Staff members of RMIT who are part of the ansys_rmit software group can access their own license files to run Fluent. To do this you will need a batch script along the lines of

#!/bin/bash
#PBS -q express
#PBS -l walltime=00:10:00
#PBS -l ncpus=8
#PBS -l mem=2Gb
#PBS -l software=ansys_rmit
#PBS -l wd
module load cfx/17.2
module load ansys_licence/rmit
cfx5solve -def "StaticMixer.def" -part $PBS_NCPUS -start-method Raijin

University of Wollongong

Staff members of UoW who are part of the ansys_wollongong software group can access their own license files to run Fluent. To do this you will need a batch script along the lines of

#!/bin/bash
#PBS -q express
#PBS -l walltime=00:10:00
#PBS -l ncpus=8
#PBS -l mem=2Gb
#PBS -l software=ansys_wollongong
#PBS -l wd
module load cfx/17.2
module load ansys_licence/wollongong
cfx5solve -def "StaticMixer.def" -part $PBS_NCPUS -start-method Raijin
  • No labels