Updated 2021-05-17
Fluent¶
Run Fluent on the Cluster - Batch Mode¶
Overview¶
- Fluent can be run in either batch mode or interactively
- In the
PBS
script load ansys withmodule load ansys/17.0
. You can usemodule avail ansys
to see what versions of julia are available. - In the computation part of your
PBS
script, enter the folder where you have stored the input files (usingcd
). If it is in the same dir you have/are submitting thePBS
script from, you can usecd $PBS_O_WORKDIR
- To run fluent on the input files, use
fluent -t x -g <inputfile> outputfile
. There are additional options that will be covered later. - You MUST use the
-t
flag, and set it to the number of processors you requested (nodes=x * ppn=x)
Example PBS Script¶
#PBS -N fluentTest
#PBS -A [Account]
#PBS -l nodes=1:ppn=8
#PBS -l pmem=8gb
#PBS -l walltime=2:00:00
#PBS -q inferno
#PBS -j oe
#PBS -o fluent.out
cd $PBS_O_WORKDIR
module load ansys/17.0
fluent -t8 -g <inputfile> outputfile
- The
#PBS
directives are standard, requesting just 1 minute of walltime and 1 node with 8 cores. More on#PBS
directives can be found in the PBS guide $PBS_O_WORKDIR
is simply a variable that represents the directory you submit the PBS script from. Make sure the julia script you want to run (in this case,test.jl
) is in the same directory you put the PBS script.fluent -t 8 -g <inputfile> outputfile
runs the input file:-t 8
: specifies the number of processors to use. Must be set to the number you requested when you submitted the VNC job.-g
: tells fluent to run without gui<inputfile>
: journal file that contains same fluent commands as you would type interactively. Can be from previous session or created in text editor. More on input files hereoutputfile
: where anything normally printed to the screen will be stored (such as reports), along with errors
Additional Options¶
2d
: run 2 dimensional, single precision solver3d
: run 3 dimensional, single precision solver2ddp
: run 2 dimensional, double precision solver3ddp
: run 3 dimensional, double precision solver- For mpi job, you MUST specify the number of processes using
-t
and the machinefile-cnf=
-mpi=pcmpi
for smaller number of nodes-mpi=intel
for larger number of nodes-pib
for infiband
Run Fluent Interactively¶
Overview¶
- Running Fluent interactively is similiar to the usual workflow for an interactive program on the cluster. The workflow includes
- Setup VNC environment
- load Ansys in environment
- Launch Fluent
- Set number of processors
- When the gui launches, you MUST set the number of processes to the number of cpus requested
Set up Interactive (VNC) Session¶
- Please see the VNC guide for instructions on how to set up the Interactive VNC session
Start Fluent on VNC¶
- Open terminal in the vnc window by clicking top left
Applications
>System Tools
> scroll down toterminal
- all commands here on will be typed in terminal in VNC
- To use fluent, we must have Ansys loaded
- Commands to list available versions, load Ansys, and run:
module avail ansys #lists available versions
module load ansys/17.0 #loads Ansys 17.0
fluent #runs fluent
Setting CPU Number¶
- Once you run the command
fluent
, a gui should pop which allows you to adjust parameters - Make sure you set num processes number to the number of cpus you requested when submitting the interactive job