... | ... | @@ -23,15 +23,15 @@ overview: |
|
|
```
|
|
|
$ foamEtcFile -list
|
|
|
|
|
|
$HOME/.OpenFOAM/2206
|
|
|
$HOME/.OpenFOAM/2212
|
|
|
$HOME/.OpenFOAM
|
|
|
/path/OpenFOAM-v2206/site/2206/etc
|
|
|
/path/OpenFOAM-v2206/site/etc
|
|
|
/path/OpenFOAM-v2206/etc
|
|
|
/path/OpenFOAM-v2212/site/2212/etc
|
|
|
/path/OpenFOAM-v2212/site/etc
|
|
|
/path/OpenFOAM-v2212/etc
|
|
|
```
|
|
|
|
|
|
Both the *user* paths (located as `$HOME/.OpenFOAM/`) and the *group*
|
|
|
paths (`/path/OpenFOAM-v2206/site/`) support additional API versioning
|
|
|
paths (`/path/OpenFOAM-v2212/site/`) support additional API versioning
|
|
|
to allow different settings between releases. The **other**
|
|
|
corresponds to the settings shipped with a particular OpenFOAM release.
|
|
|
|
... | ... | @@ -132,7 +132,7 @@ mechanism allows direct setting of variables without needing to edit |
|
|
any files. For example, to source the OpenFOAM environment with a
|
|
|
different compiler:
|
|
|
```
|
|
|
source /path/to/OpenFOAM-v2206 WM_COMPILER=Clang
|
|
|
source /path/to/OpenFOAM-v2212 WM_COMPILER=Clang
|
|
|
```
|
|
|
If the argument does not appear to be an assignment of a variable, it
|
|
|
will attempt to resolve it as a file and then source that. This
|
... | ... | @@ -154,9 +154,9 @@ export WM_LABEL_SIZE=64 |
|
|
```
|
|
|
It is then possible to easily switch between different configurations:
|
|
|
```
|
|
|
source /path/to/OpenFOAM-v2206 clang50-int64
|
|
|
source /path/to/OpenFOAM-v2206 gcc82
|
|
|
source /path/to/OpenFOAM-v2206 wingw
|
|
|
source /path/to/OpenFOAM-v2212 clang50-int64
|
|
|
source /path/to/OpenFOAM-v2212 gcc82
|
|
|
source /path/to/OpenFOAM-v2212 wingw
|
|
|
```
|
|
|
Armed with this information, the user should be able to make
|
|
|
adjustments to the OpenFOAM configuration with a good degree of
|
... | ... | @@ -171,7 +171,7 @@ the OpenFOAM directory to a fixed location (removing any bash |
|
|
discovery magic):
|
|
|
```
|
|
|
bin/tools/foamConfigurePaths \
|
|
|
-project-path "/opt/openfoam2206" \
|
|
|
-project-path "/opt/openfoam2212" \
|
|
|
-boost boost-system \
|
|
|
-cgal cgal-system \
|
|
|
-fftw fftw-system \
|
... | ... | |