Run OpenQBMM on Windows 10


Windows 10 (Anniversary update or following) users can now run OpenFOAM and OpenQBMM. The steps to follow are simple:

  1. Install WSL as explained here: https://msdn.microsoft.com/en-us/commandline/wsl/about
  2. Start Ubuntu for Windows
  3. Add the repository for OpenFOAM provided by the OpenFOAM foundation
    1. sudo add-apt-repository http://dl.openfoam.org/ubuntu
    2. sudo sh -c “wget -O – http://dl.openfoam.org/gpg.key | apt-key add -“
  4. Refresh the repository
    1. sudo apt-get update
  5. Install OpenFOAM
    1. For example, to install OpenFOAM 4.x, use the command: sudo apt-get -y install openfoam4
  6. Clone the OpenQBMM repository: git clone https://github.com/OpenQBMM/OpenQBMM.git
  7. Move into the OpenQBMM directory, and build OpenQBMM by typing ./Allwmake

All the command line applications will work properly. You will have to use the Windows version of Paraview to visualize results, after copying to them to a partition accessible to Windows applications (See https://msdn.microsoft.com/en-us/commandline/wsl/faq for some additional detail on accessing the Windows filesystem from bash on Windows).

Update – Jan. 2nd, 2017: A more complete tutorial, with instructions on how to also use Paraview within WSL, are provided by the OpenFOAM Foundation.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.