Installation/Windows

From OpenFOAMWiki

1 Introduction

This page is an entry point to the several instructions made available for installing OpenFOAM on Windows.

Here is the list of pages that fall into this category:


2 External building/installation instructions

2.1 List of known building instructions

This is a list of links of build instructions of cross-compiled and natively compiled versions of OpenFOAM, using mingw and/or mingw-w64:

  • Symscape's cross-compilations:
    • OpenFOAM 1.4.1 mingw32 version [1]
    • OpenFOAM 1.5.x mingw32 version [2]
    • OpenFOAM 1.6.x mingw32 (no MPI) version [3] and OpenFOAM 1.6.x mingw-64 (with MS-MPI) version [4]
    • OpenFOAM 1.7.x mingw-64 (with MS-MPI) version [5]
    • OpenFOAM 2.0.x mingw-64 (with MS-MPI) version [6]
    • OpenFOAM 2.1.x mingw-64 (with MS-MPI) version [7]
    • OpenFOAM 2.2.x mingw-64 (with MS-MPI) version [8]
  • Julian's OpenFOAM 1.5 files for native build in Windows [9] with mingw32 and CodeBlocks (instructions included inside files)
  • blueCAPE's cross-compilations:
  • Yuu Kasuga's blog (in Japanese). It use to have a few entries about cross-compiling and using OpenFOAM in Windows. Only recover link so far is for OpenFOAM 1.7.x using Symscape's patches: [13]
  • Kojani's blog (available in Korean only). Provides instructions and source code for compiling OpenFOAM 1.7.1 directly on Windows while using MSys: [14]

2.2 List of known binaries for Windows

Note: Keep in mind that the following list of builds are not officially supported by the OpenFOAM Foundation

For a more up-to-date list, check the wiki page Windows.

Distributable binaries:

  • Free: Julian's OpenFOAM for MS windows binary release - OpenFOAM 1.5 built natively in Windows [15] using mingw32 and CodeBlocks (note: development seems to have been dropped)
  • Free: On Yuu Kasuga's blog (in Japanese) is a short tutorial on how to install and use the unofficial openfoam16wi32 project at SourceForge, which provides OpenFOAM 1.6 32bit binaries for Windows.
  • Free: Nishit Joseph's builds:
  • Free: blueCAPE's:
    • blueCFD-SingleCore: OpenFOAM 2.0.x and 2.1.x for Windows XP, Vista and 7, both 32 and 64bit [16]
    • blueCFD-Core: port of OpenFOAM 2.3.x for Windows 7, 8 and 8.1, all 64bit [17]
    • blueCFD-Core 2016 and newer: port of OpenFOAM 4.x for Windows 7, 8 and 8.1, all 64bit [18]
  • Free: ODS Engineering also provides 64bit binaries of OpenFOAM 2.1.1, but it's unknown which precision [19] - Note: it requires registration.
  • Free: simFlow Engine: A commercial GUI which provides separate free binaries of OpenFOAM for Windows (32bit & 64 bit)
  • Paid: Symscape's OpenFOAM for Windows is part of their Caedium packages.

3 List of benchmarks on Windows

Benchmarks and run-times running OpenFOAM cross-compiled with mingw:

  • OF version 141.png icoDyMFoam (movingCone) OpenFOAM tutorial [20]
  • OF version 141.png Xoodles pitzDaily3D OpenFOAM tutorial [21]
  • OF version 16.png simpleFoam motorBike OpenFOAM tutorial from 1.6.x, running with OpenFOAM 1.6 [22]
  • OF version 17.png simpleFoam motorBike OpenFOAM tutorial from 1.6.x, running with OpenFOAM 1.6 in Linux and 1.7.0 in Windows [23]
  • OF Version 20.png OF Version 21.png simpleFoam motorBike OpenFOAM tutorial from 2.0.x, running with OpenFOAM 2.0.x and 2.1.x in Linux and in Windows [24]


4 Tutorials known to work on Windows

Tutorials known to work with cross-compiled versions of OpenFOAM:

5 Forums for more information

Threads at CFD-Online Forum for OpenFOAM, for discussing and questions about these pages:

  • Announcement of this page [27]
  • Announcement of the patches for the 1.7 version [28]
  • Support for this page is available here.


6 Miscellaneous information

6.1 Differences between mingw32 and mingw-w32 versions

MinGW is the true name of mingw32. As for mingw-w32 (32bit version of mingw-w64), as cited from here (dead link):

Mingw-w64 began as a spin-off from the mingw.org project, with the original intent of building for 64-bit targets.

Nonetheless, mingw-w64 has retro-compatibility with the 32bit MinGW version, thus enabling a 2-in-1 build package for 32 and 64bit Windows systems.

The main difference between mingw32 and mingw-w32, is that MinGW is a stable and proven build tool and run-time for Windows, while the mingw-w64 project is still under fierce development and only in October 29th of 2010 they released their first stable version. Therefore, it is only estimated that the mingw32 version could provide less headaches than mingw-w32.


7 How to add new pages

Check the source code of one or more of the children pages listed in the Introduction to get a better idea of the structure, but the common structure is as follows:

  1. All children pages must start with Installation/Windows
  2. Next indicate the kind of instructions and the OpenFOAM version/variant/fork it refers to and so on. Some examples:
    • Cross-Compiling OpenFOAM 2.1.1 on Linux for Windows using MinGW
    • Compiling OpenFOAM 2.2.x on Windows using MinGW
    • Compiling OpenFOAM x.y.z on Windows using MSVC
  3. And in those pages, must refer have at the bottom of the page this code:
    [[Category:Installing OpenFOAM on Windows]]