|
|
## Introduction
|
|
|
|
|
|
Previous versions included a number of useful utilities such as `Co`
|
|
|
and `Mach` etc and also a `foamCalc` utility. However, the number of
|
|
|
such utilities quickly exploded and caused a large amount of code
|
|
|
duplication, since the function is often also needed during simulation
|
|
|
as well. To solve this problem, many utilities were converted into
|
|
|
function objects (which allows their use during simulation) and a
|
|
|
standalone `postProcess` utility was added to dispatch functions
|
|
|
objects.
|
|
|
|
|
|
When function objects depend on solver fields, the new solver
|
|
|
`-postProcess` option is used instead, which substitutes
|
|
|
an alternative solver time-loop to execute the function objects.
|
|
|
|
|
|
## Remapped names
|
|
|
|
|
|
The `foamCalc` and `foamExecFlowFunctionObjects` have been superceded
|
|
|
by the `postProcess` utility (see `postProcess -help`) as well as a
|
|
|
solver `-postProcess` option.
|
|
|
|
|
|
This table assists with mapping standalone or `foamCalc` names to
|
|
|
`postProcess`:
|
|
|
|
|
|
| Old | postProcess |
|
|
|
|-------------------|-------------|
|
|
|
| Lambda2 | postProcess -func Lambda2 | |
|
|
|
| Q | postProcess -func Q |
|
|
|
| enstrophy | postProcess -func enstrophy | |
|
|
|
| flowType | postProcess -func flowType | |
|
|
|
| patchAverage | postProcess -func 'patchAverage(name=inlet,p)' |
|
|
|
| patchIntegrate | postProcess -func 'patchIntegrate(name=inlet,p)' |
|
|
|
| probeLocations | postProcess -func 'probes(p, U)' |
|
|
|
| probeLocations | postProcess -func probes" |
|
|
|
| ptot | postProcess -func 'totalPressureCompressible(rho,U,p)' |
|
|
|
| ptot | postProcess -func 'totalPressureIncompressible(U,p)' |
|
|
|
| streamFunction | postProcess -func streamFunction | |
|
|
|
| vorticity | postProcess -func vorticity | |
|
|
|
| wallGradU | postProcess -func 'grad(U)' |
|
|
|
| wallHeatFlux | postProcess -func wallHeatFlux |
|
|
|
| wallShearStress | postProcess -func wallShearStress |
|
|
|
| wdot | postProcess -func XiReactionRate |
|
|
|
| writeCellCentres | postProcess -func writeCellCentres | |
|
|
|
|
|
|
|
|
|
This table assists with mapping `foamExecFlowFunctionObjects` names to
|
|
|
the solver `-postProcess` option:
|
|
|
|
|
|
| Old | Example solver -postProcess equivalent |
|
|
|
|-------------------|----------------------------------------|
|
|
|
| Co | pimpleFoam -postProcess -func CourantNo |
|
|
|
| Mach | sonicFoam -postProcess -func MachNo |
|
|
|
| Pe | pimpleFoam -postProcess -func PecletNo |
|
|
|
| R | simpleFoam -postProcess -func R |
|
|
|
| createTurbulenceFields | simpleFoam -postProcess -func 'turbulenceFields(R, omega)' |
|
|
|
| stressComponents | simpleFoam -postProcess -funcs '(R components(turbulenceProperties:R))' |
|
|
|
| yPlus | simpleFoam -postProcess -func yPlus |
|
|
|
|
|
|
|
|
|
The replacement for `sample` behaves slightly differently.
|
|
|
|
|
|
|
|
|
```
|
|
|
postProcess -func sample
|
|
|
```
|
|
|
|
|
|
To re-use an existing 'sampleDict' file, simply add the following entries:
|
|
|
|
|
|
```
|
|
|
type sets;
|
|
|
libs ("libsampling.so");
|
|
|
```
|
|
|
and run
|
|
|
```
|
|
|
postProcess -func sampleDict
|
|
|
``` |