Nabla Logo programmer
  Advanced Search
  
  Send us a comment/query
 
  Back to main web site
 
  OpenFOAM guides
  - User guide
  - Programmer’s guide
 
  Index
 
  Changes from OpenFOAM 2.2 to 2.3
 
  Trademarks in the guides
  ©2000-2007 Nabla Ltd.

Chapter 3
Examples of the use of OpenFOAM

In this section we shall describe several test cases supplied with the OpenFOAM distribution. The intention is to provide example cases, including those in the tutorials in 2 of the User Guide, for every standard solver. The examples are designed to introduce certain tools and features of OpenFOAM, e.g. within pre-/post-processing, numerical schemes, algorithms. They also provide a means for validation of solvers although that is not their principal function.

Each example contains a description of the problem: the geometry, initial and boundary conditions, a brief description of the equations being solved, models used, and physical properties required. The solution domain is selected which may be a portion of the original geometry, e.g. if we introduce symmetry planes. The method of meshing, usually blockMesh, is specified; of course the user can simply view the mesh since every example is distributed with the polyMesh directory containing the data files that describe the mesh.

The examples coexist with the tutorials in the tutorials subdirectory of the OpenFOAM installation. They are organised into a set of subdirectories by solver, e.g. all the icoFoam cases are stored within a subdirectory icoFoam. Before running a particular example, the user is urged to copy it into their user account. We recommend that the user stores all OpenFOAM cases in a directory we recommend that the tutorials are copied into a directory $OpenFOAM_RUN. If this directory structure has not yet been created in the user’s account, it can be created with


    mkdir -p $OpenFOAM_RUN
The tutorials can then be copied into this directory with


    cp -r $OpenFOAM_TUTORIALS/* $OpenFOAM_RUN