CFD,  Linux,  OpenFOAM,  Windows

Developing for OpenFOAM on Windows 10 – Introduction

Windows 10 comes with the Windows Subsystem for Linux (WSL), which allows different Linux distributions to run under Windows. Currently Ubuntu, openSUSE and SUSE Linux Enterprise Server are available in the Microsoft Store, with Fedora expected to become available soon. When I started considering the option of ceasing the development of GeekoCFD, I have started exploring the possibility of using WSL for my development work. I am still testing this, and my virtual machine with openSUSE is still there. However, WSL looks promising. Thus, I thought of sharing the steps I have followed to set up my test environment, with a few tweaks to improve the experience. I have divided the instructions in parts because they are quite long:

  1. Installing WSL on Windows 10 Fall Creators Update
  2. Installing OpenFOAM on WSL
  3. Enabling support for graphical applications in WSL with Xming
  4. Editing code from Windows and compile it in WSL

Enjoy  :mrgreen:

This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks. Alberto Passalacqua is not associated to OpenCFD Ltd.