... | ... | @@ -24,15 +24,15 @@ overview: |
|
|
```
|
|
|
$ foamEtcFile -list
|
|
|
|
|
|
$HOME/.OpenFOAM/2306
|
|
|
$HOME/.OpenFOAM/2312
|
|
|
$HOME/.OpenFOAM
|
|
|
/path/OpenFOAM-v2306/site/2306/etc
|
|
|
/path/OpenFOAM-v2306/site/etc
|
|
|
/path/OpenFOAM-v2306/etc
|
|
|
/path/OpenFOAM-v2312/site/2306/etc
|
|
|
/path/OpenFOAM-v2312/site/etc
|
|
|
/path/OpenFOAM-v2312/etc
|
|
|
```
|
|
|
|
|
|
Both the *user* paths (located as `$HOME/.OpenFOAM/`) and the *group*
|
|
|
paths (`/path/OpenFOAM-v2306/site/`) support additional API versioning
|
|
|
paths (`/path/OpenFOAM-v2312/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-v2306 WM_COMPILER=Clang
|
|
|
source /path/to/OpenFOAM-v2312 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-v2306 clang50-int64
|
|
|
source /path/to/OpenFOAM-v2306 gcc82
|
|
|
source /path/to/OpenFOAM-v2306 wingw
|
|
|
source /path/to/OpenFOAM-v2312 clang50-int64
|
|
|
source /path/to/OpenFOAM-v2312 gcc82
|
|
|
source /path/to/OpenFOAM-v2312 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/openfoam2306" \
|
|
|
-project-path "/opt/openfoam2312" \
|
|
|
-boost boost-system \
|
|
|
-cgal cgal-system \
|
|
|
-fftw fftw-system \
|
... | ... | |