Description
ANSYS computational fluid dynamics (CFD) simulation software allows you to predict, with confidence, the impact of fluid flows on your product throughout design and manufacturing as well as during end use. ANSYS renowned CFD analysis tools include the widely used and well-validated ANSYS Fluent and ANSYS CFX.
Usage
module load 2022 module load ANSYS/2022R2
Ansys should be used in batch mode on Snellius. Fluent, one of the packages, can be used with a Graphical User Interface (GUI) and with a Text User Interface (TUI). You can prepare Case, Data and Journal files on your own computer and copy them to Snellius. Be sure that the journal file contains TUI commands. As an example you could copy the text below and paste it in a file batchjob.sh:
#!/bin/bash # Request 2 nodes for 15 minutes #SBATCH -N 2 #SBATCH -t 15 # Store current directory to MYSTART MYSTART=`pwd` # Load the Ansys module module purge module load 2022 module load ANSYS/2022R2 # Step into the temporary directory cd ${TMPDIR} # Create a list with the hostnames of the nodes assigned to us NODEFILE=`mktemp` scontrol show hostname > ${NODEFILE} # Copy example files to the tempdir # Note that the following examples might not be compatible with the loaded # version of ANSYS. Please refer to official documentation to find up-to-date # examples. cp /hpc/sw/ansys-18.1/example/* ${TMPDIR} # Start FLUENT for all cores on the assigned nodes fluent 3ddp -t $((SLURM_NNODES*SLURM_CPUS_ON_NODE)) -pinfiniband -cflush -cnf=${NODEFILE} -g -i pipe_sf.jou # Remove temporary nodefile rm -f ${NODEFILE} # Copy output to result directory mkdir -p ${MYSTART}/pipe_sf cp * ${MYSTART}/pipe_sf
You can submit this job via "sbatch"
sbatch batchjob.sh
The simulation will shortly run and produce a directory ''pipe_sf'' with a converged simulation of air flow through a pipe.
License
The package Ansys is available on Snellius for users in conjunction with their own (floating network) license. If you would like to use Ansys on Snellius, you need to:
- Create a ticket in our Servicedesk Portal, with the question to be added to the Unix group "ansys"
- Indicate that you are part of a group that already has a license
or
- Insert the coordinates (name and port) of your license server into the variables ANSYSLI_SERVERS and ANSYSLMD_LICENSE_FILE, e.g.
export ANSYSLI_SERVERS=12345@license_server.my_university.nl export ANSYSLMD_LICENSE_FILE=54321@license_server.my_university.nl module load 2022 module load ANSYS/2022R2
For this latter option, Snellius needs to be able to access license_server.my_university.nl at port 12345 and 54321. Most license servers will be shielded. Please create a ticket at our Servicedesk with the contact person at your university and we will contact him/her.