Black FridayUpgrade your career this Black Friday. Get up to ₹60,000 Scholarship on IIT programsUp to ₹60K Black Friday Scholarship52 seats leftOffer ends Fri, 27 Nov, 11:59 pm IST.

Black Friday Scholarship – IIT Jammu & IIT Roorkee

The best Black Friday deal isn't a gadget. It's your next career move.

Get up to ₹60,000 Black Friday Scholarship on our PG programs with IIT Jammu and iHUB DivyaSampark, IIT Roorkee. IIT certification, 12 live sessions with IIT faculty and 100% placement assistance.

Only 52 seats left. Offer ends Fri, 27 Nov, 11:59 pm IST

3,905 engineers placed since 2019 · 1,276 hiring companies

By submitting you agree to our Terms and Privacy Policy.

Your free demo class is requested

Browse courses
Recorded workshop · CFD

Introduction to OpenFOAM Development CFD

Held 1 Feb 20211 video

Notes written by Skill-Lync from the recording · Updated 17 Nov 2026

What this workshop covers

This introduction to OpenFOAM for CFD explains what the open-source C++ toolbox is, how a case is laid out, and which version and solver to choose. In this Skill-Lync session, a practising CFD engineer opens a real case in a Linux terminal and walks through the 0, constant and system folders: inlet, outlet and wall boundary conditions, a Newtonian viscosity, a k-epsilon turbulence model and the controlDict that sets time steps.

He then untangles the two main distributions, OpenFOAM.com from ESI-OpenCFD and OpenFOAM.org from the OpenFOAM Foundation, plus the foam-extend fork, explains how to install it on Windows through WSL 2, MinGW or Docker, and surveys the solver families from potentialFoam and simpleFoam to multiphase, spray and conjugate heat transfer solvers. The last part opens the simpleFoam source code in Visual Studio Code to show how the momentum predictor and pressure correction of the SIMPLE algorithm map to a few lines of C++.

It suits students who have used a GUI solver such as ANSYS Fluent and want to know what OpenFOAM involves before committing to it. It is a 28-minute overview, not a hands-on tutorial: there is no meshing exercise and no full simulation set-up. Version news (v2006 and version 8 described as just released) dates the talk to mid-2020.

Chapters

  1. 0:00 What OpenFOAM is: a C++ toolbox of solvers and utilities
  2. 1:32 Case folders: 0, constant and system
  3. 2:34 Walkthrough: boundary conditions, viscosity, controlDict
  4. 4:50 OpenFOAM.com vs OpenFOAM.org, versions and foam-extend
  5. 7:37 Installing it: Linux, WSL 2, MinGW or Docker
  6. 10:05 Solver families and the scalar transport equation
  7. 12:36 Strengths: GPL licence, zero cost, custom solvers
  8. 14:58 Adjoint shape optimisation, aeroacoustics and preCICE
  9. 22:41 simpleFoam source code walk-through in VS Code

Key points from the session

  • Every OpenFOAM case has three folders: 0 holds the boundary conditions for each field (for velocity, a fixed inlet value, zero gradient at the outlet and no-slip on walls), constant holds physical properties such as transportProperties and turbulenceProperties plus the polyMesh, and system holds the run controls.
  • The controlDict in system is the main file for a run: start and end time, the time step deltaT and the solver to use. With runTimeModifiable switched on, these values can be changed while the simulation is running.
  • ESI-OpenCFD versions are named by release date, so v1806 means June 2018, while Foundation versions are numbered 4, 5, 6 and so on. The instructor's advice is to read each version's release notes for the solver you need, for example multiphase, and otherwise stick with the one you already know.
  • On Windows, the instructor recommends the Windows Subsystem for Linux (WSL 2) over a dual boot or a virtual machine, which can slow down machines with little RAM. He builds OpenFOAM from source; MinGW binaries and Docker containers are the alternatives.
  • Pick the solver by flow type: simpleFoam or rhoSimpleFoam for steady incompressible or compressible flow, pisoFoam, pimpleFoam or rhoPimpleFoam for transient flow, potentialFoam to initialise a solution, and buoyant or conjugate heat transfer solvers for thermal problems.
  • In the simpleFoam run shown, setting five non-orthogonal correctors makes the GAMG pressure solver run five times per iteration, while velocity (smoothSolver), k and epsilon are solved once. Steady SIMPLE runs need under-relaxation of pressure and velocity; transient PISO or PIMPLE runs use much smaller time steps.
  • Two newer capabilities he highlights are the adjoint method, which turns flow-field gradients into surface sensitivities that suggest how to reshape a geometry such as a car body, and the preCICE coupling library, which links OpenFOAM to structural solvers such as CalculiX for fluid-structure interaction.

What is the difference between OpenFOAM.com and OpenFOAM.org?

They are two separate lines of OpenFOAM. OpenFOAM.com is maintained by the company ESI-OpenCFD and uses date-based names such as v2006 for June 2020. OpenFOAM.org is the OpenFOAM Foundation version with numbered releases such as version 8. They have their own release notes and solver features, so you compare them for your problem.

Can I run OpenFOAM on Windows?

Yes. OpenFOAM is built for Unix-like systems, but the instructor runs a full Linux distribution on Windows through the Windows Subsystem for Linux and recommends WSL 2 on recent Windows versions. He prefers it to dual boot or a virtual machine. MinGW binaries and Docker containers are other ways to get it working.

Why learn OpenFOAM instead of only a commercial CFD tool?

It costs nothing, so students can practise CFD before they graduate. Because the source code is open, you can read how each equation is discretised, which the instructor says helps in CFD interviews. You can also copy an existing solver and modify it to build a new model, which is hard in closed commercial software.

Where to go next

A 1 Feb 2021 workshop recording from Skill-Lync on CFD. For a structured course with projects on this topic, see Skill-Lync's mechanical engineering courses.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.