The turbulenceFields
function object computes various turbulence-related quantities that are not typically output during calculations, including:
k
: Turbulent kinetic energyepsilon
: Turbulent kinetic energyu dissipation rateomega
: Specific dissipation rateR
: Reynolds stress tensorL
: Integral-length/Mixing-length scaleI
: Turbulence intensitynuTilda
: Modified turbulent viscosityAdditional field selections for incompressible cases:
nut
: Turbulent (edy) kinematic viscositynuEff
: Effective kinematic viscosity (laminar + turbulent contributions)devReff
: Deviatoric stress tensorAdditional field selections for compressible cases:
mut
: Turbulent (eddy) dynamic viscositymuEff
: Effective dynamic viscosity (laminar + turbulent contributions)alphat
: Thermal eddy diffusivityalphaEff
: Effective eddy thermal diffusivitydevRhoReff
: Deviatoric stress tensorThese fields are stored on the mesh database for further post-processing, and written as regular volume fields at write intervals.
Operand | Type | Location |
---|---|---|
input | - | - |
output file | - | - |
output field | vol<Type>Field | $FOAM_CASE/<time>/<outField> |
where <Type>=Scalar/Vector/SphericalTensor/SymmTensor/Tensor
.
Example of the turbulenceFields
function object by using functions
sub-dictionary in system/controlDict
file:
turbulenceFields1 { // Mandatory entries (unmodifiable) type turbulenceFields; libs (fieldFunctionObjects); // Mandatory entries (runtime modifiable) // Either field or fields entries fields (R devRhoReff); field R; // Optional (inherited) entries region region0; enabled true; log true; timeStart 0; timeEnd 1000; executeControl timeStep; executeInterval 1; writeControl timeStep; writeInterval 1; }
where the entries mean:
Property | Description | Type | Required | Default |
---|---|---|---|---|
type | Type name: turbulenceFields | word | yes | - |
libs | Library name: fieldFunctionObjects | word | yes | - |
fields | Names of fields to store (see below) | wordList | yes | - |
field | Name of a field to store (see below) | word | yes | - |
The inherited entries are elaborated in:
Example by using the postProcess
utility:
<solver> -postProcess -func turbulenceFields
Fields stored on the mesh database with the prefix turbulenceProperties:
, e.g.
turbulenceProperties:mut turbulenceProperties:R turbulenceProperties:devRhoReff
and written to the standard time directories according to the writeControl setting.
Tutorial:
Source code:
History