ICHEC Software
Information about software packages installed on the ICHEC systems.
OpenFOAM
Versions Installed
Stokes: 1.7.1 / 2.0.1
Stoney: 1.7.1 / 2.0.1
Description
OpenFOAM is an open source package for finite-volume based solution of problems in continuum mechanics, primarily Computational Fluid Dynamics (CFD). OpenFOAM is supplied with several standard solvers for different classes of flow problems, including multiphase flow and combustion. The object-oriented C++ implementation of OpenFOAM facilitates the development of custom flow solvers.
License
OpenFOAM is available under the terms of the GNU General Public License.
Benchmarks
N/A.
Job Submission Example
Like other jobs on ICHEC systems, OpenFOAM jobs must be submitted using a PBS script. The following is an example PBS script for running the icoFoam solver on 48 cores (4 nodes) on Stokes for a maximum walltime of 25 hours. Note that, for parallel runs, each processor must be assigned a portion of the mesh on which to operate - this can be achieved using the OpenFOAM decomposePar utility.
If you wish to run this job on the Stoney system, the following script should be modified to use 32 cores on 4 nodes, i.e. nodes=4:ppn=8 and mpiexec -n 32 accordingly.
#PBS -l nodes=4:ppn=12
#
#PBS -l walltime=25:00:00
#PBS -N myJobName
#PBS -A MyProjectName
module purge
module load gcc/4.5.1
source /ichec/packages/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc
cd $PBS_O_WORKDIR
mpiexec -n 48 icoFoam -parallel > icoFoam.log
This job can be submitted using the command
where scriptname.pbs is the filename of the sample PBS script
Additional Notes
Further information can be obtained from the OpenFOAM Website www.openfoam.com.
