... | ... | @@ -12,17 +12,17 @@ |
|
|
Depending on your packaging system (or system administrator),
|
|
|
various OpenFOAM shell sessions may be available. For example,
|
|
|
```
|
|
|
/usr/bin/openfoam -> openfoam2206
|
|
|
/usr/bin/openfoam -> openfoam2212
|
|
|
/usr/bin/openfoam2212
|
|
|
/usr/bin/openfoam2206
|
|
|
/usr/bin/openfoam2112
|
|
|
/usr/bin/openfoam2106
|
|
|
```
|
|
|
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., `openfoam2206 -help`) displays some useful information.
|
|
|
(e.g., `openfoam2212 -help`) displays some useful information.
|
|
|
|
|
|
|
|
|
## Purpose
|
... | ... | @@ -48,14 +48,14 @@ For example, |
|
|
```
|
|
|
$ openfoam
|
|
|
|
|
|
* Using: OpenFOAM-2206 (2206) - visit www.openfoam.com
|
|
|
* Using: OpenFOAM-2212 (2212) - visit www.openfoam.com
|
|
|
* Build: ...
|
|
|
* Arch: label=32;scalar=64
|
|
|
* Platform: linux64GccDPInt32Opt (mpi=sys-openmpi)
|
|
|
|
|
|
OpenFOAM shell session - use 'exit' to quit
|
|
|
|
|
|
openfoam2206:~/
|
|
|
openfoam2212:~/
|
|
|
mark$
|
|
|
```
|
|
|
|
... | ... | @@ -86,9 +86,9 @@ It is also possible to execute arbitrary shell sequences with the |
|
|
well-known `-c` option. For example,
|
|
|
|
|
|
```
|
|
|
$ openfoam2206 -c 'echo "openfoam=$WM_PROJECT_DIR uses $WM_OPTIONS"'
|
|
|
$ openfoam2212 -c 'echo "openfoam=$WM_PROJECT_DIR uses $WM_OPTIONS"'
|
|
|
```
|
|
|
yields: `openfoam=/usr/lib/openfoam/openfoam2206 uses linux64GccDPInt32Opt`
|
|
|
yields: `openfoam=/usr/lib/openfoam/openfoam2212 uses linux64GccDPInt32Opt`
|
|
|
|
|
|
|
|
|
## Notes
|
... | ... | |