Download Latest Version OpenFOAM-v2506.tgz (54.5 MB)
Email in envelope

Get an email when there's a new version of OpenFOAM

Home / repos / deb / dists
Name Modified Size InfoDownloads / Week
Parent folder
questing < 20 hours ago
noble < 22 hours ago
oracular < 22 hours ago
plucky < 22 hours ago
bookworm < 22 hours ago
bullseye < 22 hours ago
trixie < 22 hours ago
bionic < 22 hours ago
focal < 22 hours ago
jammy < 22 hours ago
lunar 2024-06-24
mantic 2024-06-24
kinetic 2024-06-24
all-sums-alex.txt 2024-04-26 110.0 kB
sha1sums-alex.txt 2024-04-26 102.6 kB
Totals: 15 Items   212.6 kB 146,868

Debian/Ubuntu repositories for OpenFOAM

Initial setup

To use these repositories, you will need to add the signing key and the repository location(s) to your system. This typically only needs to be done once per distribution.

The most convenient way is to use the installer script with one of these commands:

curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash

or

wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash

This adds a signing key for the repository, repository information for a given distribution and invokes an apt-get update to refresh the repositories.

You should now be able to install your preferred OpenFOAM package. For example,

$ sudo apt-get install openfoam2112-default

OpenFOAM Debian package description

The OpenFOAM packages are currently split as follows:

  • openfoamVER-default : meta package for everything normally needed.
  • openfoamVER : Solvers, utilities and libraries.
  • openfoamVER-dev : Source code headers and wmake build chain. Needed for developing with OpenFOAM, but also if dynamic code compilation is required.
  • openfoamVER-tutorials : Tutorials.

The following are normally only installed indirectly:

  • openfoamVER-common : version information and share files (including the etc/ directory).
  • openfoamVER-tools : binaries for OpenFOAM-specific build tools.

Installation locations

The main OpenFOAM files are all installed under /usr/lib/openfoam, which permits multiple versions to be installed simultaneously. For example,

  • /usr/lib/openfoam/openfoam2112
  • /usr/lib/openfoam/openfoam2106
  • /usr/lib/openfoam/openfoam2012
  • ...

In addition, an OpenFOAM bash session wrapper will be created under /usr/bin. For example,

  • /usr/bin/openfoam2112
  • /usr/bin/openfoam2106
  • /usr/bin/openfoam1912
  • ...

Using the OpenFOAM environment

The bash session wrapper provide the simplest means of starting OpenFOAM immediately. For example,

$ openfoam2112

This can be used for an interactive bash session, or to run a single OpenFOAM command within the OpenFOAM environment.

For a persistent OpenFOAM environment, the OpenFOAM bashrc file can be sourced from your ~/.bashrc file by adding a line resembling the following to that file:

source /usr/lib/openfoam/openfoam2112/etc/bashrc

The exact path used will change depending on the OpenFOAM version.

Never attempt to embed the shell session wrapper as part of your ~/.bashrc - this may cause an infinite loop!


Copyright (C) 2020-2021 OpenCFD Ltd.

Source: README.md, updated 2021-12-17