Learning OpenFOAM 14 – Step-by-Step CFD Guides
by Giux 36 articles last on November 1, 2026 0 comments
A path for learning OpenFOAM 14 (Foundation / CFD Direct) from scratch, one case at a time. Each guide builds a complete, reproducible case, solves it and checks the result with numbers: where an analytical solution exists, the comparison is quantitative, not just visual.
First steps: the six introductory cases
The first block uses a single physical problem, laminar flow between two parallel plates, which has the exact Poiseuille solution. Keeping the physics fixed makes it possible to change one thing at a time and see its effect: the mesh, the mesh generator, Python automation, parallel runs, boundary conditions.
- Case 01 – laminar flow between parallel plates, validated against Poiseuille
- Case 02 – mesh convergence study
- Case 03 – importing a Gmsh mesh with gmshToFoam
- Case 04 – parametric channel with the Gmsh Python API
- Case 05 – parallel runs with MPI
- Case 06 – sensitivity to the inlet boundary condition
The tools are OpenFOAM 14 with the incompressibleFluid solver via foamRun, blockMesh and Gmsh for meshing, ParaView 5.13.2 in client-server mode for visualization, Python 3 for parametric generation and OpenMPI for parallel runs.
These are the first six introductory guides.
Building a case, file by file
The second stage of the path changes the question: no longer how to run a ready-made case, but why it contains those files and how to write them yourself. It is an eight-part series, one layer of the case at a time.
- Part 1 – case anatomy and dictionary language
- Part 2 – building a mesh with blockMeshDict
- Part 3 – fields, initial conditions and boundary conditions
- Part 4 – controlDict and simulation control
- Part 5 – fvSchemes, from equations to discretisation
- Part 6 – fvSolution, linear solvers and solution algorithms
- Part 7 – physical properties and models
- Part 8 – reading and creating cases independently
Read in order, the eight parts lead from the structure of a case to reading an unfamiliar one and building a new one independently: fields and boundary conditions, execution control, discretisation schemes, linear solvers and algorithms, physical properties and models.
Working on a Linux server from Windows
The first operating guide is for anyone working on a Linux server from a Windows PC and covers the whole workflow: editing dictionaries in Notepad++, SFTP transfers with FileZilla, running over SSH from PowerShell with tmux, inspecting logs with klogg and visualizing results with ParaView connected to pvserver through an SSH tunnel. The PDF is included for download.
Advanced OpenFOAM and CFD course
The second guide begins an advanced course in OpenFOAM and computational fluid dynamics, aimed at those who use the software on real cases: each guide tackles one topic with reproducible cases, complete scripts, criteria for verifying the results and deep-dive boxes with an engineering slant.
The complete path comprises 20 guides organised in five modules, from managing a Linux server to an integrated CFD project. The operating reference is OpenFOAM 14 on Linux, with Windows for preparation, remote access and analysis with ParaView. The path is complete: all guides are published, in Italian and in English. Any further deep dives will be added to the individual guides.
Module 01 — Environment and reliability
Guides 01–04 · From remote access to the quality of results. Set up the working environment, follow the runs, extract measurements and judge numerical reliability.
- Guide 1 — OpenFOAM on a Linux server, working from Windows: SSH, FileZilla, PowerShell, logs and ParaView client/server. Contents: FileZilla/SFTP, Notepad++, PowerShell/SSH, essential Linux commands, tmux and ParaView through pvserver. Expected outcome: A repeatable remote workflow: files, runs, logs and visualization.
- Guide 2 — OpenFOAM: monitoring, troubleshooting and convergence assessment. Contents: checkMesh, residuals, Courant, probes, function objects, log inspection and mass balances. Expected outcome: Tell a completed run from a credible solution.
- Guide 3 — ParaView for OpenFOAM: quantitative analysis and scientific post-processing. Contents: Slice, Clip, Plot Over Line, Integrate Variables, streamlines, CSV and .pvsm states. Expected outcome: Measure velocity profiles, flow rates, wakes and pressure drops.
- Guide 4 — OpenFOAM: verification, validation and mesh independence. Contents: Grid comparison, Richardson/GCI estimate, time-step sensitivity and comparison with known solutions. Expected outcome: Document the numerical error and the limits of the simulation.
Module 02 — Building and managing cases
Guides 05–08 · Preparing replicable simulations. Manage cases, meshes, boundary conditions and time-dependent phenomena.
- Guide 5 — OpenFOAM: parameter sweeps, automation and parallel computing. Contents: Bash scripts, Allrun, independent variants, CSV processing, decomposition and parallel computing. Expected outcome: Run series of simulations without overwriting results.
- Guide 6 — OpenFOAM: mesh generation and quality checks with blockMesh and snappyHexMesh. Contents: blockMesh, snappyHexMesh, STL geometries, regions and quality indicators with checkMesh. Expected outcome: Produce and verify a grid suited to the physical problem.
- Guide 7 — OpenFOAM: boundary conditions and physical models in a complete case. Contents: Setting up U and p, imposed velocity and flow rate, viscosity and OpenFOAM 14 dictionaries. Expected outcome: Set up a case correctly with physical properties and constraints.
- Guide 8 — OpenFOAM: transient simulations, time step, Courant number and ParaView animations. Contents: deltaT, Courant number, PIMPLE, probes, time comparisons and ParaView animations. Expected outcome: Obtain and analyse time histories of CFD fields.
Module 03 — Turbulence, heat and mass
Guides 09–12 · Extending the physical models. Handle heat and mass transport processes alongside momentum.
- Guide 9 — OpenFOAM: turbulence, k-ε and k-ω SST RANS models and near-wall treatment. Contents: k-ε / k-ω SST comparison, wall functions, y+, recirculation and model sensitivity. Expected outcome: Justify a turbulence choice and interpret its limitations.
- Guide 10 — OpenFOAM: heat transfer, natural convection and the Nusselt number. Contents: Buoyancy, thermophysical properties, temperature, p_rgh, wallHeatFlux and Nusselt. Expected outcome: Quantify heat fluxes and energy balances.
- Guide 11 — OpenFOAM: conjugate heat transfer (CHT) between fluid and solids. Contents: Fluid–solid regions, foamMultiRun, coupledTemperature, conductivity and heater. Expected outcome: Analyse heat exchange across coupled interfaces.
- Guide 12 — OpenFOAM: species transport, diffusion and mixing. Contents: Advection–diffusion of a passive tracer, diffusion coefficient and concentration profiles. Expected outcome: Assess transport and mixing quality in single phase.
Module 04 — Multiphase and moving systems
Guides 13–16 · Tackling complex devices and phenomena. Introduce interfaces between fluids, porous media, rotating parts and deformable domains.
- Guide 13 — OpenFOAM: multiphase flows and VOF interfaces, water and oil. Contents: Volume fractions, interfacial tension, damBreak, water–oil and phase conservation. Expected outcome: Visualize and measure the evolution of interfaces.
- Guide 14 — OpenFOAM: porous media, Darcy–Forchheimer and pressure loss. Contents: Darcy–Forchheimer resistance, cellZone, fvModels, permeability and regression of the ΔP–U curve. Expected outcome: Characterise a porous medium hydraulically.
- Guide 15 — OpenFOAM: rotating machinery, MRF and fans. Contents: MRF zones, mixers, fanPressureJump, flow rate and characteristic curves. Expected outcome: Compare rotation approximations and fan response.
- Guide 16 — OpenFOAM: dynamic meshes and moving walls. Contents: movingCone, wall motion, mesh motion/remapping, time sensitivity; introduction to peristaltic pumps. Expected outcome: Prepare analyses of moving domains and animations.
Module 05 — Advanced transport and final project
Guides 17–20 · Integrating simulation, computation and reporting. Connect complex models to numerical checks, campaigns and an integrated CFD project.
- Guide 17 — OpenFOAM: dispersed particles, deposition and wall interaction. Contents: Lagrangian/MPPIC clouds, drag, rebound, stick, escape and particle balances. Expected outcome: Assess particle transport, rebound and capture.
- Guide 18 — OpenFOAM: chemical reactions and coupled species transport. Contents: Species, energy, Arrhenius kinetics and Damköhler; multicomponentFluid example on a counterflow flame. Expected outcome: Interpret the interaction between kinetics, flow and energy.
- Guide 19 — OpenFOAM: advanced numerical methods, convergence and performance. Contents: Convection schemes, relaxation, linear solvers, MPI benchmarks and speedup. Expected outcome: Compare stability, accuracy and computational cost.
- Guide 20 — OpenFOAM: CFD capstone project of a porous-bed reactor. Contents: Geometry, parameter campaign, ΔP, mesh verification, balances and a separate analytic PFR model. Expected outcome: Produce a complete, traceable scientific CFD report.
Deep dives
Deep-dive articles linked to the guides: they start from a topic covered in a guide and develop it with the scientific literature, the OpenFOAM 14 source, numerical checks and a dedicated video.
- Guide 11 deep dive — OpenFOAM: conjugate heat transfer, interface and stability. Contents: the coupledTemperature condition line by line, the foamMultiRun loop, stability of partitioned methods (Giles, Verstraete and Scholl, Errera, CHAMP), monolithic versus partitioned, an executable 1D model, square-duct reference values, frozen flow. Expected outcome: Verify that the result of a CHT case does not depend on the coupling between regions.
- Guide 15 deep dive — OpenFOAM: MRF and the frozen rotor, comparison methods. Contents: OpenFOAM 14 MRF equations, the frozen-rotor limitation, Luo, Issa and Gosman (1994), Brucato et al. (1998), inner–outer, sliding grid, snapshot, mixing plane, harmonic balance, RANS and LES. Expected outcome: Choose and verify the impeller model suited to the design question.
Featured articles 21
- Oct 16, 2026 OpenFOAM: monitoring, troubleshooting and convergence assessment An operating guide to checking an OpenFOAM 14 run from launch to result assessment: reading the log, residuals and continuity, function objects for residuals…
- Oct 16, 2026 ParaView for OpenFOAM: quantitative analysis and scientific post-processing Using ParaView 5.13 with OpenFOAM 14 to measure, not just to visualise: profiles with Plot Over Line, section averages and flow rates with Integrate…
- Oct 16, 2026 OpenFOAM: verification, validation and mesh independence A repeatable protocol to decide whether an OpenFOAM 14 result is trustworthy: quantity of interest, a family of three meshes, iterative convergence and balances,…
- Oct 17, 2026 OpenFOAM: parameter sweeps, automation and parallel computing From a single case to a documented, repeatable CFD campaign with OpenFOAM 14: four cases from the cylinder tutorial, Bash scripts that never overwrite,…
- Oct 17, 2026 OpenFOAM: mesh generation and quality checks with blockMesh and snappyHexMesh From CAD geometry to a mesh in OpenFOAM 14: a 3D channel with blockMesh, an STL sphere with surfaceCheck and snappyHexMesh, local refinement, wall…
- Oct 17, 2026 OpenFOAM: boundary conditions and physical models in a complete case From mesh to physical problem in OpenFOAM 14: patches and boundary conditions, 0/U and 0/p, physicalProperties and momentumTransport, a complete rectangular duct in three…
- Oct 18, 2026 OpenFOAM: transient simulations, time step, Courant number and ParaView animations Transient simulations in OpenFOAM 14 on the cavity tutorial: physical versus computing time, controlDict, Courant number, time schemes and PIMPLE, probes, comparison of two…
- Oct 18, 2026 OpenFOAM: turbulence, k-ε and k-ω SST RANS models and near-wall treatment Turbulence in OpenFOAM 14 on the pitzDailySteady tutorial: a controlled k-ε versus k-ω SST comparison, consistent inlet conditions, wall functions and y⁺, reattachment from…
- Oct 18, 2026 OpenFOAM: heat transfer, natural convection and the Nusselt number Heat transfer and natural convection in OpenFOAM 14 on the buoyantCavity tutorial: energy equation, perfect gas and p_rgh, thermal wall conditions, heat flux with…
- Oct 18, 2026 OpenFOAM: conjugate heat transfer (CHT) between fluid and solids Conjugate heat transfer in OpenFOAM 14 on the heatedDuct tutorial: three coupled regions (water, metal and heater), foamMultiRun, coupledTemperature, volumetric source, energy storage and…
- Oct 18, 2026 OpenFOAM: species transport, diffusion and mixing Passive tracer transport in OpenFOAM 14 on the pitzDailyScalarTransport tutorial: advection, diffusion, Péclet number, numerical diffusion, scalarTransport and the functions solver, a four-case campaign,…
- Oct 19, 2026 OpenFOAM: multiphase flows and VOF interfaces, water and oil The VOF method in OpenFOAM 14 on the damBreakLaminar tutorial: collapse of a water column in air and water–oil redistribution in a closed tank,…
- Oct 19, 2026 OpenFOAM: porous media, Darcy–Forchheimer and pressure loss Porous media in OpenFOAM 14 on the porousBlockage tutorial: bypassable porous obstacle and full-section slab, cellZone, porosityForce and the Darcy–Forchheimer law, kinematic pressure and…
- Oct 19, 2026 OpenFOAM: rotating machinery, MRF and fans Rotating machinery in OpenFOAM 14 with the mixerVessel2DMRF and TJunctionFan tutorials: MRF region, rpm and omega units, MRFnoSlip, the fan as a fanPressureJump pressure…
- Oct 25, 2026 OpenFOAM: MRF and the frozen rotor, comparison methods Guide 15 deep dive: what “frozen rotor” means in the OpenFOAM 14 MRF method, from Luo, Issa and Gosman (1994) to Brucato et al.…
- Oct 25, 2026 OpenFOAM: conjugate heat transfer, interface and stability Guide 11 deep dive: the OpenFOAM 14 coupledTemperature condition line by line, the foamMultiRun loop, the stability theory of partitioned methods (Giles, Verstraete and…
- Oct 25, 2026 OpenFOAM: dynamic meshes and moving walls Dynamic meshes and moving walls in OpenFOAM 14 with the movingCone tutorial: ALE formulation and relative flux, square-wave pointMotionUx, velocityComponentLaplacian with directional diffusivity, meshToMesh…
- Oct 25, 2026 OpenFOAM: dispersed particles, deposition and wall interaction Dispersed particles in OpenFOAM 14 with the injectionChannel tutorial: MP-PIC Lagrangian cloud coupled to the air, injection and diameter distribution, Wen–Yu drag, rebound, stick…
- Oct 31, 2026 OpenFOAM: chemical reactions and coupled species transport Chemical reactions coupled with transport in OpenFOAM 14 with the counterFlowFlame2D tutorial: methane/air diffusion flame solved by multicomponentFluid, species and energy equations, the Arrhenius…
- Nov 1, 2026 OpenFOAM: advanced numerical methods, convergence and performance Numerical methods and performance in OpenFOAM 14 with the pitzDailySteady tutorial: bounded, linearUpwind, upwind and limitedLinearV convection schemes, solvers, tolerances and residualControl, SIMPLEC and…
- Nov 1, 2026 OpenFOAM: CFD capstone project of a porous-bed reactor CFD capstone project with OpenFOAM 14: a channel reactor with a homogenised porous insert, porosityForce and Darcy–Forchheimer, a 12-case campaign, pressure and flow-rate measurements…
Software used
- OpenFOAM 14 OpenFOAM Foundation: the CFD code used throughout the path, with the incompressibleFluid solver via foamRun.
- Gmsh Mesh generator used from Case 03, also through its Python API in Case 04.
- ParaView Result visualization, version 5.13.2 in client-server mode with pvserver.
Documents and handouts
- OpenFOAM v14 User Guide (CFD Direct) The official reference manual for OpenFOAM 14.
Project log 36
- Sep 21, 2026 OpenFOAM 14 Case 01: Laminar Flow Between Parallel Plates, Validated Against Poiseuille First case of the OpenFOAM 14 path: a laminar parallel-plate channel built from scratch with blockMesh, solved with foamRun and validated against the Poiseuille…
- Sep 22, 2026 OpenFOAM 14 Case 02: Mesh Convergence Study on a Laminar Channel The same laminar channel on three meshes (2,000, 8,000, 32,000 cells): the error against Poiseuille scales with order about 2. How to set up…
- Sep 23, 2026 OpenFOAM 14 Case 03: Importing a Gmsh Mesh with gmshToFoam The laminar channel rebuilt with a structured Gmsh mesh imported through gmshToFoam: patches, changeDictionary and a comparison with blockMesh giving identical results.
- Sep 25, 2026 OpenFOAM 14 Case 04: Parametric Channel Mesh with the Gmsh Python API A Python script using the Gmsh API builds the channel from command-line parameters: same logic, different geometries and meshes, validated in OpenFOAM 14 against…
- Sep 26, 2026 OpenFOAM 14 Case 05: Parallel Runs with MPI, decomposePar and reconstructPar The same case in serial and with four MPI processes: SCOTCH decomposition, mpirun, reconstructPar, a 3.5× speed-up and numerical equivalence checked point by point.
- Sep 27, 2026 OpenFOAM 14 Case 06: Sensitivity to the Inlet Boundary Condition Three inlet velocities, same mesh and solver: maximum velocity and pressure gradient scale as Poiseuille predicts. How to isolate the effect of a boundary…
- Sep 29, 2026 OpenFOAM 14 Part 1: Case Anatomy and Dictionary Language First part of the OpenFOAM 14 case-construction series: system, constant and time directories, the FoamFile header, dictionary syntax, dimensions and units, field files, macros…
- Sep 30, 2026 OpenFOAM 14 Part 2: Building a Mesh with blockMeshDict Second part of the OpenFOAM 14 series: a 3D duct from eight vertices, the hex block, cell counts, simple and symmetric grading, boundary patches,…
- Oct 16, 2026 OpenFOAM 14 Part 3: Fields, Initial Conditions and Boundary Conditions How to write and reason about the OpenFOAM 14 field files 0/U and 0/p: internalField and boundaryField, field classes and named dimensions, matching mesh…
- Oct 16, 2026 OpenFOAM 14 Part 4: controlDict and Simulation Control The OpenFOAM 14 system/controlDict explained entry by entry: solver module for foamRun, simulated time, start and stop rules, write policies, purgeWrite, restarts, adaptive time…
- Oct 16, 2026 OpenFOAM 14 Part 5: fvSchemes, from Equations to Discretisation How to read and modify system/fvSchemes in OpenFOAM 14: from equation terms to the six scheme families (ddt, grad, div, laplacian, interpolation, snGrad), defaults…
- Oct 16, 2026 OpenFOAM 14 Part 6: fvSolution, Linear Solvers and Solution Algorithms What happens after discretisation in OpenFOAM 14: the A x = b system, the solvers dictionary of system/fvSolution, tolerance, relTol and maxIter, GAMG, smoothers…
- Oct 16, 2026 OpenFOAM 14 Part 7: Physical Properties and Models From kinematic viscosity in physicalProperties to laminar, RAS and LES models in momentumTransport: what changes in a case when the physics changes, which fields…
- Oct 16, 2026 OpenFOAM 14 Part 8: Reading and Creating Cases Independently The final unit of the course: the official v14 documentation, foamDictionary, foamSearch, foamInfo, foamToC and foamFind, systematic error diagnosis and a capstone case built…
- Oct 16, 2026 OpenFOAM on a Linux server, working from Windows: SSH, FileZilla, PowerShell, logs and ParaView client/server An operating guide to using OpenFOAM 14 installed on a Linux server while working from a Windows PC: preparing cases in Notepad++, SFTP transfers…
- Oct 16, 2026 OpenFOAM: monitoring, troubleshooting and convergence assessment An operating guide to checking an OpenFOAM 14 run from launch to result assessment: reading the log, residuals and continuity, function objects for residuals…
- Oct 16, 2026 ParaView for OpenFOAM: quantitative analysis and scientific post-processing Using ParaView 5.13 with OpenFOAM 14 to measure, not just to visualise: profiles with Plot Over Line, section averages and flow rates with Integrate…
- Oct 16, 2026 OpenFOAM: verification, validation and mesh independence A repeatable protocol to decide whether an OpenFOAM 14 result is trustworthy: quantity of interest, a family of three meshes, iterative convergence and balances,…
- Oct 17, 2026 OpenFOAM: parameter sweeps, automation and parallel computing From a single case to a documented, repeatable CFD campaign with OpenFOAM 14: four cases from the cylinder tutorial, Bash scripts that never overwrite,…
- Oct 17, 2026 OpenFOAM: mesh generation and quality checks with blockMesh and snappyHexMesh From CAD geometry to a mesh in OpenFOAM 14: a 3D channel with blockMesh, an STL sphere with surfaceCheck and snappyHexMesh, local refinement, wall…
- Oct 17, 2026 OpenFOAM: boundary conditions and physical models in a complete case From mesh to physical problem in OpenFOAM 14: patches and boundary conditions, 0/U and 0/p, physicalProperties and momentumTransport, a complete rectangular duct in three…
- Oct 18, 2026 OpenFOAM: transient simulations, time step, Courant number and ParaView animations Transient simulations in OpenFOAM 14 on the cavity tutorial: physical versus computing time, controlDict, Courant number, time schemes and PIMPLE, probes, comparison of two…
- Oct 18, 2026 OpenFOAM: turbulence, k-ε and k-ω SST RANS models and near-wall treatment Turbulence in OpenFOAM 14 on the pitzDailySteady tutorial: a controlled k-ε versus k-ω SST comparison, consistent inlet conditions, wall functions and y⁺, reattachment from…
- Oct 18, 2026 OpenFOAM: heat transfer, natural convection and the Nusselt number Heat transfer and natural convection in OpenFOAM 14 on the buoyantCavity tutorial: energy equation, perfect gas and p_rgh, thermal wall conditions, heat flux with…
- Oct 18, 2026 OpenFOAM: conjugate heat transfer (CHT) between fluid and solids Conjugate heat transfer in OpenFOAM 14 on the heatedDuct tutorial: three coupled regions (water, metal and heater), foamMultiRun, coupledTemperature, volumetric source, energy storage and…
- Oct 18, 2026 OpenFOAM: species transport, diffusion and mixing Passive tracer transport in OpenFOAM 14 on the pitzDailyScalarTransport tutorial: advection, diffusion, Péclet number, numerical diffusion, scalarTransport and the functions solver, a four-case campaign,…
- Oct 19, 2026 OpenFOAM: multiphase flows and VOF interfaces, water and oil The VOF method in OpenFOAM 14 on the damBreakLaminar tutorial: collapse of a water column in air and water–oil redistribution in a closed tank,…
- Oct 19, 2026 OpenFOAM: porous media, Darcy–Forchheimer and pressure loss Porous media in OpenFOAM 14 on the porousBlockage tutorial: bypassable porous obstacle and full-section slab, cellZone, porosityForce and the Darcy–Forchheimer law, kinematic pressure and…
- Oct 19, 2026 OpenFOAM: rotating machinery, MRF and fans Rotating machinery in OpenFOAM 14 with the mixerVessel2DMRF and TJunctionFan tutorials: MRF region, rpm and omega units, MRFnoSlip, the fan as a fanPressureJump pressure…
- Oct 25, 2026 OpenFOAM: MRF and the frozen rotor, comparison methods Guide 15 deep dive: what “frozen rotor” means in the OpenFOAM 14 MRF method, from Luo, Issa and Gosman (1994) to Brucato et al.…
- Oct 25, 2026 OpenFOAM: conjugate heat transfer, interface and stability Guide 11 deep dive: the OpenFOAM 14 coupledTemperature condition line by line, the foamMultiRun loop, the stability theory of partitioned methods (Giles, Verstraete and…
- Oct 25, 2026 OpenFOAM: dynamic meshes and moving walls Dynamic meshes and moving walls in OpenFOAM 14 with the movingCone tutorial: ALE formulation and relative flux, square-wave pointMotionUx, velocityComponentLaplacian with directional diffusivity, meshToMesh…
- Oct 25, 2026 OpenFOAM: dispersed particles, deposition and wall interaction Dispersed particles in OpenFOAM 14 with the injectionChannel tutorial: MP-PIC Lagrangian cloud coupled to the air, injection and diameter distribution, Wen–Yu drag, rebound, stick…
- Oct 31, 2026 OpenFOAM: chemical reactions and coupled species transport Chemical reactions coupled with transport in OpenFOAM 14 with the counterFlowFlame2D tutorial: methane/air diffusion flame solved by multicomponentFluid, species and energy equations, the Arrhenius…
- Nov 1, 2026 OpenFOAM: advanced numerical methods, convergence and performance Numerical methods and performance in OpenFOAM 14 with the pitzDailySteady tutorial: bounded, linearUpwind, upwind and limitedLinearV convection schemes, solvers, tolerances and residualControl, SIMPLEC and…
- Nov 1, 2026 OpenFOAM: CFD capstone project of a porous-bed reactor CFD capstone project with OpenFOAM 14: a channel reactor with a homogenised porous insert, porosityForce and Darcy–Forchheimer, a 12-case campaign, pressure and flow-rate measurements…