Home - mrklein/openfoam-os-x GitHub Wiki
Generic instructions are as follows:
-
Create disk image with case sensitive file system.
hdiutil create -size 8.3g -type SPARSEBUNDLE -fs HFSX -volname OpenFOAM -fsargs -s OpenFOAM.sparsebundle
-
Mount created disk image into
$HOME/OpenFOAM
hdiutil attach -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle
-
Extract sources in
$HOME/OpenFOAM
(or clone source there if you are building git version) -
Go to $HOME/OpenFOAM/OpenFOAM-<VER> (where <VER> corresponds to selected version)
-
Download patch for selected version
-
Apply patch
git apply OpenFOAM-<VER>.patch
-
Create preferences file
prefs.sh
in$HOME/.OpenFOAM
-
Issue
source etc/bashrc
command to set up environment. -
Increase maximum number of open files (necessary for creation of certain
lnInclude
folders)
ulimit -n 8912
-
Execute
Allwmake
script. -
Wait.
-
Test installation.
-
Add environment setup pieces to your
$HOME/.zprofile
file.