... | ... | @@ -11,14 +11,15 @@ which will be replaced by alternative content in the future. |
|
|
|
|
|
|
|
|
### Packaging systems
|
|
|
<a name="packaging"></a>
|
|
|
|
|
|
|System | Status | Comments |
|
|
|
|---------------|---------------|---------------|
|
|
|
| [openSUSE science](https://build.opensuse.org/project/show/science) | Actively maintained by OpenCFD | package [openfoam](https://build.opensuse.org/package/show/science/openfoam), [download](https://software.opensuse.org//download.html?project=science&package=openfoam) |
|
|
|
| [Fedora/CentOS/RedHat copr](https://copr.fedorainfracloud.org/coprs/openfoam/) | In development by OpenCFD | package [openfoam](https://copr.fedorainfracloud.org/coprs/openfoam/openfoam/) |
|
|
|
| [Debian science](https://salsa.debian.org/science-team/) | Maintained independently, with input from OpenCFD | package [openfoam](https://salsa.debian.org/science-team/openfoam) |
|
|
|
| [spack](https://spack.readthedocs.io/) | Actively maintained by OpenCFD | package [openfoam](https://github.com/spack/spack/tree/develop/var/spack/repos/builtin/packages/openfoam/) |
|
|
|
| [EasyBuild](https://easybuild.readthedocs.io/) | Maintained independently, with input from OpenCFD | package [OpenFOAM](https://github.com/easybuilders/easybuild-easyconfigs/tree/master/easybuild/easyconfigs/o/OpenFOAM) |
|
|
|
|System | Links | Status | Notes |
|
|
|
|---------------|--------------|----------------|---------------|
|
|
|
| [openSUSE science](https://build.opensuse.org/project/show/science) | package [openfoam](https://build.opensuse.org/package/show/science/openfoam), [download](https://software.opensuse.org//download.html?project=science&package=openfoam) | Actively maintained by OpenCFD | [notes](#opensuse) |
|
|
|
| [Fedora/CentOS/RedHat copr](https://copr.fedorainfracloud.org/coprs/openfoam/) | package [openfoam](https://copr.fedorainfracloud.org/coprs/openfoam/openfoam/) | In development by OpenCFD | [notes](#redhat) |
|
|
|
| [Debian science](https://salsa.debian.org/science-team/) | package [openfoam](https://salsa.debian.org/science-team/openfoam) - see [debian search](https://packages.debian.org/search?keywords=openfoam) | Maintained independently, with input from OpenCFD | [notes](#debian) |
|
|
|
| [spack](https://spack.readthedocs.io/) | package [openfoam](https://github.com/spack/spack/tree/develop/var/spack/repos/builtin/packages/openfoam/) | Actively maintained by OpenCFD | [notes](#spack) |
|
|
|
| [EasyBuild](https://easybuild.readthedocs.io/) | package [OpenFOAM](https://github.com/easybuilders/easybuild-easyconfigs/tree/master/easybuild/easyconfigs/o/OpenFOAM) | Maintained independently, with input from OpenCFD | |
|
|
|
|
|
|
|
|
|
#### Package structure (RPM)
|
... | ... | @@ -38,6 +39,8 @@ install into distinct directories so that it is possible to have |
|
|
multiple versions available on your systems.
|
|
|
The top-level `openfoam` package registers which of the
|
|
|
version-specific packages corresponds to the current release.
|
|
|
|
|
|
<a name="openfoam-selector"></a>
|
|
|
Finally, the `openfoam-selector` package is used to register which
|
|
|
openfoam packages are installed on the system and allows the use to
|
|
|
select one of them.
|
... | ... | @@ -76,7 +79,56 @@ $ source /opt/openfoam1906/etc/bashrc |
|
|
```
|
|
|
|
|
|
|
|
|
#### OpenFOAM session
|
|
|
<a name="openfoam-session"></a>
|
|
|
|
|
|
Depending on how your packaging system has done things, an `openfoam`
|
|
|
session command may be available as an alternative to the
|
|
|
`openfoam-selector` mechanism.
|
|
|
On the openSUSE installation, for example:
|
|
|
```
|
|
|
/usr/bin/openfoam -> openfoam-1906
|
|
|
/usr/bin/openfoam-1812
|
|
|
/usr/bin/openfoam-1906
|
|
|
/usr/bin/openfoam-selector
|
|
|
/usr/bin/openfoam-selector-menu
|
|
|
```
|
|
|
Using `openfoam -help` displays some useful information.
|
|
|
|
|
|
Calling it without any arguments opens an interactive *bash* session
|
|
|
with an OpenFOAM environment and your usual `~/.bashrc` environment.
|
|
|
```
|
|
|
$ openfoam
|
|
|
|
|
|
Using: OpenFOAM-1906 (patch=191103) - see www.OpenFOAM.com
|
|
|
Arch: linux64GccDPInt32Opt (mpi=openmpi-system)
|
|
|
OpenFOAM shell session - use exit to quit
|
|
|
|
|
|
OpenFOAM-1906:~/
|
|
|
mark$
|
|
|
```
|
|
|
|
|
|
If called with arguments, it will setup an OpenFOAM environment before
|
|
|
executing a single command. For example,
|
|
|
```
|
|
|
$ blockMesh -help
|
|
|
blockMesh: Command not found.
|
|
|
|
|
|
$ openfoam blockMesh -help
|
|
|
|
|
|
Usage: blockMesh [OPTIONS]
|
|
|
Options:
|
|
|
...
|
|
|
|
|
|
```
|
|
|
|
|
|
Although the OpenFOAM environment is sourced *after* your home
|
|
|
`~/.bashrc`, it is advisable to ensure that there are no circular
|
|
|
references from within your `~/.bashrc` file.
|
|
|
|
|
|
|
|
|
### openSUSE
|
|
|
<a name="opensuse"></a>
|
|
|
|
|
|
For openSUSE users, OpenCFD Ltd. is a maintainer on the community
|
|
|
Science Portal and provides RPM binary packages for the most recent
|
... | ... | @@ -95,6 +147,7 @@ Or with a graphical tool such as YaST2: |
|
|
|
|
|
|
|
|
### Fedora/CentOS/RedHat
|
|
|
<a name="redhat"></a>
|
|
|
|
|
|
For RedHat-based system, OpenCFD Ltd. is currently using the
|
|
|
[copr](https://copr.fedorainfracloud.org/) infrastructure to provide
|
... | ... | @@ -113,12 +166,26 @@ $ yum copr enable openfoam/openfoam |
|
|
|
|
|
|
|
|
### Debian/Ubuntu
|
|
|
<a name="debian"></a>
|
|
|
|
|
|
Support for Debian is expected to further improve in the near future
|
|
|
with better use of the [openfoam-selector](#openfoam-selector)
|
|
|
and the [openfoam-session](#openfoam-session) mechanisms.
|
|
|
|
|
|
- https://packages.debian.org/source/unstable/openfoam (_unstable_ meaning newer)
|
|
|
- https://packages.debian.org/source/stable/openfoam (_stable_ meaning newer)
|
|
|
|
|
|
Support for Debian is expected to further improve in the near future.
|
|
|
Note that the Debian packages may have been created with applications in
|
|
|
`/usr/bin` and configuration files under `/usr/share/openfoam/etc`.
|
|
|
In this case, you may need to manually define the location of the
|
|
|
OpenFOAM directory as follows:
|
|
|
```
|
|
|
export WM_PROJECT_DIR=/usr/share/openfoam
|
|
|
```
|
|
|
|
|
|
https://packages.debian.org/source/stable/openfoam
|
|
|
|
|
|
### spack
|
|
|
<a name="spack"></a>
|
|
|
|
|
|
The installation of openfoam with spack will generally require the
|
|
|
latest (development version) of spack. If this is available, you can
|
... | ... | |