Precompiled packages (MS-Windows)
There are three different ways to run OpenFOAM on MS-Windows (10 or newer). These are listed in the likely order of preference:
WSL/WSL2 : Windows Subsystem for Linux
Many OpenFOAM users like WSL (Windows Subsystem for Linux) since it provides maximum flexibility for the user to compile new applications, use dynamic code compilation, and install additional programs.
Additionally, the OpenFOAM Linux packages are kept more up-to-date than cross-compiled or docker variants.
Native Windows : Cross-compiled Windows binaries (mingw).
Provides a quick means of using OpenFOAM on windows, but does not currently include an OpenFOAM development environment (ie, cannot compile code, no dynamic code)
Docker container : docker-windows
Equivalent to the WSL approach, except that the entire OpenFOAM installation is managed as a container.
Windows Subsystem for Linux
- Install WSL : The WSL information from Microsoft provides extensive information about installing and configuring WSL.
- Install Linux : You should choose a Linux distribution such as Ubuntu or openSUSE that receives regular OpenFOAM updates.
- Install OpenFOAM : Follow the regular installation/update instructions for Ubuntu or openSUSE.
The installer for cross-compiled Windows binaries: https://dl.openfoam.com/source/latest/OpenFOAM-windows-mingw.exe
- Install Docker: Follow the Docker for windows information.
- Follow general OpenFOAM + Docker information.
Copyright (C) 2021 OpenCFD Ltd.