... | ... | @@ -8,7 +8,7 @@ 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).
|
|
|
Depending if you have `curl` or `wget` installed:
|
|
|
Assuming that you have `curl` or `wget` installed:
|
|
|
```
|
|
|
curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash
|
|
|
```
|
... | ... | @@ -34,34 +34,9 @@ $ sudo apt-get install openfoam1912-default |
|
|
```
|
|
|
|
|
|
|
|
|
### Installation Locations
|
|
|
|
|
|
The packages are designed to allow simultaneous installation of
|
|
|
different OpenFOAM versions (eg, 1912, 2006).
|
|
|
They are all installed under `/usr/lib/openfoam`. For example,
|
|
|
|
|
|
- `/usr/lib/openfoam/openfoam1912`.
|
|
|
- `/usr/lib/openfoam/openfoam2006`.
|
|
|
- ...
|
|
|
|
|
|
In addition, an OpenFOAM bash session wrapper will be created under
|
|
|
`/usr/bin`. For example,
|
|
|
- `/usr/bin/openfoam1912`
|
|
|
- `/usr/bin/openfoam2006`
|
|
|
- ...
|
|
|
|
|
|
|
|
|
After migrating from one version to another, you can remove the old
|
|
|
version with the usual commands. For example,
|
|
|
```
|
|
|
$ sudo apt-get autoremove openfoam1912-default
|
|
|
```
|
|
|
|
|
|
|
|
|
## OpenFOAM Debian Package Description
|
|
|
|
|
|
OpenFOAM is currently split into a number of sub-packages as follows
|
|
|
(where _VER_ refers to the API version such as 1912 etc):
|
|
|
The OpenFOAM packages are currently split as follows:
|
|
|
|
|
|
- `openfoamVER-default`
|
|
|
- Meta package for everything normally needed.
|
... | ... | @@ -73,7 +48,7 @@ OpenFOAM is currently split into a number of sub-packages as follows |
|
|
Needed for developing with OpenFOAM, but also if dynamic code
|
|
|
compilation is required.
|
|
|
- `openfoamVER-tutorials`
|
|
|
- Tutorials
|
|
|
- tutorials
|
|
|
|
|
|
The following are normally only installed indirectly:
|
|
|
- `openfoamVER-common`
|
... | ... | @@ -82,6 +57,22 @@ The following are normally only installed indirectly: |
|
|
- 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/openfoam1912`.
|
|
|
- `/usr/lib/openfoam/openfoam2006`.
|
|
|
...
|
|
|
|
|
|
In addition, an OpenFOAM bash session wrapper will be created under
|
|
|
`/usr/bin`. For example,
|
|
|
- `/usr/bin/openfoam1912`
|
|
|
- `/usr/bin/openfoam2006`
|
|
|
- ...
|
|
|
|
|
|
|
|
|
### Using the OpenFOAM environment
|
|
|
|
|
|
The bash session wrapper provide the simplest means of starting
|
... | ... | @@ -94,10 +85,10 @@ 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
|
|
|
sourced from your ~/.bashrc file by adding a line resembling the
|
|
|
following to that file:
|
|
|
```
|
|
|
source /usr/lib/openfoam/openfoam1912/etc/bashrc
|
|
|
source /usr/lib/openfoam/openfoam1912/etc/bashrc
|
|
|
```
|
|
|
The exact path used will change depending on the OpenFOAM version.
|
|
|
|
... | ... | |