OpenFOAM is a computational fluid dynamics (CFD) software suite for physical and engineering simulations. The suite consists of mechanical, electronics, and embedded software simulation applications.

To find out more, visit the OpenFOAM website at:

Running OpenFOAM

Module Version
OpenFOAM 4.1-intel-2017a
OpenFOAM-Extend 4.0-intel-2017a

To see available versions when logged into Fram issue command

module spider openfoam

To use OpenFOAM type

module load OpenFOAM/<version>

specifying one of the available versions.

Sample OpenFOAM Job Script


#SBATCH --job-name=damBreak
#SBATCH --nodes=4
#SBATCH --ntasks-per-node=32
#SBATCH --time=01:00:00
#SBATCH --account=nnNNNNk

## Recommended safety settings:
set -o errexit # Make bash exit on any error
set -o nounset # Treat unset variables as errors

module restore system
module load OpenFOAM/1712-foss-2018a
source $FOAM_BASH


cp -r $case/* $SCRATCH

mpirun interFoam -parallel


cleanup "cp -r $SCRATCH/constant $SCRATCH/system $SCRATCH/[0-9]* $SLURM_SUBMIT_DIR/$SLURM_JOB_ID"

License Information

OpenFOAM is available under the GNU General Public License (GPL). For more information, visit

It is the user's responsibility to make sure they adhere to the license agreements.

results matching ""

    No results matching ""