OpenFOAM

The OpenFOAMĀ® (Open Field Operation and Manipulation) CFD Toolbox is a free, open source CFD software package

We are using a prebuilt version called CentFOAM

Ready for users on athena
OF23 and paraview commands are available

Replace X where X is the number of processors

#!/bin/csh
#PBS -q para -l select=1:ncpus=
X:athena=True:mpiprocs=X
cd /user/jmatrow/problemdir

#Prepare environment variables
OF23

#Mesh the geometry
blockMesh

#Decompose the mesh for parallel run
decomposePar

#Run the solver
mpirun X simpleFoam -parallel

#Reconstruct the parallel results
reconstructPar

Mutlinode script changes:

Replace Y where Y is the number of nodes


#PBS -q para -l select=Y
:ncpus=X:athena=True:mpiprocs=X
OF23
setenv CASE_DIR /user/jmatrow/myCase
cp $PBS_NODEFILE $CASE_DIR/hostfile
blockMesh
decomposePar
foamJob -p -s icoFoam
reconstructPar