Installation notes: OpenFOAM 2.3.x (git repo) on OSX 10.9
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 Code:
$ port select --summary 2) Create a volume and mount it: Code:
$ hdiutil create -size 8.3g -type SPARSEBUNDLE -fs HFSX -volname OpenFOAM -fsargs -s OpenFOAM.sparsebundle 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 6) Install Code:
$ source etc/bashrc && WM_NCOMPPROCS=$(sysctl -n hw.ncpu) 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 Thats it. All steps were taken from bash history file after compilation and testing. Hope this helps! Peter |
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 |
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 |
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 |
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 |
Hello Peter,
Quote:
Code:
hdiutil attach -readwrite -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle Thanks again. Dave |
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. |
This Process Ruined Python in Terminal
This ones doesn't work on Yosemite or Mavericks. After following that step by step, it ruined my python totally.:eek::eek::eek::eek:
|
All times are GMT -4. The time now is 01:28. |