... | ... | @@ -7,8 +7,8 @@ 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](https://dl.openfoam.com/add-debian-repo.sh).
|
|
|
Assuming that you have `curl` or `wget` installed:
|
|
|
[installer script](https://dl.openfoam.com/add-debian-repo.sh)
|
|
|
with _one_ of these commands:
|
|
|
```
|
|
|
curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash
|
|
|
```
|
... | ... | @@ -16,21 +16,14 @@ or |
|
|
```
|
|
|
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
|
|
|
```
|
|
|
|
|
|
This adds a [signing key](https://dl.openfoam.com/pubkey.gpg)
|
|
|
for the repository, and repository information for a given distribution
|
|
|
(eg, _buster_, _focal_, etc.):
|
|
|
```
|
|
|
deb [arch=amd64] https://dl.openfoam.com/repos/deb DIST main
|
|
|
```
|
|
|
|
|
|
The installer script also invokes an `apt-get update` to refresh the
|
|
|
repositories.
|
|
|
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 openfoam2006-default
|
|
|
$ sudo apt-get install openfoam2112-default
|
|
|
```
|
|
|
|
|
|
|
... | ... | @@ -38,23 +31,18 @@ $ sudo apt-get install openfoam2006-default |
|
|
|
|
|
The OpenFOAM packages are currently split as follows:
|
|
|
|
|
|
- `openfoamVER-default`
|
|
|
- Meta package for everything normally needed.
|
|
|
- Includes `openfoamVER`, `openfoamVER-dev`, `openfoamVER-tutorials`.
|
|
|
- `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.
|
|
|
- `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.
|
|
|
|
|
|
- `openfoamVER-common` : version information and share files (including the `etc/` directory).
|
|
|
- `openfoamVER-tools` : binaries for OpenFOAM-specific build tools.
|
|
|
|
|
|
|
|
|
### Installation locations
|
... | ... | @@ -62,13 +50,17 @@ The following are normally only installed indirectly: |
|
|
The main OpenFOAM files are all installed under `/usr/lib/openfoam`,
|
|
|
which permits multiple versions to be installed simultaneously.
|
|
|
For example,
|
|
|
- `/usr/lib/openfoam/openfoam2006`
|
|
|
- `/usr/lib/openfoam/openfoam1912`
|
|
|
|
|
|
- `/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/openfoam2006`
|
|
|
|
|
|
- `/usr/bin/openfoam2112`
|
|
|
- `/usr/bin/openfoam2106`
|
|
|
- `/usr/bin/openfoam1912`
|
|
|
- ...
|
|
|
|
... | ... | @@ -78,7 +70,7 @@ In addition, an OpenFOAM bash session wrapper will be created under |
|
|
The bash session wrapper provide the simplest means of starting
|
|
|
OpenFOAM immediately. For example,
|
|
|
```
|
|
|
$ openfoam2006
|
|
|
$ openfoam2112
|
|
|
```
|
|
|
This can be used for an interactive `bash` session, or to run a single
|
|
|
OpenFOAM command within the OpenFOAM environment.
|
... | ... | @@ -88,7 +80,7 @@ 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/openfoam2006/etc/bashrc
|
|
|
source /usr/lib/openfoam/openfoam2112/etc/bashrc
|
|
|
```
|
|
|
The exact path used will change depending on the OpenFOAM version.
|
|
|
|
... | ... | @@ -97,4 +89,4 @@ Never attempt to embed the shell session wrapper as part of your |
|
|
`~/.bashrc` - this may cause an infinite loop!
|
|
|
|
|
|
---
|
|
|
Copyright (C) 2020 OpenCFD Ltd. |
|
|
Copyright (C) 2020-2021 OpenCFD Ltd. |