Submitting a Fluent Job to SGE

To submit jobs, there are two methods- via batch scripts or by rsh direct login.

Method 1: To use a batch script to launch the interactive GUI, create a file, (e.g. batch.sh) with the contents:


#!/bin/csh
#$ -q long
#$ -pe mpi-24 24
#$ -N JobName
#$ -cwd
#$ -v DISPLAY

module load ansys

fluent 3ddp -t$NSLOTS

In the example above, Fluent will be started with 24 worker jobs ( the value on the end of the -pe line), and is being called in 3D, dual precision mode, as is indicated by the 3ddp on the fluent command line.

To submit the job, type the command:

> qsub batch.sh

Method 2: To use a batch script to launch a job non-interactively, create a batch file with the contents:


#!/bin/csh
#$ -q long
#$ -pe mpi-24 24
#$ -N JobName
#$ -cwd
#$ -v DISPLAY

module load ansys   #load the fluent module in AFS

# turn off shell variable "noclobber" which prevents data files from being
# overwritten.  Fluent jobs are typically setup to overwrite data files.

unset noclobber

# Run the fluent job; -t specifies number of processors

fluent 3ddp -t$NSLOTS -g < file.jou >& logfile.txt

And again submit via:

>  qsub batch.sh

Please note that the symbols "#$" is NOT a comment, while a single "#" IS. To check on the status of all your jobs, use the command:

>  qstat -u your_afs_id