... | ... | @@ -2,3 +2,103 @@ |
|
|
|
|
|
[Back to Upgrade Guides](/guides/upgrade/upgrade)
|
|
|
|
|
|
## Configuration / Environment
|
|
|
|
|
|
### Mesa / llvm
|
|
|
|
|
|
Provide config setup for mesa with llvm.
|
|
|
If using a non-clang compiler suite (gcc, intel, etc) the additional
|
|
|
lbraries required for mesa with llvm pipelines may not be found.
|
|
|
|
|
|
Provide a mesa_llvm configuration within the *vtk* config file.
|
|
|
Can use the usual types of settings:
|
|
|
* mesa_llvm=llvm-4.0.1
|
|
|
* mesa_llvm=none
|
|
|
* mesa_llvm=system
|
|
|
|
|
|
|
|
|
### Space characters in fileName
|
|
|
|
|
|
Allowing a space char in fileName is now user-configurable.
|
|
|
|
|
|
Having whitespace in `fileName` can be somewhat fragile since it means
|
|
|
that the fileName components do not necessarily correspond to a
|
|
|
`Foam::word`. But in many cases it will work provided that spaces
|
|
|
are not present in the final portion of the simulation directory
|
|
|
itself.
|
|
|
```
|
|
|
InfoSwitches
|
|
|
{
|
|
|
// Allow space character in fileName (use with caution)
|
|
|
// Default: 0 for non-Windows, 1 for Windows
|
|
|
allowSpaceInFileName 1;
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
## Input Dictionaries
|
|
|
|
|
|
- The compile-time value of `foamVersion::api` is now exported as an
|
|
|
internal environment variable `FOAM_API`, which also makes it
|
|
|
available for dictionaries.
|
|
|
|
|
|
- The `foamDictionary` utility now accepts a `-precision` option
|
|
|
to specify non-default precision values.
|
|
|
This is needed since it is unaffected by the contents or even the
|
|
|
presence/absence of a `system/controlDict` file.
|
|
|
|
|
|
- Example annotated dictionaries now centralized under `etc/`, which
|
|
|
makes them more convenient to find. This location becomes especially
|
|
|
necessary when the OpenFOAM installation is without sources or
|
|
|
tutorials.
|
|
|
|
|
|
- The new `foamGetDict` utility provides a convenient means of
|
|
|
retrieving an OpenFOAM dictionary file from `etc/caseDicts/`.
|
|
|
For example,
|
|
|
```
|
|
|
foamGetDict decomposeParDict
|
|
|
```
|
|
|
|
|
|
|
|
|
## Surface sampling
|
|
|
|
|
|
As mentioned in the [Release notes][v1906-notes], surface sampling and
|
|
|
writers have received an overhaul and improved functionality. For the
|
|
|
end-user, these are the most relevant points:
|
|
|
|
|
|
- surfaces can be in a dictionary entry or list entry.
|
|
|
- optional 'enabled' keyword to selectively disable a single sampled
|
|
|
surface.
|
|
|
- each surface can have its own output format, or format options.
|
|
|
- the ability to `store` sampled information to an internal registry
|
|
|
for reuse with averaging, surfaceFieldValue, runTimePostProcessing
|
|
|
etc.
|
|
|
|
|
|
### Removed
|
|
|
|
|
|
Remove all surfMesh samplers since this functionality has been
|
|
|
superseded by the improved sampledSurfaces.
|
|
|
This functionality was originally added to allow sampling of volume
|
|
|
fields onto a surface in order to perform calculations on them.
|
|
|
Moreover, the sampling framework essentially mirrored that of
|
|
|
sampledSurfaces, but was less complete.
|
|
|
|
|
|
It is now possible to store sampled surfaces on a registry and
|
|
|
do calculation with their fields. This is the preferred method,
|
|
|
and thus removing the surfMeshSample duplicate code.
|
|
|
|
|
|
|
|
|
## Removed items
|
|
|
|
|
|
Reduced the clutter in the `bin/` directory by removing
|
|
|
many old, unused legacy and deprecated tools.
|
|
|
|
|
|
- Information about deprecated applications is now addressed via wiki pages.
|
|
|
|
|
|
- Less frequently used scripts are now located in `bin/tools/`
|
|
|
- findEmptyMake
|
|
|
- foamAllHC
|
|
|
- foamUpdateCaseFileHeader
|
|
|
|
|
|
|
|
|
[v1906-notes]: https://www.openfoam.com/releases/openfoam-v1906/ |