... | ... | @@ -23,15 +23,15 @@ overview: |
|
|
```
|
|
|
$ foamEtcFile -list
|
|
|
|
|
|
$HOME/.OpenFOAM/2106
|
|
|
$HOME/.OpenFOAM/2206
|
|
|
$HOME/.OpenFOAM
|
|
|
/path/OpenFOAM-v2106/site/2106/etc
|
|
|
/path/OpenFOAM-v2106/site/etc
|
|
|
/path/OpenFOAM-v2106/etc
|
|
|
/path/OpenFOAM-v2206/site/2206/etc
|
|
|
/path/OpenFOAM-v2206/site/etc
|
|
|
/path/OpenFOAM-v2206/etc
|
|
|
```
|
|
|
|
|
|
Both the *user* paths (located as `$HOME/.OpenFOAM/`) and the *group*
|
|
|
paths (`/path/OpenFOAM-v2106/site/`) support additional API versioning
|
|
|
paths (`/path/OpenFOAM-v2206/site/`) support additional API versioning
|
|
|
to allow different settings between releases. The **other**
|
|
|
corresponds to the settings shipped with a particular OpenFOAM release.
|
|
|
|
... | ... | @@ -61,7 +61,7 @@ example, |
|
|
#------------------------------------------------------------------------------
|
|
|
# USER EDITABLE PART: Changes made here may be lost with the next upgrade
|
|
|
|
|
|
ParaView_VERSION=5.6.0
|
|
|
ParaView_VERSION=5.10.1
|
|
|
ParaView_QT=qt-system
|
|
|
|
|
|
# END OF (NORMAL) USER EDITABLE PART
|
... | ... | @@ -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-v2106 WM_COMPILER=Clang
|
|
|
source /path/to/OpenFOAM-v2206 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-v2106 clang50-int64
|
|
|
source /path/to/OpenFOAM-v2106 gcc82
|
|
|
source /path/to/OpenFOAM-v2106 wingw
|
|
|
source /path/to/OpenFOAM-v2206 clang50-int64
|
|
|
source /path/to/OpenFOAM-v2206 gcc82
|
|
|
source /path/to/OpenFOAM-v2206 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/openfoam2106" \
|
|
|
-project-path "/opt/openfoam2206" \
|
|
|
-boost boost-system \
|
|
|
-cgal cgal-system \
|
|
|
-fftw fftw-system \
|
... | ... | @@ -289,6 +289,6 @@ configuration files for the corresponding shell: |
|
|
|
|
|
--------
|
|
|
|
|
|
Copyright (C) 2019-2021 OpenCFD Ltd.
|
|
|
Copyright (C) 2019-2022 OpenCFD Ltd.
|
|
|
|
|
|
[all-repos]: https://develop.openfoam.com/Development/ |