Patched versions of the
openfoam9 pack have been released for the following versions of Ubuntu Linux, 64 bit:
- 18.04 LTS, codename
- 20.04 LTS, codename
- 21.04, codename
- 21.10, codename
impish(since patch release v9.20211122)
See the Download v9 | Ubuntu page for installation and upgrade instructions.
The packs can be installed or upgraded on Windows 10 and have been used to update the installations for other Linux and macOS platforms that use Docker to provide a self-contained environment, see Download v9 | Linux and Download v9 | macOS.
The OpenFOAM Foundation maintains two public repositories of source code of OpenFOAM:
- The development line of OpenFOAM (
OpenFOAM-dev), packaged weekly as
openfoam-dev, which includes major code changes that can break backward compatibility.
- The version-release source repository for the latest major version release — currently
OpenFOAM-9— that incorporates latest code fixes without breaking backward compatibility.
openfoam9 packs include the source code of OpenFOAM. Each pack has a subversion number represented by the packaging date in
YYYYMMDD format. For example, a user can list the subversions of the
openfoam9 packs by the following command:
apt-cache policy openfoam9
This writes text, e.g. for the initial release and first patched versions of OpenFOAM-9:
openfoam9: Installed: 20211007 Candidate: 20211122 Version table: 20211122 500 500 http://dl.openfoam.org/ubuntu focal/main amd64 Packages *** 20211007 500 500 http://dl.openfoam.org/ubuntu focal/main amd64 Packages 100 /var/lib/dpkg/status 20210903 500 500 http://dl.openfoam.org/ubuntu focal/main amd64 Packages 20210719 500 500 http://dl.openfoam.org/ubuntu focal/main amd64 Packages
Source Code of a Subversion
OpenFOAM-9 repository is tagged with the subversion number so that users can reference the source code corresponding to a particular pack exactly. Using the tag, the corresponding source code can be obtained either as a
tar.gz archive or using Git.
The patched versions can be viewed in a browser at http://dl.openfoam.org/source with links to download the archived sources. For example, to download the patch version
20211007, the user can click the link labelled
9.20211007. After downloading and extracting the archive, it is recommended to be renamed without the subversion number. From the command line the download, extraction and renaming can be done by:
wget -O - http://dl.openfoam.org/source/9.20211007 | tar xvz mv OpenFOAM-9-* OpenFOAM-9
The same source code can be obtained from the repository using Git, e.g.
git clone firstname.lastname@example.org:OpenFOAM/OpenFOAM-9.git cd OpenFOAM-9 git checkout tags/20211007