Logo: Leibniz Universität Hannover

OpenFOAM

Description

OpenFOAM (Open Field Operation and Manipulation) is primarily a C++ toolbox for the customisation and extension of numerical solvers for continuum mechanics problems, including computational fluid dynamics (CFD). It comes with a growing collection of pre-written solvers applicable to a wide range of problems. OpenFOAM was one of the first major scientific packages written in C++. It is produced by UK company OpenCFD Ltd. and is released open source under the GPL.

[Source: http://en.wikipedia.org/wiki/OpenFOAM]

Available on:

  • RRZN-Computeservers

Contact person

 Dr Paul Cochrane

Contents

  • General information
  • Functionality
  • Installation on the RRZN-Computeservers
  • Usage on the RRZN-Computeservers
  • Documentation and examples

General information

Functionality

Installation on the RRZN-Computeservers

Usage on the RRZN-Computeservers

In order to use this software one needs to load the relevant module.  This is done like so:

    $ module load openfoam

OpenFOAM uses many environment variables, all of which are unable to be loaded along with the module.  This means, that you must run the following extra command in order to use OpenFOAM.

    $ source $foamDotFile

In case you see the error message  "module: command not found", you need to run the following command (usually the "module" command is already available):

    $ source /usr/share/Modules/init/`basename $SHELL`

Documentation and examples

User documentation

  • User Guide (PDF)
  • Programmers Guide (PDF)

Usage within the batch system

Here is an example batch script to help get you going running your first OpenFOAM application.

   #!/bin/bash
#PBS -N openFOAM
#PBS -M ich@meine.email.adresse.de
#PBS -j oe
#PBS -l nodes=1:ppn=1
#PBS -l walltime=01:00:00
#PBS -l mem=7gb
# load the module
. $MODULESHOME/init/bash
module load openfoam
# set the OpenFOAM environment
source $foamDotFile
# change to work dir:
cd $PBS_O_WORKDIR
<OpenFOAM-application>

Parallele Nutzung

Regionales Rechenzentrum für Niedersachsen - URL: www.rrzn.uni-hannover.de/openfoam.html?&L=1
 
W. Sander, Last Change: 10.10.2012
Copyright Gottfried Wilhelm Leibniz Universität Hannover