|
[Sponsors] |
[OpenFOAM.org] Installation notes: OpenFOAM 2.3.x (git repo) on OSX 10.9 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 13, 2015, 04:32 |
Installation notes: OpenFOAM 2.3.x (git repo) on OSX 10.9
|
#1 |
Member
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11 |
Here are notes on installing OpenFOAM 2.3.x on OSX 10.9 with macports for dependencies.
So far, no errors have been noted. foamyHexMesh and snappyHexMesh work as normal (some have noted that this is not the case when compiling with gcc48, but I have not seen those issues). No libscotch erros have been noted (a problem sometimes encountered with the "homebrew" install method). Here are the steps taken for successful compile: 1) Install Dependencies: Code:
sudo port install gcc48 sudo port select --set gcc mp-gcc48 sudo port install openmpi-gcc48 sudo port select --set mpi openmpi-gcc48-fortran sudo port install boost +openmpi sudo port install cgal sudo port install ccache sudo port install flex sudo port install scotch -mpich +gcc48 +openmpi sudo port install metis +gcc48 # for completeness sudo port select --set llvm mp-llvm-3.5 sudo port select --set python python27 sudo port select --set db db48 Code:
$ port select --summary Name Selected Options ==== ======== ======= db db48 db48 none gcc mp-gcc48 mp-gcc48 none llvm mp-llvm-3.5 mp-llvm-3.5 none mpi openmpi-gcc48-fortran openmpi-gcc48-fortran none python python27 python25-apple python26-apple python27 python27-apple none 2) Create a volume and mount it: Code:
$ hdiutil create -size 8.3g -type SPARSEBUNDLE -fs HFSX -volname OpenFOAM -fsargs -s OpenFOAM.sparsebundle $ mkdir -p OpenFOAM $ hdiutil attach -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle $ cd OpenFOAM $ git clone https://github.com/OpenFOAM/OpenFOAM-2.3.x $ cd OpenFOAM-2.3.x 3) Get the patch here: http://sourceforge.net/p/openfoam-ex....3.x-Mac.patch Or from here: https://bitbucket.org/peterjvonk/mac...am-2.3.x-patch Download it and place it in the OpenFOAM-2.3.x directory. 4) Apply the patch: Code:
$ patch -p1<OpenFOAM-2.3.x-Mac.patch Code:
$ echo "WM_CC=mpicc" >> /path/to/OpenFOAM-2.3.x/etc/bashrc $ echo "WM_CXX=mpicxx" >> /path/to/OpenFOAM-2.3.x/etc/bashrc 6) Install Code:
$ source etc/bashrc && WM_NCOMPPROCS=$(sysctl -n hw.ncpu) $ ./Allwmake > log.Allwmake 2>&1 Code:
"Proper OpenMPI not installed. Either do 'port install openmpi-mp' or 'port install openmpi-default'" It might also complain about the ulimit, ignore this as well. Don't run as sudo - the ulimit is fine as is. 7) Update your bash profile to load the OpenFOAM bashrc file by adding: Code:
# # openfoam if [ -f $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc ]; then . $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc fi Thats it. All steps were taken from bash history file after compilation and testing. Hope this helps! Peter Last edited by opedrofunk; February 17, 2015 at 15:25. |
|
February 14, 2015, 13:00 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Peter,
Many thanks for providing these instructions! I personally don't own a Mac, but I usually come around asking those who do to also write such instructions on the wiki Right now, I've created the page for this particular version OpenFOAM 2.3.x: http://openfoamwiki.net/index.php/In...OpenFOAM_2.3.x - and added the main links for it. If you feel like it, feel free to also write your instructions on this wiki page! Although do keep in mind the license that the wiki uses by default: Quote:
Bruno
__________________
|
||
February 16, 2015, 14:59 |
|
#3 |
Member
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11 |
All,
Instructions and build notes may also be found on the wiki, here: http://openfoamwiki.net/index.php/In...tion_and_Notes Hope this will be of use! Peter |
|
February 17, 2015, 13:59 |
|
#4 | ||
New Member
Cheewarak R.
Join Date: Feb 2015
Posts: 1
Rep Power: 0 |
Hi opedrofunk,
Quote:
Follow your wiki page, I've tried to get patch file from your propose URL (Topic 2.3) as bellow link: Quote:
Do you have another link to get it? Thank you, x |
|||
February 17, 2015, 15:19 |
|
#5 |
Member
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11 |
Here's a copy of the patch I used:
https://bitbucket.org/peterjvonk/mac...am-2.3.x-patch The wiki will be subsequently updated. Cheers, Peter |
|
March 18, 2015, 07:04 |
|
#6 | |
New Member
David Graham
Join Date: Oct 2014
Posts: 1
Rep Power: 0 |
Hello Peter,
Quote:
Code:
hdiutil attach -readwrite -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle Thanks again. Dave |
||
May 1, 2015, 19:05 |
|
#7 | |
New Member
duan
Join Date: Apr 2014
Posts: 6
Rep Power: 12 |
I followed the notes to install of 2.3.x on OS X 10.10.
Most solvers work fine, i.e icoFoam, However the interFoam not. In folder platforms/ darwinIntel64GccDPOpt/bin/ the interFoam do not exist. Then I execute ./Allwclean and ./Allwmake to rebuild the interFoam in the solvers/multiphase/interFoam folder. It shows 26 warnings but no error. Finally when I run the dam break tutorial case with interFoam, I get the error: Quote:
And any notes to install the Thirdparty-2.3.x will be appreciated. |
||
July 1, 2015, 14:51 |
This Process Ruined Python in Terminal
|
#8 |
New Member
Join Date: Jun 2015
Posts: 3
Rep Power: 11 |
This ones doesn't work on Yosemite or Mavericks. After following that step by step, it ruined my python totally.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFoam installation V6 on opensuse leap 15 | sjohn2 | OpenFOAM Installation | 20 | February 21, 2020 20:08 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |