... | ... | @@ -24,15 +24,15 @@ overview: |
|
|
```
|
|
|
$ foamEtcFile -list
|
|
|
|
|
|
$HOME/.OpenFOAM/2312
|
|
|
$HOME/.OpenFOAM/2406
|
|
|
$HOME/.OpenFOAM
|
|
|
/path/OpenFOAM-v2312/site/2306/etc
|
|
|
/path/OpenFOAM-v2312/site/etc
|
|
|
/path/OpenFOAM-v2312/etc
|
|
|
/path/OpenFOAM-v2406/site/2406/etc
|
|
|
/path/OpenFOAM-v2406/site/etc
|
|
|
/path/OpenFOAM-v2406/etc
|
|
|
```
|
|
|
|
|
|
Both the *user* paths (located as `$HOME/.OpenFOAM/`) and the *group*
|
|
|
paths (`/path/OpenFOAM-v2312/site/`) support additional API versioning
|
|
|
paths (`/path/OpenFOAM-v2406/site/`) support additional API versioning
|
|
|
to allow different settings between releases. The **other**
|
|
|
corresponds to the settings shipped with a particular OpenFOAM release.
|
|
|
|
... | ... | @@ -133,7 +133,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-v2312 WM_COMPILER=Clang
|
|
|
source /path/to/OpenFOAM-v2406 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
|
... | ... | @@ -155,9 +155,9 @@ export WM_LABEL_SIZE=64 |
|
|
```
|
|
|
It is then possible to easily switch between different configurations:
|
|
|
```
|
|
|
source /path/to/OpenFOAM-v2312 clang50-int64
|
|
|
source /path/to/OpenFOAM-v2312 gcc82
|
|
|
source /path/to/OpenFOAM-v2312 wingw
|
|
|
source /path/to/OpenFOAM-v2406 clang50-int64
|
|
|
source /path/to/OpenFOAM-v2406 gcc82
|
|
|
source /path/to/OpenFOAM-v2406 wingw
|
|
|
```
|
|
|
Armed with this information, the user should be able to make
|
|
|
adjustments to the OpenFOAM configuration with a good degree of
|
... | ... | @@ -172,7 +172,7 @@ the OpenFOAM directory to a fixed location (removing any bash |
|
|
discovery magic):
|
|
|
```
|
|
|
bin/tools/foamConfigurePaths \
|
|
|
-project-path "/opt/openfoam2312" \
|
|
|
-project-path "/opt/openfoam2406" \
|
|
|
-boost boost-system \
|
|
|
-cgal cgal-system \
|
|
|
-fftw fftw-system \
|
... | ... | @@ -290,6 +290,6 @@ configuration files for the corresponding shell: |
|
|
|
|
|
--------
|
|
|
|
|
|
Copyright (C) 2019-2022 OpenCFD Ltd.
|
|
|
Copyright (C) 2019-2024 OpenCFD Ltd.
|
|
|
|
|
|
[all-repos]: https://develop.openfoam.com/Development/ |