... | ... | @@ -2,6 +2,7 @@ |
|
|
|
|
|
[![home](/icons/home.svg "wiki home")](/home)
|
|
|
[![build](/icons/cpu.svg "build")](/building)
|
|
|
[![tuning](/icons/tool.svg "tuning")](/tuning)
|
|
|
[![repos](/icons/gitlab.svg "repos")][all-repos]
|
|
|
|
|
|
The main OpenFOAM settings are located in the parent `etc/` directory
|
... | ... | @@ -23,15 +24,15 @@ overview: |
|
|
```
|
|
|
$ foamEtcFile -list
|
|
|
|
|
|
$HOME/.OpenFOAM/2212
|
|
|
$HOME/.OpenFOAM/2306
|
|
|
$HOME/.OpenFOAM
|
|
|
/path/OpenFOAM-v2212/site/2212/etc
|
|
|
/path/OpenFOAM-v2212/site/etc
|
|
|
/path/OpenFOAM-v2212/etc
|
|
|
/path/OpenFOAM-v2306/site/2306/etc
|
|
|
/path/OpenFOAM-v2306/site/etc
|
|
|
/path/OpenFOAM-v2306/etc
|
|
|
```
|
|
|
|
|
|
Both the *user* paths (located as `$HOME/.OpenFOAM/`) and the *group*
|
|
|
paths (`/path/OpenFOAM-v2212/site/`) support additional API versioning
|
|
|
paths (`/path/OpenFOAM-v2306/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 +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-v2212 WM_COMPILER=Clang
|
|
|
source /path/to/OpenFOAM-v2306 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 +155,9 @@ export WM_LABEL_SIZE=64 |
|
|
```
|
|
|
It is then possible to easily switch between different configurations:
|
|
|
```
|
|
|
source /path/to/OpenFOAM-v2212 clang50-int64
|
|
|
source /path/to/OpenFOAM-v2212 gcc82
|
|
|
source /path/to/OpenFOAM-v2212 wingw
|
|
|
source /path/to/OpenFOAM-v2306 clang50-int64
|
|
|
source /path/to/OpenFOAM-v2306 gcc82
|
|
|
source /path/to/OpenFOAM-v2306 wingw
|
|
|
```
|
|
|
Armed with this information, the user should be able to make
|
|
|
adjustments to the OpenFOAM configuration with a good degree of
|
... | ... | @@ -171,7 +172,7 @@ the OpenFOAM directory to a fixed location (removing any bash |
|
|
discovery magic):
|
|
|
```
|
|
|
bin/tools/foamConfigurePaths \
|
|
|
-project-path "/opt/openfoam2212" \
|
|
|
-project-path "/opt/openfoam2306" \
|
|
|
-boost boost-system \
|
|
|
-cgal cgal-system \
|
|
|
-fftw fftw-system \
|
... | ... | |