Skip to content
Bart Verleye edited this page Feb 26, 2015 · 82 revisions

Table of Contents

Details

ANSYS, Inc. is an engineering simulation software (computer-aided engineering, or CAE) that is headquartered in Canonsburg, Pennsylvania, United States.

ANSYS Fluent software contains the broad physical modeling capabilities needed to model flow, turbulence, heat transfer, and reactions for industrial applications ranging from air flow over an aircraft wing to combustion in a furnace, from bubble columns to oil platforms, from blood flow to semiconductor manufacturing, and from clean room design to wastewater treatment plants. Special models that give the software the ability to model in-cylinder combustion, aeroacoustics, turbomachinery, and multiphase systems have served to broaden its reach.

Usage

Connecting to the build node

You can use the graphical interfaces of Ansys on the build nodes. Be aware that there are limitations for processes running on the build nodes, e.g., run time is limited.

First connect to the login node with X forwarding enabled:

ssh -YC <login>@login.uoa.nesi.org.nz

Then connect to one of the build nodes:

ssh -YC build-wm

Load the Abaqus module:

module load ANSYS

Run e.g.

fluent

or

cfx5post

and the GUI will appear. If you are connecting from a Windows machine, you may need to use:

cfx5post -gr mesa 

Running compute jobs

See the example jobs below. You can submit them to the compute nodes by running

sbatch job.sl

Example SLURM jobs

cfx

Job description (download)
#!/bin/bash
# ANSYS_CFX SubmitScript
# Optimized for run parallel job 
######################################################
#SBATCH -J ANSYS_CFX_TEST
#SBATCH -A uoa99999         # Project Account
#SBATCH --time=01:00:00     # Walltime
#SBATCH --ntasks=16         # number of tasks
#SBATCH --mem-per-cpu=4G    # memory/cpu 
######################################################

###  Load the Environment
module load ANSYS/15.0

source /share/SubmitScripts/slurm/slurm_setup_cfx-env2.sh

# Executable and input file.
defname=example.def

cfx5solve -batch -single -def $defname -par -par-dist $CFX_HOSTLIST

fluent

Job description (download)
#!/bin/bash
# ANSYS_FLUENT SubmitScript
# Optimized for run parallel job 
######################################################
#SBATCH -J ANSYS_FLUENT_TEST
#SBATCH -A uoa99999         # Project Account
#SBATCH --time=01:03:00     # Walltime
#SBATCH --ntasks=24         # number of tasks
#SBATCH --mem-per-cpu=2G    # memory/cpu 
######################################################
###  Load the Environment
module load ANSYS/15.0

rm FLUENT_HOSTFILE
srun hostname > FLUENT_HOSTFILE
cat FLUENT_HOSTFILE
#########################################################
# the following is a generic command. In order to get this command working
# please decide if you want to run the 2d or 2ddp OR 3d OR 3ddp solver and
# please use ONLY one of the options in the <> shown below
# fluent <2d|2ddp|3d|3ddp> -g -t2

# Between the two EOFluentInput, you can put your fluent script. The example
# reads a case and a data file, initialises the system, does 6000 iterations 
# and writes the results fluent.dat. 
# 'yes' is the answer to 'do you want to overwrite data in fluent.dat'

fluent -v2d -g -t$SLURM_NTASKS -mpi=pcmpi -cnf=FLUENT_HOSTFILE -ssh << EOFluentInput > output.dat
  rc fluent.cas
  rd fluent.dat
  /solve/init/init
  it 6000
  wd fluent.dat
  exit
EOFluentInput

Input file(s)
Clone this wiki locally