CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[Other] How to install OpenFOAM under Windows?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By sega

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2009, 07:40
Smile How to install OpenFOAM under Windows?
  #1
Member
 
Join Date: Jun 2009
Posts: 34
Rep Power: 12
lzgwhy is on a distinguished road
How to install OpenFOAM under Windows?
lzgwhy is offline   Reply With Quote

Old   June 7, 2009, 11:03
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 15
sega is on a distinguished road
Well, lzgwhy, maybe you should be more specific with you questions.
Otherwise I'm not sure anybody will take them serious.

Concerning your questions I can tell that OpenFOAM is not designed for running with Windows but I think there is a workaround using the cygwin software. But I am pretty sure no one in this forum will suggest you to use it.

If you are afraid of running your machine with a linux operating system I can strongly suggest you try the VirtualBox and emulate a linux system from inside Windows. Thats how I started but in the meantime I switched to a "real" linux system. (Although mainly because of performance advantages and not because I like linux...)
OpenFOAM2016 likes this.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   June 7, 2009, 17:57
Default
  #3
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 20
philippose will become famous soon enough
Hello there,

If you are using only the standard features of OpenFOAM-1.5, and not doing any snazzy dynamic mesh stuff with parallel simulations, you can have a look at the following project:

http://sourceforge.net/projects/openfoam-mswin/

This is a native port of OpenFOAM-1.5 to Windows and compiles using MinGW without any Unix emulations. They even supply you with Code::Blocks projects, and the entire patched source code...

It is still in a highly experimental state, and I recently installed it on my computer at home and on one at work. So far things have been working very well with the standard OpenFOAM solvers and utilities...

They have also created a first version of a graphical user interface using QT called OpenFOAM Designer, which works roughly on the lines of the old FoamX.

I have no idea if this project is a result of work together with the official OpenFOAM team, but the guys sound like a highly motivated set of people :-)!

Check it out!

Philippose
philippose is offline   Reply With Quote

Old   June 7, 2009, 23:22
Smile Thank you!
  #4
Member
 
Join Date: Jun 2009
Posts: 34
Rep Power: 12
lzgwhy is on a distinguished road
Thank Sega and Philippose for your help!
Sega, I think I understood you. Maybe I should detail the question. I never used OpenFoam, which I just knew recently. I knew it is a open source software, I wonder if I can get its source code, which, I think, could be conpiled in any platform including Windows, if possible, because as we all know, the C/C++ language can be easily migrated with some corresponding libraries under Windows, for example. Do you think this process could be practised? Philippose suggested a website relate to MS Windows OpenFoam, but I have not know the details. Thank you again!
lzgwhy is offline   Reply With Quote

Old   June 11, 2009, 10:28
Default
  #5
New Member
 
James
Join Date: Mar 2009
Location: Sheffield, UK
Posts: 9
Rep Power: 12
derjames is on a distinguished road
Dear Izgwhy, look at the ubuntu forums http://www.ubuntuforums.org (my username is the same) where I detailed how to run openFoam under WindowsXP using colinux/andLinux. This runs quite OK but it may not be good for large computations.

Cheers
derjames is offline   Reply With Quote

Old   August 4, 2009, 02:55
Default
  #6
New Member
 
padhu
Join Date: Jun 2009
Location: Bangalore, India
Posts: 27
Rep Power: 12
padmanathan is on a distinguished road
hi Philippos and all,

thank you for your post.

i have installed and tried some tutorials, i can able to do all the processing. only problem i have faced is I can't able to open .vtk files in paraView. while opening, paraview shows following error,

