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