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

for Windows

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 6, 2009, 10:31
Default for Windows
  #1
Member
 
Rogerio Brito
Join Date: Mar 2009
Location: Brazil
Posts: 98
Rep Power: 6
rogbrito is an unknown quantity at this point
Where do I can find a version to Windows XP 64 bits of OPenFoam?
rogbrito is offline   Reply With Quote

Old   July 6, 2009, 10:47
Default
  #2
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Braunschweig, Niedersachsen, Germany
Posts: 272
Rep Power: 8
henrik is on a distinguished road
Dear rogbrito,

You find details about Windows under point 2.2

http://openfoamwiki.net/index.php/Main_FAQ

Regards, Henrik
henrik is offline   Reply With Quote

Old   July 14, 2009, 11:31
Default Windows port
  #3
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 7
gocarts is on a distinguished road
I've released a source-code patch for OpenFOAM 1.5.x for cross compiling (Linux->Windows) using MinGW, but I've only tried 32bit. The patch should work for 64bit if you can get a 64bit MinGW cross-compiler working.

You can find the patch and compiling instructions at:
http://www.symscape.com/openfoam-1-5-x-on-windows
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   July 14, 2009, 14:28
Default
  #4
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 517
Rep Power: 15
philippose will become famous soon enough
Hello there,

There is a release of OpenFOAM-1.5 which has been compiled natively within Windows itself....

The source code has been ported to windows, and compiled natively using Code::Blocks combined with Mingw32, resulting in executable files and DLLs which have basically the same performance as the Linux equivalent.

As of now, only the 32-bit version exists, but the entire ported source code, along with the Code::Blocks project files are also available for download, and hence, if you set up mingw-w64 on your windows system, you might be able to compile the code for 64-bit operation.

If I remember right, the Parallel functionality has not yet been ported.... but the OpenFOAM Paraview reader has been ported, and works fine...

The link to the OpenFOAM for Windows website is:
http://sourceforge.net/projects/openfoam-mswin/

And the link to the 64-bit version of mingw is:
http://sourceforge.net/projects/mingw-w64/


I have personally used this Windows version for off-the-shelf OpenFOAM simulations using solvers such as icoFoam and simpleFoam, and also created meshes using blockMesh, etc.... and so far, it has performed exactly like the Linux system.

I have also been able to compile (using Code::Blocks), some of my own solvers for OpenFOAM, and things worked out fine.

In addition, there is an interface called "OpenFOAM Designer", which is something like a very simple beta release of a FoamX replacement, programmed in Qt... as of now, this is the main interface which is expected to be used when using the Windows version, though a console can be started from within this program, where you can start solvers manually.

Note #1: I am not a part of this project :-)! Just giving some details based on my experiences with the port :-)!

Note #2: No... I dont get paid for advertising the project on the forum :-)

Note #3: OpenFOAM Designer is very much in the Beta phase, and there is a lot of functionality which needs to be added to it, but... its usable.

Have a nice day!

Philippose
philippose is offline   Reply With Quote

Old   July 20, 2009, 22:45
Default Thanks philippose
  #5
New Member
 
Eslam Reda
Join Date: Jun 2009
Posts: 12
Rep Power: 7
Eslam Reda is on a distinguished road
Thanks philippose so much, your information about openfoam under windows were very helpful.
But when I installed openfoam from the link you mentioned I found that some solvers are "unavailable" like the two phase solver. Do you have any information about this problem?
Thanks again.

Quote:
Originally Posted by philippose View Post
Hello there,

There is a release of OpenFOAM-1.5 which has been compiled natively within Windows itself....

If I remember right, the Parallel functionality has not yet been ported.... but the OpenFOAM Paraview reader has been ported, and works fine...

The link to the OpenFOAM for Windows website is:
http://sourceforge.net/projects/openfoam-mswin/

And the link to the 64-bit version of mingw is:
http://sourceforge.net/projects/mingw-w64/


Philippose
Eslam Reda is offline   Reply With Quote

Old   November 13, 2009, 11:55
Default OpenFOAM 1.6 Windows x64
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,981
Blog Entries: 32
Rep Power: 68
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hello to all,

This is odd, but just yesterday I searched for "OpenFOAM mingw-w64" and I had no hits...

Anyway, Rogerio, I know this is a bit late, but since two days ago, there is a new tutorial on how to cross-compile OpenFOAM 1.6 with mingw-w64, here. Nonetheless, only today did I post the announcement here on the forum.

And by the way, the details about Windows have been updated on the wiki's FAQ

But currently I don't know if the team that is developing openfoam-mswin will adapt these new patches or not.

Best Regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 24, 2010, 00:56
Default
  #7
Member
 
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 6
moh1367 is on a distinguished road
Hi guys!
I have OpenFoam Designer on Vista, My problem is how to compile a new solver or change a default one in it, Is it pssible?

Thanks
moh1367 is offline   Reply With Quote

Old   April 24, 2010, 03:34
Default Implementing a new application in OpenFOAM
  #8
New Member
 
Eslam Reda
Join Date: Jun 2009
Posts: 12
Rep Power: 7
Eslam Reda is on a distinguished road
Dear Moh,
I wish you reach soon to the fact I have reached that OpenFOAM is much better operated on Linux rather than windows. Linux (ubuntu) is so easy to operate and so similar to windows. Anyway, try this link it may be useful to learn how to modify OF solvers.
http://209.85.135.132/search?q=cache...&ct=clnk&gl=eg
Eslam Reda is offline   Reply With Quote

Old   April 24, 2010, 06:11
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,981
Blog Entries: 32
Rep Power: 68
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings moh1367,
Quote:
Originally Posted by moh1367 View Post
I have OpenFoam Designer on Vista, My problem is how to compile a new solver or change a default one in it, Is it pssible?
So you are using the openfoam-mswin project. If you visit the files page in that project (link here) you will find the files that were used to compile that version of OpenFOAM. And by what I know, they've used Code::Blocks + mingw32 to build it.
As for the source code of OpenFOAM Designer, I haven't found it yet. You could try sending a message to the developer.

Additionally, you could try a more active project, if you need a GUI for OpenFOAM, namely Discretizer. I haven't tried it myself, but it looks promising and should work in Windows.

As for building the latest version of OpenFOAM, posts #3 and #6 on this thread have links to tutorials on how to build OpenFOAM 1.6.x and 1.6 in Linux for Windows. Additionally, if you don't want to install any Linux distribution, you could always follow the instructions available in post #6 for building OpenFOAM under Cygwin in Windows, but be advised that it takes about twice as long then in Linux But at least you never leave the Windows environment, and can test it's execution directly!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 24, 2010, 09:35
Default
  #10
Member
 
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 6
moh1367 is on a distinguished road
Dear Eslam and Bruno!
Thank you alot for your responses, I run openFoam on Fedora but in fact this is not my case. I want to run OpanFoam designer for some novices.
I found the solvers on the windows , but they are all in .dll format, now the questoin is , is it possible to change those or make a new one?
If no, wich way do you recommende?

Sincerely
moh1367 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



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