ERROR: In C:\tmp\OpenFOAM-1.5\3rdparty\ParaView-3.4.0\VTK\IO\vtkUnstructuredGridReader.cxx, line 350
vtkUnstructuredGridReader (0x26b7a568): Unrecognized keyword: =ÂŹ\=®{<#×

can anyone suggest me regarding this?

padhu
padmanathan is offline   Reply With Quote

Old   August 25, 2009, 03:11
Default
  #7
New Member
 
Liu Huafei
Join Date: Mar 2009
Location: Shanghai, China
Posts: 20
Rep Power: 12
liuhuafei is on a distinguished road
postprocessing error
liuhuafei is offline   Reply With Quote

Old   September 22, 2009, 09:41
Default foamToVTK in Windows...
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hello Padhu,

It's been a while since you asked that question, but only now I've seen it...

It's quite simple: the foamToVTK executable in Windows still has a few glitches, and one of them is the linux binary version of vtk files isn't exactly the same as in Windows. So, just use:
Code:
foamToVTK -ascii
in the command line and it will export in text format and Paraview will be able to open it.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 26, 2009, 17:50
Default Help with paraview
  #9
New Member
 
Joe Craparo
Join Date: Oct 2009
Posts: 2
Rep Power: 0
jcraparo is on a distinguished road
Hello all,

I recently installed the sourceforge version of OpenFoam on my Windows XP machine. I'm new to this, so I tried to run the 'cavity' tutorial. Everything seems to work, but when I try to view the mesh and/or results in Paraview, there is no cavity.OpenFOAM file to read. My guess is that the file is not being written by the mesh generator. Any suggestions on how to fix?

Thanks.
jcraparo is offline   Reply With Quote

Old   October 27, 2009, 06:47
Default How to open cases in Paraview under Windows
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hello Joe,

You have three choices:
  1. Run "foamToVTK -ascii" in the command line, and open the *.vtk files in your Paraview;
  2. Get the native reader version, which is available here; then on your case folder either create an empty file "cavity.foam", using Windows Explorer, or by doing "echo. > cavity.foam" in the command line. Then open "cavity.foam" with the Paraview with the native reader. NOTE: regular Paraview's cannot open *.foam files, since they use a very old plugin that no longer works.
  3. In case your Paraview already opens *.OpenFOAM files, then just do as explained in the second hypothesis... create an empty file with the name you want The plugin will do the rest on its own.
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 27, 2009, 08:10
Default
  #11
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 20
philippose will become famous soon enough
Hello there,

A Good Day to everyone, and I apologise for not having replied earlier....

There is a fourth option :-)..... The native OpenFOAM Paraview reader which is shipped with OpenFOAM-1.5 (and also present as DLLs in the Windows version) works perfectly fine.

As I too discovered fairly early on, is does not work on the Windows version "Out-of-the-box", and needs a small amount of work....

Here are the steps you need to follow:

1. Within the OpenFOAM-1.5 windows installation, in side the folder "bin/plugins/paraview", you will find the DLL versions of the native paraview reader:
- libPV3FoamReader.dll
- libPV3FoamReader_SM.dll

2. Copy these two files into the "plugins" folder under the "bin" directory of your Paraview folder (I have tested it on Paraview-3.4.0 in Windows)... if the "plugins" folder does not exist, create it.

3. Now, open Paraview from within the graphical user interface "OpenFOAM Designer" which comes as part of the windows installation.

4. Once Paraview opens up, go to the Menu: "Tools -> Manage Plugins/Extensions", and make sure that the two plugin DLLs are listed, showing that they have been loaded successfully.

5. Now, you will be able to read in files with the extension ".OpenFOAM"... Note... the extension is case sensitive.

6. You can manually create an empty file with the name of your case and ending with the extension ".OpenFOAM" directly from within OpenFOAM Designer, which you can then open in Paraview.


Remember.... you need to open Paraview using the icon present inside OpenFOAM Designer.... I think this has something to do with the paths...

Hope this helps.... :-)

Have a great day ahead!!

Philippose
philippose is offline   Reply With Quote

Old   October 27, 2009, 14:04
Default Many thanks
  #12
New Member
 
Joe Craparo
Join Date: Oct 2009
Posts: 2
Rep Power: 0
jcraparo is on a distinguished road
Thanks Bruno and Philippose. Your suggestions did the trick.

Best regards,

Joe


jcraparo is offline   Reply With Quote

Old   September 15, 2010, 04:55
Default
  #13
New Member
 
Join Date: Sep 2010
Posts: 1
Rep Power: 0
127057 is on a distinguished road
Hello everybody!

I'm currently starting with OpenFOAM 1.5 for Windows, as suggested by Philippose, and I followed his instructions for the ParaView, but there's something wrong, because I'm not able to load the "libPV3FoamReader_SM.dll" plugin. When I try to load it manually from the Tools\Manage Plugins/Extensions window, I recieve a message that says that the file "is not a valid Qt plugin".

Any idea?

