Difference between revisions of "Installation/Windows"

From OpenFOAMWiki
(Added to the category of incomplete pages)
(boosted this page with the contents from the old tips on how to cross compile)
Line 8: Line 8:
 
Here is the list of pages that fall into this category: {{#categorytree:Installing OpenFOAM on Windows|mode=pages}}
 
Here is the list of pages that fall into this category: {{#categorytree:Installing OpenFOAM on Windows|mode=pages}}
  
<br>
 
  
= How to add new pages =
+
= External building/installation instructions =
TODO... for now, maybe this should be divided into two types of sub-categories:
+
* How to cross-compile yourself... for this one there are already 3 pages...
+
* Available binaries - this is listed in the first cross-compiling page...
+
  
Pages should have the following category marking:
+
== List of known building instructions ==
<pre>[[Category:Installing OpenFOAM on Windows]]</pre>
+
This is a list of links of build instructions of cross-compiled and natively compiled versions of OpenFOAM, using '''mingw''' and/or '''mingw-w64''':
 +
*[http://www.symscape.com Symscape's] cross-compilations:
 +
**OpenFOAM 1.4.1 mingw32 version [http://www.symscape.com/openfoam-on-windows]
 +
**OpenFOAM 1.5.x mingw32 version [http://www.symscape.com/openfoam-1-5-x-on-windows]
 +
**OpenFOAM 1.6.x mingw32 (no MPI) version [http://www.symscape.com/openfoam-1-6-x-on-windows] and OpenFOAM 1.6.x mingw-64 (with MS-MPI) version [http://www.symscape.com/openfoam-1-6-x-on-windows-64-mpi]
 +
**OpenFOAM 1.7.x mingw-64 (with MS-MPI) version [http://www.symscape.com/openfoam-1-7-x-on-windows-64-mpi]
 +
**OpenFOAM 2.0.x mingw-64 (with MS-MPI) version [http://www.symscape.com/openfoam-2-0-x-on-windows-64-mpi]
 +
**OpenFOAM 2.1.x mingw-64 (with MS-MPI) version [http://www.symscape.com/openfoam-2-1-x-on-windows-64-mpi]
 +
*[http://sourceforge.net/users/apostol Julian's] OpenFOAM 1.5 files for native build in Windows [http://sourceforge.net/projects/openfoam-mswin/files/] with mingw32 and CodeBlocks (instructions included inside files)
 +
*[http://www.bluecape.com.pt blueCAPE's] cross-compilations:
 +
**OpenFOAM 1.5.x mingw32 version with MPICH1 [http://www.cfd-online.com/Forums/openfoam-installation/57248-openfoam-mingw-crosscompiler-hosted-linux-6.html#post206728] and MPICH2 [http://www.cfd-online.com/Forums/openfoam-installation/57248-openfoam-mingw-crosscompiler-hosted-linux-7.html#post206729]
 +
**OpenFOAM 1.6 and 1.7.0 mingw32, mingw-w32 and mingw-w64 (all with MPICH2)... is this tutorial you are reading...
 +
**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]
 +
*[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/index_en.html Kojani's] blog (available in English, Japanese and Korean). Provides instructions and source code for compiling OpenFOAM 1.7.1 directly on Windows while using MSys: [http://www1.parkcity.ne.jp/kojani/of-171_en.html]
 +
 
 +
== List of known binaries for Windows ==
 +
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: 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:
 +
** [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]
 +
*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.building-engineering.de/index.php?lang=en Tian Building Engineering] provides 64bit Single Precision binaries at their download section [http://www.building-engineering.de/index.php?lang=en&Itemid=139]
 +
*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.
 +
*Paid: [http://www.symscape.com Symscape's] OpenFOAM for Windows is part of their Caedium packages.
 +
*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]
 +
*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]
 +
 
 +
 
 +
= List of benchmarks on Windows =
 +
 
 +
Benchmarks and run-times running OpenFOAM cross-compiled with mingw:
 +
<ul>
 +
<li>{{version1.4.1}} icoDyMFoam (movingCone) OpenFOAM tutorial [http://www.symscape.com/openfoam-on-windows#comment-129]</li>
 +
<li>{{version1.4.1}} Xoodles pitzDaily3D OpenFOAM tutorial [http://www.symscape.com/openfoam-on-windows#comment-131]</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>{{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>
 +
</ul>
 +
 
 +
 
 +
= Tutorials known to work on Windows =
 +
Tutorials known to work with cross-compiled versions of OpenFOAM:
 +
<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>{{version2.0}}{{version2.1}} [http://www.bluecape.com.pt blueCAPE's] list [http://code.google.com/p/bluecfd-singlecore/wiki/KnownWorkingTutorials]</li>
 +
</ul>
 +
 
 +
 
 +
= Forums for more information =
 +
Threads at CFD-Online Forum for OpenFOAM, for discussing and questions about these pages:
 +
*Announcement of this page [http://www.cfd-online.com/Forums/openfoam-news-announcements-other/70063-cross-compiling-openfoam-1-6-linux-windows-32-64bits-mingw-w64.html]
 +
*Announcement of the patches for the 1.7 version [http://www.cfd-online.com/Forums/openfoam-news-announcements-other/79842-cross-compiling-openfoam-1-7-0-linux-windows-32-64bits-mingw-w64.html]
 +
*Support for this page is available [http://www.cfd-online.com/Forums/openfoam-installation-windows/72813-cross-compiling-openfoam-1-6-linux-windows-32-64bits-mingw-w64.html here].
 +
 
 +
 
 +
= Miscellaneous information =
 +
== Differences between mingw32 and mingw-w32 versions ==
 +
[http://www.mingw.org/wiki/MinGW MinGW] is the true name of '''mingw32'''. As for '''mingw-w32''' (32bit version of '''mingw-w64'''), as cited from [http://www.cadforte.com/index.html here (dead link)]:
 +
<blockquote>Mingw-w64 began as a spin-off from the mingw.org project, with the original intent of building for 64-bit targets.</blockquote>
 +
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'''.
 +
 
 +
 
 +
= How to add new pages =
 +
Check the source code of one or more of the children pages listed in the [[#Introduction|Introduction]] to get a better idea of the structure, but the common structure is as follows:
 +
<ol><li>All children pages must start with <tt>Installation/Windows</tt></li>
 +
<li>Next indicate the kind of instructions and the OpenFOAM version/variant/fork it refers to and so on. Some examples:
 +
* <tt>Cross-Compiling OpenFOAM 2.1.1 on Linux for Windows using MinGW</tt>
 +
* <tt>Compiling OpenFOAM 2.2.x on Windows using MinGW</tt>
 +
* <tt>Compiling OpenFOAM x.y.z on Windows using MSVC</tt>
 +
</li>
 +
<li>And in those pages, must refer have at the bottom of the page this code:
 +
<pre>[[Category:Installing OpenFOAM on Windows]]</pre></li>
 +
</ol>
 +
<br>
  
 
[[Category:Installing OpenFOAM]]
 
[[Category:Installing OpenFOAM]]
 
[[Category:Installing OpenFOAM on Windows]]
 
[[Category:Installing OpenFOAM on Windows]]
 
[[Category:Incomplete pages]]
 
[[Category:Incomplete pages]]

Revision as of 12:29, 2 November 2013


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]
  • Julian's OpenFOAM 1.5 files for native build in Windows [8] with mingw32 and CodeBlocks (instructions included inside files)
  • blueCAPE's cross-compilations:
    • OpenFOAM 1.5.x mingw32 version with MPICH1 [9] and MPICH2 [10]
    • OpenFOAM 1.6 and 1.7.0 mingw32, mingw-w32 and mingw-w64 (all with MPICH2)... is this tutorial you are reading...
    • OpenFOAM 2.0.x and 2.1.x mingw32, mingw-w32 and mingw-w64 with Open-MPI, MPICH2 and MS-MPI: [11]
  • 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: [12]
  • Kojani's blog (available in English, Japanese and Korean). Provides instructions and source code for compiling OpenFOAM 1.7.1 directly on Windows while using MSys: [13]

2.2 List of known binaries for Windows

Distributable binaries:


3 List of benchmarks on Windows

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

  • OF version 141.png icoDyMFoam (movingCone) OpenFOAM tutorial [21]
  • OF version 141.png Xoodles pitzDaily3D OpenFOAM tutorial [22]
  • OF version 16.png simpleFoam motorBike OpenFOAM tutorial from 1.6.x, running with OpenFOAM 1.6 [23]
  • 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 [24]
  • 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 [25]


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 [28]
  • Announcement of the patches for the 1.7 version [29]
  • 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]]