menu

OpenFOAM Basic Training

This tutorial series provides a practical introduction to OpenFOAM®, a popular open-source software for Computational Fluid Dynamics (CFD). It includes 14 case studies designed to help users understand key OpenFOAM® features such as: mesh generation, multiphase modeling, turbulence modeling, parallel processing and reaction modeling.

Where to Find the Tutorial Cases

The base tutorials can be accessed directly from the OpenFOAM® installation directory or compiled step-by-step during the learning process.

Compatibility with OpenFOAM® Versions

These tutorials are primarily designed for OpenFOAM® v12 (Foundation version) but can also be adapted for ESI-OpenFOAM® (maintained by OpenCFD) and Foam-extend (a community-driven version with extra features).

Tutorial Structure

Each case study follows a clear, step-by-step format:
0. Background: Introduction to key CFD concepts and topics covered in the case
1. Pre-processing: Setting up the case, including directories, files, and adoptions
2. Running the simulation: Executing the solver - running and monitoring the progress
3. Post-processing: Analyzing results using OpenFOAM®'s built-in tools and ParaView

Introduction

keyboard_arrow_down

Editor:

  • Bahram Haddadi

Compatibility:

  • OpenFOAM® v12

Tutorials

keyboard_arrow_down

Full Tutorials

Tutorial One: Basic Case Setup

Solver: icoFoam

Geometry: 2-dimensional

Tutorial: elbow

1

Tutorial Two: Built in Mesh

Solver: fluid

Geometry: 2-dimensional

Tutorial: forwardStep

2

Tutorial Three: Patching Fields

Solver: fluid

Geometry: 1-dimensional

Tutorial: shockTube

3

Tutorial Four: Discretization – Part 1

Solver: functions

Geometry: 1-dimensional

Tutorial: shockTube

4

Tutorial Five: Discretization – Part 2

Solver: functions

Geometry: 2-dimensional

Tutorial: circle

5

Tutorial Six: Turbulence, Steady state

Solver: incompressibleFluid

Geometry: 2-dimensional

Tutorial: pitzDaily

6

Tutorial Seven: Turbulence, Transient

Solver: incompressibleFluid

Geometry: 2-dimensional

Tutorial: pitzDaily

7

Tutorial Eight: Multiphase - VoF

Solver: incompressibleVoF

Geometry: 2-dimensional

Tutorial: damBreak

8

Tutorial Nine: Parallel Processing

Solver: compressibleVoF

Geometry: 3-dimensional

Tutorial: depthChare3D

9

Tutorial Ten: Residence Time Distribution

Solver: incompressibleFluid, functions

Geometry: 3-dimensional

Tutorial: TJunction

10

Tutorial Eleven: Reaction

Solver: multicomponentFluid

Geometry: 3-dimensional

Tutorial: reactingElbow

11

Tutorial Twelve: snappyHexMesh – Single Region

Solver: snappyHexMesh, functions

Geometry: 3-dimensional

Tutorial: flange

12

Tutorial Thirteen: snappyHexMesh – Multi Region

Solver: snappyHexMesh, fluid, solid

Geometry: 3-dimensional

Tutorial: snappyMultiRegionHeater

13

Tutorial Fourteen: Sampling

Solver: fluid

Geometry: 3-dimensional

Tutorial: shockTube

14

Slide-set

keyboard_arrow_down

Author:

  • Bahram Haddadi

SlideSet

Appendix

keyboard_arrow_down

Appendix A: Important Commands in Linux

Compatibility: Unix (Linux, Alpha Unix …)

A1

Appendix B: Running OpenFOAM®

Compatibility: OpenFOAM v12

A2

Appendix C: Frequently Asked Questions

Compatibility: Unix (Linux, Alpha Unix …), OpenFOAM v12

A3

Appendix D: Paraview

Compatibility: ParaView 5.x

A4

Archive

keyboard_arrow_down

OpenFOAM Basic Training

Compatibility:

  • OpenFOAM® 2.3.0

OF2

OpenFOAM Basic Training

Compatibility:

  • OpenFOAM® 5
  • OpenFOAM® v1712

OF5

OpenFOAM Basic Training

Compatibility:

  • OpenFOAM® 7
  • OpenFOAM® v1906

OF7

OpenFOAM Basic Training

Compatibility:

  • OpenFOAM® 10

OF10

License:

Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)

This is a human-readable summary of the Legal Code (the full license).

Disclaimer

You are free:

  • to Share — to copy, distribute and transmit the work
  • to Remix — to adapt the work

Under the following conditions:

  • Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • Noncommercial — You may not use this work for commercial purposes.
  • Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

With the understanding that:

  • Waiver — Any of the above conditions can be waived if you get permission from the copyright holder.
  • Public Domain — Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
  • Other Rights — In no way are any of the following rights affected by the license:
  • Your fair dealing or fair use rights, or other applicable copyright exceptions and

limitations;

  • The author's moral rights;
  • Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
  • Notice — For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page.