Thanks in advance

Other question: Is there anything similar to run OpenFOAM 1.7 in Windows?

Last edited by 127057; September 15, 2010 at 06:22. Reason: change my comment
127057 is offline   Reply With Quote

Old   September 15, 2010, 07:38
Default
  #14
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings 127057 and welcome to the forum!

Starting with ParaView 3.8.0, you no longer need to use the plugin that comes with OpenFOAM. Simply use the file extension ".foam" instead of ".OpenFOAM" and it will work very well with ParaView's internal FOAM reader

As for OpenFOAM 1.7.0 (as well as 1.6, 1.6.x and 1.7.x) for Windows, you can see here the list of available solutions.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 22, 2014, 10:29
Default
  #15
New Member
 
Liaoning
Join Date: May 2014
Posts: 12
Rep Power: 7
uuivw is on a distinguished road
Quote:
Originally Posted by philippose View Post
Hello there,

If you are using only the standard features of OpenFOAM-1.5, and not doing any snazzy dynamic mesh stuff with parallel simulations, you can have a look at the following project:

http://sourceforge.net/projects/openfoam-mswin/

This is a native port of OpenFOAM-1.5 to Windows and compiles using MinGW without any Unix emulations. They even supply you with Code::Blocks projects, and the entire patched source code...

It is still in a highly experimental state, and I recently installed it on my computer at home and on one at work. So far things have been working very well with the standard OpenFOAM solvers and utilities...

They have also created a first version of a graphical user interface using QT called OpenFOAM Designer, which works roughly on the lines of the old FoamX.

I have no idea if this project is a result of work together with the official OpenFOAM team, but the guys sound like a highly motivated set of people :-)!

Check it out!

Philippose
I also install openfoam 1.5v in my PC,But I find a problem that when I type the command "parafoam"the terminal will remind me of the command can not be found , Could you tell me what's going wrong?thank you~~

Last edited by wyldckat; May 24, 2014 at 03:44. Reason: removed font formatting, because the font was too big
uuivw is offline   Reply With Quote

Old   May 24, 2014, 03:49
Default
  #16
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Liaoning,
Quote:
Originally Posted by uuivw View Post
I also install openfoam 1.5v in my PC,But I find a problem that when I type the command "parafoam"the terminal will remind me of the command can not be found , Could you tell me what's going wrong?thank you~~
That project is seriously outdated now, as it was released in 2009 as a proof-of-concept and was not updated since then. But from what I can remember, that project was implemented in a way that it was meant for the user to interact by using the "Designer" interface and not as much with the command line. In other words, ParaView was to be launched from that "Designer" interface and not from the command line.

You can find several other (unofficial) builds of OpenFOAM for Windows here: http://openfoamwiki.net/index.php/Windows - they are more recent and should provide a bit more support than the old oldest one.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 16, 2015, 04:24
Default
  #17
New Member
 
Lubos Pirkl
Join Date: Jun 2010
Posts: 2
Rep Power: 0
Lubos is on a distinguished road
Hi,

another option to get full version of OpenFOAM in Windows is described here:

http://www.cfdsupport.com/openfoam-for-windows.html

all the project was natively compiled in Windows, no cross-compilation in Linux.

Lubos Pirkl
Lubos is offline   Reply With Quote

Old   February 5, 2018, 07:35
Default Installing openFoam in Windows
  #18
New Member
 
SM Sudharsan
Join Date: Feb 2018
Posts: 1
Rep Power: 0
sussudharsan is on a distinguished road
Unrestricted
Guide for Installing OpenFoam in Windows
S.M.Sudharsan
Installing OpenFoam in windows could be done in three major steps, which are:
1. Enabling “Hardware Assisted Virtualization”
2. Installing “blueCFD-core” for windows
3. Installing “OpenFoam” for windows
While there are separate tutorials and videos available on installation of these software, there is no single documentation compiling all the steps and this document is aimed at achieving this.
1. Enabling “Hardware Assisted Virtualization”
Virtualization solutions enable you to run multiple Virtual Machines (VM) on a single PC. In most of the windows systems, it will be disabled by default. For proceeding further with the installation this needs to be turned on. To check the status of it, install “Microsoft Hardware-Assisted Virtualization Detection Tool” .
Installing and running “Microsoft Hardware-Assisted Virtualization Detection Tool”:
 Download the application (havdetectiontool.exe) to your local machine. There is only one installer for both 32 bit and 64 bit machines.
 Double click on the application and follow the prompts. Note: The tool requires administrator privileges.
 Based on the condition of the virtualization setting one of the below output will be shown:
