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

[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X

Register Blogs Community New Posts Updated Threads Search

Like Tree20Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 7, 2013, 18:57
Default Patches to compile OpenFOAM 2.2 on Mac OS X
  #1
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Those of you using OpenSource for their CFD-needs, working with a Unix-like operating system but who were tempted by the slick hardware to the dubious corporation with the fruit in the logo may be interested in these patches for the latest version of OpenFOAM that allow compiling it on Mac OS X.

Those who say "How dare you use this fine OpenSource-program on these evil machines" are of course right, I feel ashamed and mumble "But they look so good, they work so fine and as long as it is not in the AppStore Apple will not profit from this"

Anyway. To the point. The patch has the same functionality as the last one for 2.1 posted here:
http://www.cfd-online.com/Forums/ope...tml#post412411
It is installed in the same way as the 2.1-patch described here: http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac

One note: the patch is supposed to create some symbolic links in wmake/rules but instead only creates files. So replace the file darwinIntel64Gcc4X (X from {2..8}) with a symbolic link to darwinIntel64Gcc

For thirdparty-software I rely on MacPorts. For the compilation I used from MacPorts

- OpenMPI
- gcc46 (gcc47 doesn't work for me, but your milage may vary)
- boost and cgal (these are optional. If found they will be used for surfaceExtractFeatures). Usage of these is new for this patch
- ccache (optional but highly recomended)

Contents of my ../site/2.2.x/prefs.sh are:
Code:
export WM_COMPILER=Gcc46
export WM_SCHEDULER=ccache
Feel free to experiment with other compilers

The only thing used/compiled from the original OpenFOAM-Thirdparty-software currently is scotch/ptscotch (as MacPorts uses an older version here)

Have fun and put your MacBooks into brown paper bags when you go outside so that the OpenSource-police won't spot you

ThirdParty-2.2_Mac-20130307.patchOpenFOAM-2.2.x_Mac-20130307.patch
egp, norman1981, wyldckat and 8 others like this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

 


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
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 13:55
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 19:00
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36


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