OpenFOAM® Repositories
Getting the latest source code
OpenFOAM can be downloaded from https://develop.openfoam.com/Development/openfoam. This site hosts the repository for the most up-to-date version including the latest developments and bug fixes. The source code can be downloaded as an archive file or pulled using a git service. The web interface provides access to the issue tracker.
For information about previous releases and how the code has evolved please refer to the history page.
Note: the main development repositories are publicly available without creating an account. Register to join the OpenFOAM Community and see additional Community repositories.
Download/update the code
- Go to https://develop.openfoam.com and navigate to the public projects
- Select the download button to the right of the source address window to download a code snapshot, or
- Clone the repository - only required once
- using ssh - requires user to add their public ssh keys to their account:
git clone git@develop.openfoam.com:Development/openfoam.git
- or https: git clone https://develop.openfoam.com/Development/openfoam.git
- using ssh - requires user to add their public ssh keys to their account:
- Since OpenFOAM-v1712 community contributions may included using the
git submodule system. To initialise the submodules located in the
$WM_PROJECT_DIR/modules directory: git submodule init
Updating the sources
The repositories are updated regularly to include bug fixes and new features. Retrieve the updates using:
Compile the source
- Download ThirdParty-v2012.tgz (md5sum: 89171ed9a03505cd42f3b17ac40fa8b1)
- Rename the directory mv ThirdParty-v2012 ThirdParty-common
- Compile the source according to the building the code instructions