Patched sources for the current version are also available that include fixes for all submitted bugs. The sources can be obtained using the Git open source version control system that is commonly available on Linux distributions. Note that this version is sources only so will require full compilation.
The OpenFOAM distribution consists of OpenFOAM software and third-party software. The 1.6.x repository only contains the OpenFOAM software, so the third-party software must first be obtained separately from the 1.6 Sourceforge repository.
As with the Sourceforge binary installation, we recommend that OpenFOAM is installed in a user account to make administration easier. The standard installation directory is the $HOME/OpenFOAM directory of that user account. To install the third party source files for use with the 1.6.x repository version of OpenFOAM:
- create the $HOME/OpenFOAM directory if necessary;
- download the ThirdParty-1.6.General.gtgz source code file from Sourceforge;
- unpack the file in the $HOME/OpenFOAM directory and rename the
unpacked directory ThirdParty-1.6.x tar xzf ThirdParty-1.6.General.gtgz
mv ThirdParty-1.6 ThirdParty-1.6.x
The bug-fix/patched version repository is available at http://repo.or.cz/r/OpenFOAM-1.6.x.git. From the OpenFOAM installation root directory (e.g. $HOME/OpenFOAM), the repository can be obtained using the command from the
This will create an OpenFOAM-1.6.x directory that the user can subsequently update to the latest published copy using
Once the source code is downloaded, the user should ensure that the OpenFOAM environment is sourced (see the ”Installation” section of the README file). After sourcing the OpenFOAM environment the code can be built by issuing the commands: