openfoam


Introduction:

OPENFOAM is a free, open source CFD package which can
solve anything from complex fluid flows involving chemical reactions,
turbulence and heat transfer, to acoustics, solid mechanics and
electromagnetics.

OPENFOAM can run in serial mode, or it can run in parallel using a
combination of OpenMP and MPI.

Web Site:

The home page at openfoam.com:

http://www.openfoam.com/
.

Reference:

Usage:

On any ARC cluster, check the installation details
by typing "module spider openfoam".

OPENFOAM requires that the appropriate modules be loaded before it can
be used. One version of the appropriate commands for use on NewRiver is:

module purge
module load gcc/4.7.2
module load openmpi/1.6.4
module load OpenFOAM/3.0.1
    

Examples:

The following batch file demonstrates the use of OPENFOAM:

#! /bin/bash
#
#PBS -l walltime=0:05:00
#PBS -l nodes=1:ppn=1
#PBS -W group_list=newriver
#PBS -q open_q
#PBS -j oe
#
cd $PBS_O_WORKDIR
#
module purge
module load gcc/4.7.2
module load openmpi/1.6.4
module load OpenFOAM/3.0.1
#
#  Define OpenFOAM environment.
#
. $OPENFOAM_DIR/OpenFOAM-3.0.1/etc/bashrc
#
blockMesh
#
icoFoam

A complete set of files to carry out a similar process are available in
openfoam_example.tar