... | ... | @@ -12,16 +12,17 @@ |
|
|
Depending on your packaging system (or system administrator),
|
|
|
various OpenFOAM shell sessions may be available. For example,
|
|
|
```
|
|
|
/usr/bin/openfoam -> openfoam2006
|
|
|
/usr/bin/openfoam2006
|
|
|
/usr/bin/openfoam1912
|
|
|
/usr/bin/openfoam -> openfoam2112
|
|
|
/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., `openfoam2006 -help`) displays some useful information.
|
|
|
(e.g., `openfoam2112 -help`) displays some useful information.
|
|
|
|
|
|
|
|
|
## Purpose
|
... | ... | @@ -82,9 +83,9 @@ It is also possible to execute arbitrary shell sequences with the |
|
|
well-known `-c` option. For example,
|
|
|
|
|
|
```
|
|
|
$ openfoam2006 -c 'echo "openfoam=$WM_PROJECT_DIR uses $WM_OPTIONS"'
|
|
|
$ openfoam2112 -c 'echo "openfoam=$WM_PROJECT_DIR uses $WM_OPTIONS"'
|
|
|
```
|
|
|
yields: `openfoam=/usr/lib/openfoam/openfoam2006 uses linux64GccDPInt32Opt`
|
|
|
yields: `openfoam=/usr/lib/openfoam/openfoam2112 uses linux64GccDPInt32Opt`
|
|
|
|
|
|
|
|
|
## Notes
|
... | ... | @@ -96,4 +97,4 @@ yields: `openfoam=/usr/lib/openfoam/openfoam2006 uses linux64GccDPInt32Opt` |
|
|
|
|
|
----
|
|
|
|
|
|
Copyright (C) 2020 OpenCFD Ltd. |
|
|
Copyright (C) 2020-2021 OpenCFD Ltd. |