Note on using OpenFOAM
Information on OpenFOAM and OpenCFD can be obtained from the Web site http://www.openfoam.com/ . If you are publishing results obtained using OpenFOAM, please cite the Web site.
OpenFOAM on the iDataPlex
OpenFOAM-1.7.1
Following is an example job script:
#BSUB -o OpenFOAM_1.7.1.out #BSUB -e OpenFOAM_1.7.1.err #BSUB -R "span[ptile=12]" #BSUB -n 36 # initialise the environment export WM_64=ON . /etc/profile.d/modules.sh module load openfoam/1.7.1 . $foamDotFile export myoptions="-parallel" # run the job cd $LS_SUBCWD $MPIROOT/bin/mpirun -x LD_LIBRARY_PATH -np 36 simpleFoam $myoptions
Note: OpenFOAM 2.0.1 is similar
OpenFOAM-1.5-1
Example job script:
#BSUB -o OpenFOAM-1.5-1.out
#BSUB -e OpenFOAM-1.5-1.err
#BSUB -R "span[ptile=12]"
#BSUB -n 16
# initialise the environment
. /etc/profile.d/modules.sh
# load OpenFOAM module
module load openfoam/1.5-1
. $foamDotFile
# customise the run
export WM_64=ON
export myoptions="-parallel"
jobs="foamProMesh checkMesh renumberMesh caseSetup simplePorousFoam"
cd $LS_SUBCWD
for job in `echo $jobs`
do
case "$job" in
"renumberMesh" ) options="$myoptions -overwrite" ;;
* ) options="$myoptions" ;;
esac
# run the job
$MPIROOT/bin/mpirun -x LD_LIBRARY_PATH -np 16 $job $myoptions
done
OpenFOAM on the Sun Cluster
First remove any existing modules and load the openfoam module. Then source the setup scripts and create your own runtime area and run the test script.
module purge module load openfoam . $foamDotFile mkdir -p $FOAM_RUN/run foamInstallationTest
After that its up to you. Please see the OpenFOAM tutorials for help: http://www.openfoam.com/docs/user/ . Here is a simple script for submitting a 4-core parallel OpenFOAM job.
rm *.sh.* rm interFoam.sh EXEC="/panfs/dl/home/openfoam/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/interFoam -parallel" export QSUB_OPTIONS="-V" ompisub 1x4 $EXEC