Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

OpenFOAM

OpenFOAM

(Open Field Operation and Manipulation) is a free, open source CFD software developed primarily by OpenCFD Ltd since 2004. OpenFOAM is a C++ toolbox that can be used to deploy Finite Volume Method (FVM)-based solvers for general continuum mechanics problems, mostly for fluid flow and heat transfer.

OpenFOAM has a wide range of functions, such as:

Directories (OpenFOAM Folder Structure)

Basic Directory

The basic directory structure for an OpenFOAM case that contains the minimum set of files required to run an application is shown in Fig. 1:

case structure openfoam folder directories

Figure 1:OpenFOAM case directory structure.

Constant Directory

The constant directory contains all values that remain constant during the calculation. These are files that specify the physical properties (e.g., transport properties and turbulence models). The subdirectory polyMesh contains all information concerning the mesh.

case structure openfoam files constant

Figure 2:Example of the constant directory contents.

System Directory

In this directory, it is possible to modify the parameters associated with the solution procedure. It contains at least the following files:

case structure openfoam files parameters

Figure 3:Example of the system directory contents.

Time Directories

These directories contain the data files for every field of the simulation.

case structure openfoam files parameters time

Figure 4:Example of the zero time step directory contents.

Documentation & Further Reading

The list below provides further sources where more information regarding OpenFOAM can be found, including tutorials and lecture notes.