Difference between revisions of "Installation/Windows"

From OpenFOAMWiki
(Tutorials known to work on Windows: added version 2.3)
 
(6 intermediate revisions by 2 users not shown)
Line 23: Line 23:
 
**OpenFOAM 1.6 mingw32, mingw-w32 and mingw-w64 (all with MPICH2): [[Installation/Windows/Outdated/Cross_Compiling_OpenFOAM_1.6_in_Linux_For_Windows_with_MinGW]]
 
**OpenFOAM 1.6 mingw32, mingw-w32 and mingw-w64 (all with MPICH2): [[Installation/Windows/Outdated/Cross_Compiling_OpenFOAM_1.6_in_Linux_For_Windows_with_MinGW]]
 
**OpenFOAM 1.7.0 mingw32, mingw-w32 and mingw-w64 (all with MPICH2): [[Installation/Windows/Outdated/Cross_Compiling_OpenFOAM_1.7_in_Linux_For_Windows_with_MinGW]]
 
**OpenFOAM 1.7.0 mingw32, mingw-w32 and mingw-w64 (all with MPICH2): [[Installation/Windows/Outdated/Cross_Compiling_OpenFOAM_1.7_in_Linux_For_Windows_with_MinGW]]
**OpenFOAM 2.0.x and 2.1.x mingw32, mingw-w32 and mingw-w64 with Open-MPI, MPICH2 and MS-MPI: [http://code.google.com/p/bluecfd-singlecore/wiki/CrossCompilingOpenFOAM20]
+
**OpenFOAM 2.0.x and 2.1.x mingw32, mingw-w32 and mingw-w64 with Open-MPI, MPICH2 and MS-MPI: [http://sourceforge.net/p/bluecfd-sc/wiki/CrossCompilingOpenFOAM20/]
 
*[http://www.geocities.co.jp/SiliconValley-SantaClara/1183/ 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: [http://www.geocities.jp/penguinitis2002/study/OpenFOAM/OpenFOAM-1_7_x-win64-mpich.html]
 
*[http://www.geocities.co.jp/SiliconValley-SantaClara/1183/ 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: [http://www.geocities.jp/penguinitis2002/study/OpenFOAM/OpenFOAM-1_7_x-win64-mpich.html]
 
*[http://www1.parkcity.ne.jp/kojani/ Kojani's] blog (available in Korean only). Provides instructions and source code for compiling OpenFOAM 1.7.1 directly on Windows while using MSys: [http://www1.parkcity.ne.jp/kojani/openfoam.html]
 
*[http://www1.parkcity.ne.jp/kojani/ Kojani's] blog (available in Korean only). Provides instructions and source code for compiling OpenFOAM 1.7.1 directly on Windows while using MSys: [http://www1.parkcity.ne.jp/kojani/openfoam.html]
  
 
== List of known binaries for Windows ==
 
== 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:
 
Distributable binaries:
*Free: [http://sourceforge.net/users/apostol Julian's] OpenFOAM for MS windows binary release - OpenFOAM 1.5 built natively in Windows [http://sourceforge.net/projects/openfoam-mswin/] using mingw32 and CodeBlocks (note: development seems to have been dropped)
+
* Free: [http://sourceforge.net/users/apostol Julian's] OpenFOAM for MS windows binary release - OpenFOAM 1.5 built natively in Windows [http://sourceforge.net/projects/openfoam-mswin/] using mingw32 and CodeBlocks (note: development seems to have been dropped)
*Free: On [http://www.geocities.co.jp/SiliconValley-SantaClara/1183/study/OpenFOAM/OpenFOAM-1_6-win32.html Yuu Kasuga's] blog (in Japanese) is a short tutorial on how to install and use the unofficial [http://sourceforge.net/projects/openfoam16wi32/ openfoam16wi32 project at SourceForge], which provides OpenFOAM 1.6 32bit binaries for Windows.
+
* Free: On [http://www.geocities.co.jp/SiliconValley-SantaClara/1183/study/OpenFOAM/OpenFOAM-1_6-win32.html Yuu Kasuga's] blog (in Japanese) is a short tutorial on how to install and use the unofficial [http://sourceforge.net/projects/openfoam16wi32/ openfoam16wi32 project at SourceForge], which provides OpenFOAM 1.6 32bit binaries for Windows.
*Free: Nishit Joseph's builds:
+
* Free: Nishit Joseph's builds:
 
** [https://sourceforge.net/projects/openfoam-170/ OpenFOAM 1.7.0 for Windows 32 bit], based on this wiki page. Support thread for this build available here: [http://www.cfd-online.com/Forums/openfoam-installation-windows/82980-openfoam-1-7-0-win32.html OpenFOAM-1.7.0 for Win32]
 
** [https://sourceforge.net/projects/openfoam-170/ OpenFOAM 1.7.0 for Windows 32 bit], based on this wiki page. Support thread for this build available here: [http://www.cfd-online.com/Forums/openfoam-installation-windows/82980-openfoam-1-7-0-win32.html OpenFOAM-1.7.0 for Win32]
 
** [http://sourceforge.net/projects/openfoam21win64/ OpenFOAM-2.1.x for Win64], based on Symscape's instructions but built with Open-MPI. Support thread for this build available here: [http://www.cfd-online.com/Forums/openfoam-installation-windows-mac/109100-windows-x64-binaries-openfoam-2-1-x-using-openmpi.html Windows (x64) Binaries for OpenFOAM-2.1.x using OpenMPI]
 
** [http://sourceforge.net/projects/openfoam21win64/ OpenFOAM-2.1.x for Win64], based on Symscape's instructions but built with Open-MPI. Support thread for this build available here: [http://www.cfd-online.com/Forums/openfoam-installation-windows-mac/109100-windows-x64-binaries-openfoam-2-1-x-using-openmpi.html Windows (x64) Binaries for OpenFOAM-2.1.x using OpenMPI]
*Free: [http://www.bluecape.com.pt blueCAPE's] blueCFD-SingleCore: OpenFOAM 2.0.x and 2.1.x for Windows XP, Vista and 7, both 32 and 64bit [http://code.google.com/p/bluecfd-singlecore/]
+
* Free: [http://www.bluecape.com.pt blueCAPE's]:
*Free: [http://www.building-engineering.de/index.php?lang=en Tian Building Engineering] provides 64bit binaries, OpenFOAM 2.3.x [http://www.building-engineering.de/index.php?lang=en&Itemid=139]
+
** blueCFD-SingleCore: OpenFOAM 2.0.x and 2.1.x for Windows XP, Vista and 7, both 32 and 64bit [http://sourceforge.net/projects/bluecfd-sc/]
*Free: [http://www.ods-engineering.com ODS Engineering] also provides 64bit binaries, but it's unknown which precision [http://www.ods-engineering.com/downloads] - Note: it requires registration.
+
** blueCFD-Core: port of OpenFOAM 2.3.x for Windows 7, 8 and 8.1, all 64bit [http://bluecfd.com/Core]
*Paid: [http://www.bluecape.com.pt blueCAPE's] blueCFD: (unofficial) OpenFOAM port for Windows XP, Vista, 7 and 8, both 32 and 64bit [http://www.bluecape.com.pt/blueCFD]
+
** blueCFD-Core 2016 and newer: port of OpenFOAM 4.x for Windows 7, 8 and 8.1, all 64bit [http://bluecfd.github.io/Core/]
*Paid: [http://www.symscape.com Symscape's] (unofficial) OpenFOAM for Windows is part of their Caedium packages.
+
* Free: [http://www.ods-engineering.com ODS Engineering] also provides 64bit binaries of OpenFOAM 2.1.1, but it's unknown which precision [http://www.ods-engineering.com/tools/ods-studio/download/] - Note: it requires registration.
*Paid: [http://www.sim-flow.com simFlow]: A commercial GUI which provides 64 bit binaries of unofficial OpenFOAM ports for Windows.
+
* Free: [https://sim-flow.com/download/openfoam-windows simFlow Engine]: A commercial GUI which provides separate free binaries of OpenFOAM for Windows (32bit & 64 bit)
*Unknown status: [http://www.scai.fraunhofer.de Fraunhofer SCAI] project - Porting Open Source HPC Software to Microsoft Windows Platforms [http://www.scai.fraunhofer.de/openmshpc/softwarepakete/openfoam.html] - availability is unknown, but a contact page exists [http://www.scai.fraunhofer.de/openmshpc/kontakt.html]
+
* Paid: [http://www.symscape.com Symscape's] OpenFOAM for Windows is part of their Caedium packages.
 
+
  
 
= List of benchmarks on Windows =
 
= List of benchmarks on Windows =
Line 51: Line 54:
 
<li>{{version1.6}} simpleFoam motorBike OpenFOAM tutorial from 1.6.x, running with OpenFOAM 1.6 [http://joomla.bluecape.com.pt/index.php?option=com_mamblog&Itemid=43&task=show&action=view&id=40&Itemid=43&lang=en]</li>
 
<li>{{version1.6}} simpleFoam motorBike OpenFOAM tutorial from 1.6.x, running with OpenFOAM 1.6 [http://joomla.bluecape.com.pt/index.php?option=com_mamblog&Itemid=43&task=show&action=view&id=40&Itemid=43&lang=en]</li>
 
<li>{{version1.7}} simpleFoam motorBike OpenFOAM tutorial from 1.6.x, running with OpenFOAM 1.6 in Linux and 1.7.0 in Windows [http://joomla.bluecape.com.pt/index.php?option=com_mamblog&Itemid=43&task=show&action=view&id=40&Itemid=43&lang=en]</li>
 
<li>{{version1.7}} simpleFoam motorBike OpenFOAM tutorial from 1.6.x, running with OpenFOAM 1.6 in Linux and 1.7.0 in Windows [http://joomla.bluecape.com.pt/index.php?option=com_mamblog&Itemid=43&task=show&action=view&id=40&Itemid=43&lang=en]</li>
<li>{{version2.0}}{{version2.1}} simpleFoam motorBike OpenFOAM tutorial from 2.0.x, running with OpenFOAM 2.0.x and 2.1.x in Linux and in Windows [http://code.google.com/p/bluecfd-singlecore/wiki/Runtimes202_211]</li>
+
<li>{{version2.0}}{{version2.1}} simpleFoam motorBike OpenFOAM tutorial from 2.0.x, running with OpenFOAM 2.0.x and 2.1.x in Linux and in Windows [http://sourceforge.net/p/bluecfd-sc/wiki/Runtimes202_211/]</li>
 
</ul>
 
</ul>
  
Line 59: Line 62:
 
<ul>
 
<ul>
 
<li>{{version1.6}}{{version1.7}} [http://www.bluecape.com.pt blueCAPE's] list [http://joomla.bluecape.com.pt/index.php?option=com_mamblog&Itemid=43&task=show&action=view&id=44&Itemid=43&lang=en]</li>
 
<li>{{version1.6}}{{version1.7}} [http://www.bluecape.com.pt blueCAPE's] list [http://joomla.bluecape.com.pt/index.php?option=com_mamblog&Itemid=43&task=show&action=view&id=44&Itemid=43&lang=en]</li>
<li>{{version2.0}}{{version2.1}} [http://www.bluecape.com.pt blueCAPE's] list [http://code.google.com/p/bluecfd-singlecore/wiki/KnownWorkingTutorials]</li>
+
<li>{{version2.0}}{{version2.1}}{{version2.3}} [http://www.bluecape.com.pt blueCAPE's] list [http://sourceforge.net/p/bluecfd-sc/wiki/KnownWorkingTutorials/]</li>
 
</ul>
 
</ul>
 
  
 
= Forums for more information =
 
= Forums for more information =

Latest revision as of 19:05, 27 December 2016

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]]