swak4Foam - mrklein/openfoam-os-x GitHub Wiki
Though personally I do not use swak4Foam (for a number of reasons), from time to time people ask questions if my patches are compatible with it. Usually the question is asked by a person, who is on early stages of OpenFOAM(R) installation but somehow believe, that without swak4Foam their experience with OpenFOAM(R) will not be quite satisfying. So I have decided to compile the software and the experience was not so painful.
To compile swak4Foam in addition to usual third-party packages you need Mercurial and Bison 2.7. Both can be installed with Homebrew:
$ brew tap homebrew/versions
$ brew install mercurial bison27
After installation of third-party packages one can proceed with:
$ cd $WM_PROJECT_INST_DIR
$ hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam
$ cd swak4Foam
$ curl -L https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/swak4Foam-r2742.patch > swak4Foam-r2742.patch
$ hg update 2742
$ hg import --no-commit swak4Foam-r2742.patch
$ ln -s swakConfiguration.automatic swakConfiguration
$ ./Allwmake > log.Allwmake.swak4Foam 2>&1
With the first command you change current folder to location of OpenFOAM installation (usually it is $HOME/OpenFOAM), then you...
- download sources from repository
- change folder to
swak4Foam
- download patch
- revert state of the source tree to revision 2742 (moment the patch was created)
- apply patch
- create configuration file
- compile software.
I have tested the process with OpenFOAM 3.0.0 and 3.0.x. I did not test swak4Foam itself, yet funkySetFields
seems to be working.