HOW TO USE:
Available versions of OpenFoam:
Version | Module |
---|---|
8 | OpenFOAM/8 |
7 | OpenFOAM/7 |
7 | OpenFOAM-7-FOAMY_HEX_MESH |
3.0.x | OpenFOAM/in-box |
3.0.0 | OpenFOAM/3 |
2012 | OpenFOAM/2012 |
2112 | OpenFOAM/2112 |
2206 | OpenFOAM/2206 |
To be able to use all of OpenFoam functions users need to source the appropriate OpenFoam bashrc in their scripts:
#$ -pe *mpi 2 module load OpenFOAM/7 . $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/etc/bashrc mpirun -np $NSLOTS simpleFoam -parallel
More info on how to use OpenFoam can be found on OpenFoam.org pages for OpenFoam 3,7,8 and OpenFoam.com for versions 2012, 2112, 2206
OpenFOAM-in-box
#$ -N foam_test #$ -cwd #$ -pe *mpi 6 module load OpenFOAM/in-box cp -r /apps/OpenFOAM/OpenFOAM-in-Box/OpenFOAM-in-Box-16.10/OpenFOAM-3.0.x/tutorials/incompressible/simpleFoam/motorBike . cd motorBike ./Allclean ./Allrun