#!/bin/bash #PBS -S /bin/bash # run simple fluent job, works on a single node or multiple nodes # set default resource requirements for job - these can be overridden on the qsub command line # (this is for a 4 processor job requesting 1 hr 30 minutes) #PBS -l nodes=1:ppn=4 #PBS -l walltime=01:30:00 #Change to directory from which job was submitted cd $PBS_O_WORKDIR # set number of processors to run on # (list of node names is in file $PBS_NODEFILE) nprocs=`wc -l $PBS_NODEFILE | awk '{ print $1 }'` # load fluent module so that we find the fluent command module load fluent # Run default version of Fluent in 3d mode in parallel over $nprocs processors # Fluent commands are in file elbow.jou, output messages go to output_file fluent 3d -t$nprocs -cnf=$PBS_NODEFILE -g -i Fluent_par.jou > output_file