CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation on Windows, Mac and other Unsupported Platforms

How to install OpenFOAM under Windows?

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

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

Old   June 7, 2009, 10:03
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
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...)
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   June 7, 2009, 16:57
Default
  #3
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
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, 22:22
Smile Thank you!
  #4
Member
 
Join Date: Jun 2009
Posts: 34
Rep Power: 8
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, 09:28
Default
  #5
New Member
 
James
Join Date: Mar 2009
Location: Sheffield, UK
Posts: 9
Rep Power: 8
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, 01:55
Default
  #6
New Member
 
padhu
Join Date: Jun 2009
Location: Bangalore, India
Posts: 27
Rep Power: 8
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, 02:11
Default
  #7
New Member
 
Liu Huafei
Join Date: Mar 2009
Location: Shanghai, China
Posts: 20
Rep Power: 8
liuhuafei is on a distinguished road
postprocessing error
liuhuafei is offline   Reply With Quote

Old   September 22, 2009, 08:41
Default foamToVTK in Windows...
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: 530
Rep Power: 16
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, 03: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 05:22. Reason: change my comment
127057 is offline   Reply With Quote

Old   September 15, 2010, 06:38
Default
  #14
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 09:29
Default
  #15
New Member
 
Liaoning
Join Date: May 2014
Posts: 9
Rep Power: 3
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 02:44. Reason: removed font formatting, because the font was too big
uuivw is offline   Reply With Quote

Old   May 24, 2014, 02:49
Default
  #16
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 03: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

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
How to install OpenFoam in Windows XP robert_dekker OpenFOAM Installation 4 October 20, 2010 21:15
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 11:32
Howto install OpenFOAM on mandriva2009qt44 with Qt435 in home directory gzy_1228 OpenFOAM Installation 0 November 15, 2008 15:31
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 04:17.