CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation on Windows, Mac and other Unsupported Platforms (http://www.cfd-online.com/Forums/openfoam-installation-windows-mac/)
-   -   How to install OpenFOAM under Windows? (http://www.cfd-online.com/Forums/openfoam-installation-windows-mac/65175-how-install-openfoam-under-windows.html)

lzgwhy June 7, 2009 06:40

How to install OpenFOAM under Windows?
 
How to install OpenFOAM under Windows?

sega June 7, 2009 10:03

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...)

philippose June 7, 2009 16:57

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

lzgwhy June 7, 2009 22:22

Thank you!
 
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!

derjames June 11, 2009 09:28

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

padmanathan August 4, 2009 01:55

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

liuhuafei August 25, 2009 02:11

postprocessing error

wyldckat September 22, 2009 08:41

foamToVTK in Windows...
 
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

jcraparo October 26, 2009 17:50

Help with paraview
 
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.

wyldckat October 27, 2009 06:47

How to open cases in Paraview under Windows
 
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

philippose October 27, 2009 08:10

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

jcraparo October 27, 2009 14:04

Many thanks
 
Thanks Bruno and Philippose. Your suggestions did the trick.

Best regards,

Joe



127057 September 15, 2010 03:55

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?

wyldckat September 15, 2010 06:38

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

uuivw May 22, 2014 09:29

Quote:

Originally Posted by philippose (Post 218510)
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~~

wyldckat May 24, 2014 02:49

Greetings Liaoning,
Quote:

Originally Posted by uuivw (Post 493599)
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


All times are GMT -4. The time now is 14:37.