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

Mac-patch for OpenFOAM 2.4

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

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Display Modes
Old   May 25, 2015, 16:35
Default Mac-patch for OpenFOAM 2.4
  #1
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi!

Attached you'll find the patch that makes OF 2.4 (I used the git-repository, but the source tarball should work too) compile on a Mac.

Instructions at http://openfoamwiki.net/index.php/In...OpenFOAM_2.3.x should work.

The patch is almost the same as for 2.3. Major difference is that the stack-trace is now delegated to lldb (which does a better job). The old stack-trace is done in addition

Bernhard

OpenFOAM-2.4.x-Mac.patch
wyldckat likes 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

Old   June 4, 2015, 05:03
Default Installation OF 2.4 on Mac OS X
  #2
New Member
 
Willem
Join Date: Oct 2014
Location: Belgium
Posts: 4
Rep Power: 2
CFX_CFD is on a distinguished road
Hi!

I'm new to OpenFOAM and working with a terminal. I want to install the latest version of OF (2.4) on my Mac OS X Yosemite version 10.10.3. I followed the instructions you provided on http://openfoamwiki.net/index.php/In...OpenFOAM_2.3.x but now applied on the 2.4.x version.

I installed all the necessary ports as you can see below
Code:
 $ port select --summary
Name     Selected               Options
====     ========               =======
db       db48                   db48 none
gcc      mp-gcc48               mp-gcc48 mp-gcc49 none
llvm     mp-llvm-3.5            mp-llvm-3.5 none
mpi      openmpi-gcc48-fortran  openmpi-gcc48-fortran openmpi-mp-fortran none
python   python27               python26-apple python27 python27-apple none
python2  none                   python26-apple python27 python27-apple none
After going through all the instructions, I tried to run the blockMesh command in the terminal while being in the OpenFOAM/OpenFOAM-2.4.x/tutorials/incompressible/icoFoam/cavity directory but I was unsuccessful.

I got the following message:
Code:
$ blockMesh
-bash: blockMesh: command not found
I checked the other threads for tips, reinstalled all the necessary ports, tried to install other versions as well but I was not able to install OF on my computer. Could you please help me figuring out what went wrong in the installation of OF?
Thanks in advance!
CFX_CFD is offline   Reply With Quote

Old   June 22, 2015, 16:15
Default
  #3
New Member
 
Patryk Wójtowicz
Join Date: Jun 2009
Location: Wroclaw
Posts: 8
Rep Power: 8
patrick is on a distinguished road
I am running 10.10.4 and also failed to install both 2.3 and 2.4 version. With previous system version (10.10.2 I think) installation of 2.3 went nice and easy this time I get plenty of errors when building.

Anyone succeeded installing OF 2.4 on Yosemite 10.10.4?
patrick is offline   Reply With Quote

Old   June 22, 2015, 17:24
Default
  #4
New Member
 
Patryk Wójtowicz
Join Date: Jun 2009
Location: Wroclaw
Posts: 8
Rep Power: 8
patrick is on a distinguished road
Tried again with OF 2.4.0 and instructions (they worked on previous OS X version) from this website. Build failed again...

My ports config:

Code:
Name     Selected               Options
====     ========               =======
db       db48                   db48 none
gcc      mp-gcc48               mp-gcc48 mp-gcc49 none
llvm     mp-llvm-3.5            mp-llvm-3.5 none
mpi      openmpi-gcc48-fortran  openmpi-gcc48-fortran openmpi-mp-fortran none
pip      none                   pip27 none
python   python27               python26-apple python27 python27-apple none
python2  none                   python26-apple python27 python27-apple none
Log already begins with errors:
Code:
gcc-mp-4.8 -m64 -fsignaling-nans  -ftrapping-math -fdiagnostics-color=always  -Wall -O2   -fPIC -Ddarwin dirToString.c -o /Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/wmake/platforms/darwinIntel64Gcc48/dirToString
gcc-mp-4.8: error: unrecognized command line option '-fdiagnostics-color=always'
make: *** [/Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/wmake/platforms/darwinIntel64Gcc48/dirToString] Error 1
no ThirdParty sources found - skipping
+ wmakePrintBuild -check
no git description found
+ /bin/rm -f 'OpenFOAM/Make/*/global.?'
+ wmakeLnInclude OpenFOAM
+ wmakeLnInclude OSspecific/POSIX
+ Pstream/Allwmake
+ wmake libso dummy
wmakeLnInclude: linking include files to ./lnInclude
/bin/sh: /Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/wmake/platforms/darwinIntel64Gcc48/wmkdep: No such file or directory
/bin/sh: /Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/wmake/platforms/darwinIntel64Gcc48/wmkdep: No such file or directory
/bin/sh: /Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/wmake/platforms/darwinIntel64Gcc48/wmkdep: No such file or directory
SOURCE=UIPread.C ;  g++-mp-4.8 -m64 -fsignaling-nans  -ftrapping-math -fdiagnostics-color=always -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2  -DNoRepository -ftemplate-depth-100  -IlnInclude -I. -I/Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc48DPOpt/UIPread.o
SOURCE=UOPwrite.C ;  g++-mp-4.8 -m64 -fsignaling-nans  -ftrapping-math -fdiagnostics-color=always -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2  -DNoRepository -ftemplate-depth-100  -IlnInclude -I. -I/Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc48DPOpt/UOPwrite.o
SOURCE=UPstream.C ;  g++-mp-4.8 -m64 -fsignaling-nans  -ftrapping-math -fdiagnostics-color=always -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2  -DNoRepository -ftemplate-depth-100  -IlnInclude -I. -I/Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc48DPOpt/UPstream.o
g++-mp-4.8: error: unrecognized command line option '-fdiagnostics-color=always'
g++-mp-4.8: error: unrecognized command line option '-fdiagnostics-color=always'
g++-mp-4.8: error: unrecognized command line option '-fdiagnostics-color=always'
make: *** [Make/darwinIntel64Gcc48DPOpt/UIPread.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Make/darwinIntel64Gcc48DPOpt/UPstream.o] Error 1
make: *** [Make/darwinIntel64Gcc48DPOpt/UOPwrite.o] Error 1
+ case "$WM_MPLIB" in
+ set +x
Attached Files
File Type: zip OF_2_4_0.log.zip (39.3 KB, 0 views)
patrick 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
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 37 June 9, 2015 09:35
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 108 June 9, 2015 08:13
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 02:01
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 18:11.