Precompiled packages (MS-Windows)
There are currently 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 the 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 containerized for easier management.
It is recommended to perform post-processing with the native
ParaView for Windows.
This should have better performance and is easier to configure. Simply download ParaView for windows directly.
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 the general OpenFOAM + Docker information.
Copyright (C) 2021 OpenCFD Ltd.