OpenFOAM® Repositories

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
  • 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:

git pull
To update the additional community repositories, issue the command:

git submodule update

Compile the source
  • Download ThirdParty-v1912.tgz (md5sum: 5ce13fbd8c10e7300c22005aeeb4fbbe)
  • Rename the directory

    mv ThirdParty-v1912 ThirdParty-common
  • Compile the source according to the building the code instructions