... | ... | @@ -14,16 +14,123 @@ which will be replaced by alternative content in the future. |
|
|
|
|
|
|System | Status | Comments |
|
|
|
|---------------|---------------|---------------|
|
|
|
| [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) |
|
|
|
| [Debian science](https://salsa.debian.org/science-team/) | Maintained independently, with input from OpenCFD | package [openfoam](https://salsa.debian.org/science-team/openfoam) |
|
|
|
| [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) |
|
|
|
|
|
|
|
|
|
#### Package structure (RPM)
|
|
|
|
|
|
To allow smooth installation and use of multiple OpenFOAM versions on
|
|
|
the same system, we use the following structure:
|
|
|
|
|
|
| Package | Comments |
|
|
|
|---------------|---------------|
|
|
|
| openfoam | The top-level meta package that provides links and requirements for the most recent openfoam release
|
|
|
| openfoam-selector | Similar to mpi-selector, used to switch active openfoam versions
|
|
|
| openfoam1906 | The maintenance version for 1906 |
|
|
|
| openfoam1812 | The maintenance version for 1812 |
|
|
|
|
|
|
The version-specific packages (eg, `openfoam1906`, `openfoam1812`)
|
|
|
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.
|
|
|
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.
|
|
|
To display which versions are installed:
|
|
|
```
|
|
|
$ openfoam-selector --list
|
|
|
|
|
|
openfoam
|
|
|
openfoam1806
|
|
|
openfoam1812
|
|
|
openfoam1906
|
|
|
```
|
|
|
To set a particular version
|
|
|
```
|
|
|
$ openfoam-selector --set openfoam1906
|
|
|
```
|
|
|
To query the current selection:
|
|
|
```
|
|
|
$ openfoam-selector --query
|
|
|
```
|
|
|
|
|
|
Most people will find the `openfoam-selector-menu` more convenient to
|
|
|
use.
|
|
|
```
|
|
|
WARNING: Changes made to the openfoam-selector defaults
|
|
|
will not be visible until you start a new shell!
|
|
|
```
|
|
|
|
|
|
***NOTE*** Similar to the behaviour of the mpi-selector, the values
|
|
|
registered via the `openfoam-selector` will not be activated until the
|
|
|
next full login. This is to avoid a possible clash of environments
|
|
|
when a parallel job still being launched. Of course, you can still
|
|
|
simply source the corresponding `bashrc` file directly. For example,
|
|
|
```
|
|
|
$ source /opt/openfoam1906/etc/bashrc
|
|
|
```
|
|
|
|
|
|
|
|
|
### openSUSE
|
|
|
|
|
|
For openSUSE users, OpenCFD Ltd. is a maintainer on the community
|
|
|
Science Portal and provides RPM binary packages for the most recent
|
|
|
openfoam versions. The quick access is via the download page:
|
|
|
https://software.opensuse.org//download.html?project=science&package=openfoam
|
|
|
and follow the instructions there.
|
|
|
|
|
|
If you already have the Science repository registered on your system,
|
|
|
you should be able to install it directly with `zypper`:
|
|
|
```
|
|
|
sudo zypper install openfoam
|
|
|
```
|
|
|
Or with a graphical tool such as YaST2:
|
|
|
![YaST2](/images/Yast2-select-openfoam.png)
|
|
|
|
|
|
|
|
|
### Fedora/CentOS/RedHat
|
|
|
|
|
|
For RedHat-based system, OpenCFD Ltd. is currently using the
|
|
|
[copr](https://copr.fedorainfracloud.org/) infrastructure to provide
|
|
|
RPM packages. Enable copr for openfoam as per the documentation shown on
|
|
|
https://docs.pagure.org/copr.copr/how_to_enable_repo.html
|
|
|
|
|
|
For newer systems:
|
|
|
```
|
|
|
$ dnf copr enable openfoam/openfoam
|
|
|
```
|
|
|
Older systems:
|
|
|
```
|
|
|
$ yum install yum-plugin-copr
|
|
|
$ yum copr enable openfoam/openfoam
|
|
|
```
|
|
|
|
|
|
|
|
|
### Debian/Ubuntu
|
|
|
|
|
|
Support for Debian is expected to further improve in the near future.
|
|
|
|
|
|
|
|
|
### spack
|
|
|
|
|
|
The installation of openfoam with spack will generally require the
|
|
|
latest (development version) of spack. If this is available, you can
|
|
|
install openfoam in various configurations and dependencies, but
|
|
|
typically can simply install directly:
|
|
|
|
|
|
```
|
|
|
$ spack install openfoam
|
|
|
```
|
|
|
|
|
|
|
|
|
Support for Debian and Fedora/RedHat/CentOS is expected to improve in the near future.
|
|
|
### Resources
|
|
|
|
|
|
To help with RPM-based systems, the following content provided for
|
|
|
To help with RPM-based systems, the following content is provided for
|
|
|
reference purposes, and to help when scripting:
|
|
|
|
|
|
|System | Files | Scripts |
|
... | ... | |