How to install OpenFOAM V8 (2020) on Windows

Written by cfd.ninja

OpenFOAM is built for Linux, and that single fact shapes every installation route. On Ubuntu or Debian the packaged version installs from the official repository in a few commands and is the path with fewest surprises.

On Windows the usual route is WSL, the Windows Subsystem for Linux, which runs a real Ubuntu alongside Windows without a virtual machine and gives you the same commands as a native install. A virtual machine or a dual boot remain valid alternatives if you prefer full separation.

Whatever the route, the installation is not finished until the environment is loaded. OpenFOAM needs its variables sourced in each session, which is why the install instructions end by adding a line to your shell profile. Skipping it is the reason most first time users find that the commands are not recognised.

Related Articles

OpenFOAM Tutorial | Airfoil 2D

OpenFOAM Tutorial | Airfoil 2D

In this tutorial, you will learn how to simulate an Airfoil 2D using OpenFOAM. In this case, we will use the folder that comes by default.