Chapter 4 OpenFOAM cases

This chapter deals with the file structure and organisation of OpenFOAM cases. Normally, a user would assign a name to a case, e.g. the tutorial case of aerodynamics of a motorbike is simply named motorBike. This name becomes the name of a directory in which all the case files and sub-directories are stored.

When running a simulation, a case directory can be located anywhere on a user’s filing system. However, we recommend putting cases within a run subdirectory of the user’s filing system, i.e.$HOME/OpenFOAM/${USER}-11 as described at the beginning of chapter 2. The $FOAM_RUN environment variable is set to $HOME/OpenFOAM/${USER}-11/run by default and the user can quickly move to that directory by executing a preset alias, run, at the command line.

The tutorial cases that accompany the OpenFOAM distribution provide useful examples of the case directory structures. The tutorials are located in the $FOAM_TUTORIALS directory, reached quickly by executing the tut alias at the command line. Users can view tutorial examples at their leisure while reading this chapter.

OpenFOAM v11 User Guide - Chapter 4 OpenFOAM cases
CFD Direct