Wolf Dynamics - Multiphysics simulations, optimization, and data analytics

OpenFOAM in Windows Subsystem for Linux (WSL)

If you are a Windows user, and new to Linux and OpenFOAM, and if you do not want to go thru the hustle and bustle of partitioning your hard drive, backing-up your data, and installing Linux and OpenFOAM, we highly recommend use Windows Subsystem for Linux (WSL).

The Windows Subsystem for Linux (WSL) is a feature of the Windows operating system that enables you to run a Linux file system, along with Linux command-line tools and GUI apps, directly on Windows, alongside your traditional Windows desktop and apps.

WSL requires fewer resources (CPU, memory, and storage) than a full virtual machine. WSL also allows you to run Linux command-line tools and apps alongside your Windows command-line, desktop and store apps, and to access your Windows files from within Linux. This enables you to use Windows apps and Linux command-line tools on the same set of files if you wish.

This WSL distribution is based on OpenSUSE 15.3 and comes with OpenFOAM 9, OpenFOAM v2112, and paraview pre-installed. It also comes with all the compilers and libraries necessary to compile most of the applications.

At the following link, you can download the latest distribution (code named WSL-SUSEFoam2022v1).


User information:

User:            joegi
Password:    cfd1234

User:            root
Password:    cfd1234


To load OpenFOAM, type in the terminal:
    of9 or of2112

Type alias in the terminal window to know all the predefined aliases, or open the .bashrc file using your favorite text editor.


At this link, you can find a Youtube playlist with general instructions on how to use the WSL distribution.

At this link, you can find the WSL documentation.