CFX
ANSYS CFX, the only large-scale commercial software using a fully implicit coupled algorithm, excels in result accuracy, computational stability, speed, and flexibility due to its advanced algorithms, rich physical models, and comprehensive pre- and post-processing. Besides general industrial flows, CFX can simulate complex flow fields such as combustion, multiphase flow, and chemical reactions. Integrated into the ANSYS Workbench environment, it expands its application in engineering simulation and achieves new levels of efficiency.
License required
Please purchase, download, and install the CFX license yourself. For assistance with installation or usage, contact us with proof of your research group's CFX license.
1. Script Template
submit.sh
#!/bin/bash
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=56 # Number of cores per node
#SBATCH --ntasks=56 # Total number of cores
#SBATCH --partition=g1_share # Queue partition; must specify the correct partition
#SBATCH --job-name=hello # Job name
#SBATCH --output=hello.%j.out # Normal log output (%j parameter value is jobId)
#SBATCH --error=hello.%j.err # Error log output (%j parameter value is jobId)
##############################################
# Software Envrironment #
##############################################
#unset I_MPI_PMI_LIBRARY # Disable default MPI library, use Intel's built-in library
#export I_MPI_JOB_RESPECT_PROCESS_PLACEMENT=0 # Parameter modification required for Intel multi-node jobs
# module load intel/2022 intelmpi/2022 # Load Intel environment
##############################################
# Run job #
##############################################
#Generate line of names of computational nodes (or hosts).
MYHOSTLIST=$(srun hostname | sort | \
uniq -c | \
awk '{print $2 "*" $1}' | \
paste -sd, -)
echo $MYHOSTLIST
#Run Ansys CFX.
cfx5solve -def inputfile.def -fullname test -doubule -parallel -start-method "Intel MPI Distributed Parallel" -par-dist "$MYHOSTLIST" -batch
2. The meanings of the command-line parameters are as follows:
-def inputfile.def: Specify the input file as inputfile.def.-fullname test: Specify the solver name as test.-double: Specify the use of double-precision floating-point numbers for computation.-parallel: Specify the use of parallel computing.-start-method "Intel MPI Distributed Parallel": Specify the use of Intel MPI distributed parallel computing.-par-dist "$MYHOSTLIST": Specify the use of the host list defined in the MYHOSTLIST environment variable for parallel computing.-batch: Specify running the solver in batch mode.