Formats / OpenFOAM case / Inside the file

Inside the file: OpenFOAM case

We have no example we may redistribute, so this page explains how the format is organized, from public documentation.

How an OpenFOAM case file is organized

An OpenFOAM case is a directory of text dictionaries, documented in the OpenFOAM user guide.

0/
Initial and boundary conditions, one file per field (U, p and so on).
constant/polyMesh/
The mesh as points, faces, owner, neighbour and boundary files (cells are implied by faces).
constant/
Physical properties such as transportProperties or physicalProperties.
system/
controlDict (time and output control), fvSchemes (discretization) and fvSolution (solvers).
Time directories
Results written at each output time, in the same layout as 0/.

Sources

Samples published by others are linked on the format page.

Parsers here are our own, written from published specifications and public documentation; nothing is decompiled or taken from vendor SDKs. See the method notes.