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

[foam-extend.org] FOAM on Windows, Linux and Mac

Register Blogs Community New Posts Updated Threads Search

Like Tree22Likes
  • 16 Post By hjasak
  • 1 Post By ngj
  • 3 Post By hjasak
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2015, 13:48
Default FOAM on Windows, Linux and Mac
  #1
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Dear All,

A joint development effort between Alstom Power and Wikki has resulted in a unified source tree for the upcoming foam-extend-3.2 release. The idea is to produce a unified development line that compiles on all platforms without changes, renaming, hacking, patches or short-cuts.

This has been achieved by introducing porting changes in the code, creating a native interface for the Windows OS in OSspecific/MSWindows and creating a proper build environment for all platforms.

The next release is now under testing, and under command of the Release Manager (Francois, thank you!). We are keen to have the source build across all platforms and receive reports on success or failure.

With the release, we will provide the usual rpm linux packages, and Mac OS X and Windows source and binary releases.

On Windows, we use MinGW, gcc-4.8.2 compiler and wmake build system, consistent with all other platforms. Source code support is complete and the release works fine in parallel.

Some basic info/instructions:
* Linux builds natively, as before. Source etc/bashrc and execute Allwmake.firstinstall
* Mac OS X: please switch to scotch600 in etc/bashrc. Source etc/bashrc and execute Allwmake.firstinstall
* Windows: prepare build environment by following README.txt in doc/buildInstructions/Windows. Once this is in place, source etc/bashrc.mingw and execute Allwmake.mingw

We have also tested binary release of the Windows compilation (libs and exe only), which works fine.

If you wish to try building the source RIGHT NOW, please check out the source:

git clone --branch nextRelease git://git.code.sf.net/p/openfoam-extend/foam-extend-3.1

and report on your experience. If you have suggestions for changes or how to facilitate the build, please drop me a line.

Hrvoje Jasak, Wikki
philippose, ziad, ngj and 13 others like this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 27, 2015, 09:03
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good morning Hrvoje,

Thank you very much for this set of good news. I have not been close to a Windows computer yet, but I will hopefully be able to give it a swing in a week or so.

I have one question with respect to the compatibility with Windows. I have noted that several files (and a few directories) have been attached the string "Template", e.g. Vector.H (in foam-extend-3.1) is now VectorTemplate.H (in foam-extend-3.2). Furthermore, I have found that "Time.[H,C]" has been renamed to "foamTime.[H,C]".

Is this revised naming scheme adopted, because of problems with the lack of case-sensitivity in Windows?

Thank you for your time,

Niels

P.S. I have succeeded to compile waves2Foam on foam-extend-3.2 with only minor efforts for crossVersionCompatibility. It has been surprisingly effortless, when one considers that foam-extend is now available on multiple operating systems.
elvis likes this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   August 30, 2015, 17:31
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
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
Quote:
Originally Posted by ngj View Post
Is this revised naming scheme adopted, because of problems with the lack of case-sensitivity in Windows?
Quick answer: Pretty much due to Windows' limitation with file name case-sensitivity, but this also has some advantage for Mac OS X users, because the default file system format is also case-preserving as it is in Windows.
It's what they (Microsoft/Apple) call a "user friendly feature"... given that a lot of people don't care much about the file names and can easily end up with two files that only differ in the letter case, resulting in some bad user experiences...

edit: Sorry, don't what to give the idea of answering for Hrvoje, it's just that I'm very familiar with this topic and have been briefly monitoring from the outside how the port is being handled in foam-extend .

Last edited by wyldckat; August 30, 2015 at 17:34. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   August 30, 2015, 18:11
Default
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Correct Bruno: we have now removed all name clashes, both within the same library or in cross-library linking.

We will re-do the lnInclude next and I am still reconsidering the move to hpp/cpp file naming. Would anyone be interested in building FOAM in Visual Studio, now that it is available for free?

Hrv
ngj, sharonyue and nnunn like this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 30, 2015, 18:36
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
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
Regarding name clashes, I suggest you keep a look out for "src/foam/primitives/char/char.H", because I had issues with the system's "char.h" in the past

Quote:
Originally Posted by hjasak View Post
Would anyone be interested in building FOAM in Visual Studio, now that it is available for free?
It would certainly make debugging a lot easier in Windows... and probably some better binary optimizations... and to be able to build the "PV4FoamReader" plug-in to work with the official ParaView...

But I thought that it required ugly hacks in the source code and increase maintenance issues? Or is the latest MSVC now able to handle such a complex C++ code?
wyldckat is offline   Reply With Quote

Old   August 31, 2015, 05:53
Default
  #6
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17
markusrehm is on a distinguished road
Hi Hrvoje,

the option of compiling OF in Visual Studio is an interesting option.

Markus
markusrehm is offline   Reply With Quote

Old   January 21, 2016, 22:46
Default mac os installation?
  #7
Member
 
Francisco T
Join Date: Nov 2011
Location: Melbourne, Australia
Posts: 64
Blog Entries: 1
Rep Power: 15
frantov is on a distinguished road
Hello
Im trying to install Immersed Boundary on MacOsX

I didn't understand what were the specific instructions for Mac.

So far I did

mkdir -p $FOAM_RUN
cd $FOAM_RUN/..
git clone git@github.com:wyldckat/ImmersedBoundary.git ImmersedBoundary
cd ImmersedBoundary
git checkout fe31
cd src
./Allwmake

and Im getting this error:


make: *** [Make/darwinIntel64Gcc46DPOpt/immersedBoundaryEpsilonWallFunctionFvPatchScalarFi eld.o] Error 1
make: *** [Make/darwinIntel64Gcc46DPOpt/immersedBoundaryOmegaWallFunctionFvPatchScalarFiel d.o] Error 1
make: *** [Make/darwinIntel64Gcc46DPOpt/immersedBoundaryWallFunctionFvPatchFields.o] Error 1

Any clues?

Thanks
frantov is offline   Reply With Quote

Old   January 24, 2016, 07:54
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
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
Quote:
Originally Posted by frantov View Post
Im trying to install Immersed Boundary on MacOsX
Quick questions:
Which foam-extend version are you using? Because if you are using foam-extend 3.2, then you do not need to use the code that is meant for foam-extend 3.1.

The other question is this: If you are using foam-extend 3.1, then those error messages appear only at the end; therefore, what are the first error messages?
To get a complete log of the build procedure, run:
Code:
./Allwmake > log.make 2>&1
gzip < log.make > log.make.gz
Then you can attach the file "log.make.gz" to your next post.
ordinary and Ramzy1990 like this.
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
openfoam on mac os x, openfoam on windows


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
Caelus: fork of OpenFOAM cnsidero OpenFOAM Announcements from Other Sources 7 November 11, 2014 23:55
[General] Mac Os x system can't connect to X server when using ssh to access Linux system Ivy Zhou ParaView 2 September 30, 2013 11:21
Preference: OF 2.1.1 on Mac or Linux? BCD OpenFOAM Installation 4 September 17, 2012 10:31
Alternatives to Windows and Linux? CAVT Hardware 5 September 26, 2010 16:28
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 16:49


All times are GMT -4. The time now is 16:47.