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
Tutorials
Full Tutorials
Tutorial One: Basic Case Setup
Solver: icoFoam
Geometry: 2-dimensional
Tutorial: elbow
Tutorial Two: Built in Mesh
Solver: fluid
Geometry: 2-dimensional
Tutorial: forwardStep
Tutorial Three: Patching Fields
Solver: fluid
Geometry: 1-dimensional
Tutorial: shockTube
Tutorial Four: Discretization – Part 1
Solver: functions
Geometry: 1-dimensional
Tutorial: shockTube
Tutorial Five: Discretization – Part 2
Solver: functions
Geometry: 2-dimensional
Tutorial: circle
Tutorial Six: Turbulence, Steady state
Solver: incompressibleFluid
Geometry: 2-dimensional
Tutorial: pitzDaily
Tutorial Seven: Turbulence, Transient
Solver: incompressibleFluid
Geometry: 2-dimensional
Tutorial: pitzDaily
Tutorial Eight: Multiphase - VoF
Solver: incompressibleVoF
Geometry: 2-dimensional
Tutorial: damBreak
Tutorial Nine: Parallel Processing
Solver: compressibleVoF
Geometry: 3-dimensional
Tutorial: depthChare3D
Tutorial Ten: Residence Time Distribution
Solver: incompressibleFluid, functions
Geometry: 3-dimensional
Tutorial: TJunction
Tutorial Eleven: Reaction
Solver: multicomponentFluid
Geometry: 3-dimensional
Tutorial: reactingElbow
Tutorial Twelve: snappyHexMesh – Single Region
Solver: snappyHexMesh, functions
Geometry: 3-dimensional
Tutorial: flange
Tutorial Thirteen: snappyHexMesh – Multi Region
Solver: snappyHexMesh, fluid, solid
Geometry: 3-dimensional
Tutorial: snappyMultiRegionHeater
Tutorial Fourteen: Sampling
Solver: fluid
Geometry: 3-dimensional
Tutorial: shockTube
Appendix
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.