OpenFOAM® Basic Training
6th edition, April 2023
This offering is not approved or endorsed by ESI® Group, ESI-OpenCFD® or the OpenFOAM®
Foundation, the producer of the OpenFOAM® software and owner of the OpenFOAM® trademark.
Editorial board:
Bahram Haddadi
Technische Universität Wien
Christian Jordan Institute of Chemical, Environmental
& Bioscience Engineering
Michael Harasek
Compatibility:
OpenFOAM® v10
Cover picture from:
Bahram Haddadi
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.
ISBN 978-3-903337-02-2
Publisher: chemical-engineering.at
Available from: www.fluiddynamics.at
OpenFOAM® Basic Training
Preface
In this OpenFOAM® tutorial series, we have prepared fourteen case examples that are
designed to help users to learn the key utilities and features within OpenFOAM ®, including
mesh generation, multiphase modeling, turbulence modeling, parallel processing and
reaction modeling. The base tutorial examples can be imported directly from the
OpenFOAM® installation directory or downloaded from our webpage:
www.fluiddynamics.at.
The tutorials should be primarily used for OpenFOAM® v10 (Foundation version –
www.openfoam.org) but with slight differences, generally applicable to the other flavors of
OpenFOAM® such as ESI-version and foam-extend! The structure of each case example
follow the below general structure:
0. Background: an introduction about the key topics explored in the tutorial and the
relevant CFD theory
1. Pre-processing: instructions on how to set up the correct case structure for a given
problem using base case tutorials, with explanations on relevant dictionaries
2. Running simulation: instructions on running the solver and its associated
commands
3. Post-processing: examining the results in OpenFOAM®’s post-processing
application, ParaView V5.10.1
OpenFOAM® Basic Training
Table of Contents
Tutorial One: Basic Case Setup
Solver: icoFoam
Geometry: 2-dimensional
Tutorial: elbow
Tutorial Two: Built in Mesh
Solver: rhoPimpleFoam
Geometry: 2-dimensional
Tutorial: forwardStep
Tutorial Three: Patching Fields
Solver: rhoPimpleFoam
Geometry: 1-dimensional
Tutorial: shockTube
Tutorial Four: Discretization – Part 1
Solver: scalarTransportFoam
Geometry: 1-dimensional
Tutorial: shockTube
Tutorial Five: Discretization – Part 2
Solver: scalarTransportFoam
Geometry: 2-dimensional
Tutorial: circle
Tutorial Six: Turbulence, Steady state
Solver: simpleFoam
Geometry: 2-dimensional
Tutorial: pitzDaily
Tutorial Seven: Turbulence, Transient
Solver: pisoFoam
Geometry: 2-dimensional
Tutorial: pitzDaily
Tutorial Eight: Multiphase - VoF
Solver: interFoam
Geometry: 2-dimensional
Tutorial: damBreak
OpenFOAM® Basic Training
Table of Contents
Tutorial Nine: Parallel Processing
Solver: compressibleInterFoam
Geometry: 3-dimensional
Tutorial: depthCharge3D
Tutorial Ten: Residence Time Distribution
Solver: simpleFoam, scalarTransportFoam
Geometry: 3-dimensional
Tutorial: TJunction
Tutorial Eleven: Reaction
Solver: reactingFoam
Geometry: 3-dimensional
Tutorial: reactingElbow
Tutorial Twelve: snappyHexMesh – Single Region
Solver: snappyHexMesh, scalarTransportFoam
Geometry: 3-dimensional
Tutorial: flange
Tutorial Thirteen: snappyHexMesh – Multi Region
Solver: snappyHexMesh, chtMultiRegionFoam
Geometry: 3-dimensional
Tutorial: snappyMultiRegionHeater
Tutorial Fourteen: Sampling
Solver: rhoPimpleFoam
Geometry: 3-dimensional
Tutorial: shockTube
Appendix A: Important Commands in Linux
Appendix B: Running OpenFOAM®
Appendix C: Frequently Asked Questions (FAQ)
Appendix D: ParaView
OpenFOAM® Basic Training
Table of Contents