#!/bin/bash #PBS -S /bin/bash # Torque job script to run Ansys in parallel on a single node # set default resource requirements for job # (4 processors on 1 node requesting 3 hours 30 minutes of runtime) # - these can be overridden on the qsub command line #PBS -l nodes=1:ppn=4 #PBS -l walltime=03: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 ansys module so that we find the ansys110 command module load ansys # Run ansys commands in file plate in batch mode #( the -m & -db flags increase the total amount of memory usable by ansys) ansys120 -b -m 20000 -db 10000 -np $nprocs -j plate < plate > plate.out