Note: This repository is in constant development, therefore these instructions need to be revised more often than with the stable and bug fix versions.

2 About version 7

Starting with OpenFOAM 6, a single version number is used for the whole lifetime of said version. This keeps things a bit simpler from the perspective of bug fixes are already available here, along with periodic updates of the Deb packages for it.

So in essence, the versions 6 and newer incentivize one to stay up-to-date as possible to OpenFOAM's latest stable release bug fixes. This enables the following capabilities:

Higher probability of having bugs fixed.

When a bug is fixed, it's just a matter of updating the local code repository.

When reporting a bug, this is the version that is used as a reference. More specifically, the commit hash is used for keeping track of where in time is your code snapshot (for more, read the chapter Installing from source code).

Makes it easier to learn how one can keep track of his/her own changes to the OpenFOAM source code.

When it comes to ParaView, it's possible to avoid the need to build it from source code. If your Linux Distribution provides ParaView 3.12.0 or newer, you don't need to build ParaView from source code. Simply run:

paraFoam -builtin

and it will open the case in ParaView.

If the previous command worked, you can add the following alias command in your ~/.bashrc file:

aliasparaFoam='paraFoam -builtin'

In case you have an old Linux Distribution and still don't want to build ParaView from source code, get the latest binary version for Linux from ParaView's official website. Then add to your ~/.bashrc file the following line (adapt accordingly):

exportPATH=$HOME/Downloads/ParaView-5.4.1/bin:$PATH

4 Steps for updating

In the bug reports #1941 and #2091, a new (relatively) easy way to update your development build to the latest code can be done by following the next steps, although keep in mind that these steps try to catch all possible scenarios:

Start a new terminal and activate the respective OpenFOAM shell environment.

Pull the latest changes for both repositories, by running the following commands: