OpenFOAM 7 type access

  • Operating System:

  • Shell:

  • Editor:

  • Package Manager:

  • Programming Language:

  • Database:

OpenFOAM (Open-source Field Operation And Manipulation) is a C++ toolbox for the development of customized numerical solvers and pre-/post-processing utilities for the solution of continuum mechanics problems, including computational fluid dynamics (CFD). The main post-processing tool provided with OpenFOAM 7 is a reader module to run with ParaView 5.6.0, a visualization application.

The OpenFOAM User Guide describes how to execute OpenFOAM applications, either on a single processor or in parallel on multiple processors.

More informations can be found here.

Getting Started

Open the terminal and create the project directory in /work :

$ mkdir FOAM_RUN

Copy the tutorial examples directory in the OpenFOAM distribution, to the run directory.

Run the first example case of incompressible laminar flow in a cavity:

$ cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily .
$ cd pitzDaily
$ blockMesh
$ simpleFoam


Visualization of OpenFOAM results can be done using paraFoam at the command prompt; i.e.:

$ paraFoam

paraFoam is a script that launches ParaView, by default using the reader module supplied with OpenFOAM. Like any OpenFOAM utility, paraFoam can be executed from within the case directory or with the -case option with the case path as an argument:

$ paraFoam -case <caseDir>