... | ... | @@ -12,17 +12,17 @@ |
|
|
Depending on your packaging system (or system administrator),
|
|
|
various OpenFOAM shell sessions may be available. For example,
|
|
|
```
|
|
|
/usr/bin/openfoam -> openfoam2112
|
|
|
/usr/bin/openfoam -> openfoam2206
|
|
|
/usr/bin/openfoam2206
|
|
|
/usr/bin/openfoam2112
|
|
|
/usr/bin/openfoam2106
|
|
|
/usr/bin/openfoam2012
|
|
|
```
|
|
|
They provide the simplest means of starting OpenFOAM immediately and
|
|
|
can be used for an _interactive_ bash session, or to run a single
|
|
|
OpenFOAM command within the OpenFOAM environment.
|
|
|
|
|
|
Using the `-help` option for the respective shell session
|
|
|
(e.g., `openfoam2112 -help`) displays some useful information.
|
|
|
(e.g., `openfoam2206 -help`) displays some useful information.
|
|
|
|
|
|
|
|
|
## Purpose
|
... | ... | @@ -48,11 +48,14 @@ For example, |
|
|
```
|
|
|
$ openfoam
|
|
|
|
|
|
Using: OpenFOAM-2006 - see www.openfoam.com
|
|
|
Arch: linux64GccDPInt32Opt (mpi=openmpi-system)
|
|
|
OpenFOAM shell session - use exit to quit
|
|
|
* Using: OpenFOAM-2206 (2206) - visit www.openfoam.com
|
|
|
* Build: ...
|
|
|
* Arch: label=32;scalar=64
|
|
|
* Platform: linux64GccDPInt32Opt (mpi=sys-openmpi)
|
|
|
|
|
|
OpenFOAM-2006:~/
|
|
|
OpenFOAM shell session - use 'exit' to quit
|
|
|
|
|
|
openfoam2206:~/
|
|
|
mark$
|
|
|
```
|
|
|
|
... | ... | @@ -83,9 +86,9 @@ It is also possible to execute arbitrary shell sequences with the |
|
|
well-known `-c` option. For example,
|
|
|
|
|
|
```
|
|
|
$ openfoam2112 -c 'echo "openfoam=$WM_PROJECT_DIR uses $WM_OPTIONS"'
|
|
|
$ openfoam2206 -c 'echo "openfoam=$WM_PROJECT_DIR uses $WM_OPTIONS"'
|
|
|
```
|
|
|
yields: `openfoam=/usr/lib/openfoam/openfoam2112 uses linux64GccDPInt32Opt`
|
|
|
yields: `openfoam=/usr/lib/openfoam/openfoam2206 uses linux64GccDPInt32Opt`
|
|
|
|
|
|
|
|
|
## Notes
|
... | ... | @@ -97,4 +100,4 @@ yields: `openfoam=/usr/lib/openfoam/openfoam2112 uses linux64GccDPInt32Opt` |
|
|
|
|
|
----
|
|
|
|
|
|
Copyright (C) 2020-2021 OpenCFD Ltd. |
|
|
Copyright (C) 2020-2022 OpenCFD Ltd. |