Unrestricted
If Virtualization is turned off in your system, go into Bios settings and turn it on before further proceeding with the installation.
Enabling virtualization extensions in BIOS:
 Reboot the computer and open the system's BIOS menu. This can usually be done by pressing the delete key, the F1 key or Alt and F4 keys depending on the system.
 Select Restore Defaults or Restore Optimized Defaults, and then select Save & Exit.
 Power off the machine and disconnect the power supply.
 Power on the machine and open the BIOS (as per Step 1).
 Open the Processor submenu, the processor settings menu may be hidden in the Chipset, Advanced CPU Configuration or Northbridge.
 Enable Intel Virtualization Technology (also known as Intel VT) or AMD-V depending on the brand of the processor. The virtualization extensions may be labeled Virtualization Extensions, Vanderpool or various other names depending on the OEM and system BIOS.
 Enable Intel VTd or AMD IOMMU, if the options are available. Intel VTd and AMD IOMMU are used for PCI pass-through.
 Select Save & Exit.
 Power off the machine and disconnect the power supply.
 Run cat /proc/cpuinfo | grep vmx svm. If the command outputs, the virtualization extensions are now enabled. If there is no output your system may not have the virtualization extensions or the correct BIOS setting enabled.
For further details on Bios part look here.
Unrestricted
2. Installing “blueCFD-core” for windows
blueCFD is an open source project with the primary objective being to bring OpenFoam technology to run natively in Windows operating systems. blueCFD allows us to compile from source code and install OpenFoam technology on Microsoft Windows as done in Linux distributions. This is achieved by relying on MSys2 as a development infrastructure.
Installation procedure:
The software could be downloaded from here.
The above link provides the .exe file of the software. Once it is downloaded, run it and agree to the terms and conditions of the software. Following which you will be asked for installation location, go with the default folder or change if you wish. After this, do not change any default settings and continue with the installation. This package installs:
 blueCFD-core 2017-1
 ParaView 5.4.1
 MS-MPI 7.1
These were the latest versions when this doc was created. Click here for downloading future versions.
A brief video is also available showing the installation procedure of the software, look at it for any further clarifications.
With this, the installation is done and now your system is ready to run OpenFoam simulations, and view/ edit them as in Linux systems.
The blueCFD acts like a virtual Linux terminal and the commands used in Linux could be directly used here. ParaView helps with the viewing and post-processing stages.
3. Installing “OpenFoam” for windows
Last but not the least, we need to install OpenFoam executable for windows which is available here.
Once it is downloaded follow the instructions given below to install:
 Run the OpenFoam-installer executable. It will install Docker (including VirtualBox, Git), the precompiled v1712 OpenFoam executable image and creates the working environment. (Please note that this process can take several minutes depending on your system memory.)
Unrestricted
 When the installation is complete, please click on the "OF_Create_Env” shortcut on the Desktop. A shell will open and close automatically, completing setup of the user working environment. This step is mandatory only on the first occasion of OpenFoam for Windows installation.
Now the OpenFoam along with other software are successfully installed and is ready to use. To run/create a simulation, open blueCFD-core terminal and start typing in the code. The visualization could be done in ParaView. The software now works as if it is installed in a Linux environment, so the same set of codes could be used and the tutorials available for Linux could be used for learning. Examples and tutorials could be found inside the blueCFD folder.
For further help on installation of OpenFoam, click here.
Useful Links and References:
1. https://docs-old.fedoraproject.org/e...s_in_BIOS.html
2. http://bluecfd.github.io/Core/About/
3. https://www.microsoft.com/en-in/down...ls.aspx?id=592
4. https://www.openfoam.com/download/tx...adme_v1712.txt
5. https://www.openfoam.com/download/in...ry-windows.php
sussudharsan is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
unable to install openfoam 1.7 using apt-get maazhmd OpenFOAM Installation 7 July 24, 2011 12:18
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 7 January 19, 2010 16:39


All times are GMT -4. The time now is 08:03.