Skip to content
Snippets Groups Projects
Commit be7d6b3a authored by Kutalmış Berçin's avatar Kutalmış Berçin Committed by Andrew Heather
Browse files

DOC: turbulenceFields: improve header documentation

parent c6c57505
Branches
Tags
1 merge request!476ENH: turbulenceFields: various improvements
...@@ -52,6 +52,15 @@ Description ...@@ -52,6 +52,15 @@ Description
where \c \<Type\>=Scalar/SymmTensor. where \c \<Type\>=Scalar/SymmTensor.
References:
\verbatim
Estimation expressions for L (tag:P), Eq. 10.37:
Pope, S. B. (2000).
Turbulent flows.
Cambridge, UK: Cambridge Univ. Press
DOI:10.1017/CBO9780511840531
\endverbatim
Usage Usage
Minimal example by using \c system/controlDict.functions: Minimal example by using \c system/controlDict.functions:
\verbatim \verbatim
...@@ -62,22 +71,26 @@ Usage ...@@ -62,22 +71,26 @@ Usage
libs (fieldFunctionObjects); libs (fieldFunctionObjects);
// Mandatory entries (runtime modifiable) // Mandatory entries (runtime modifiable)
// Either field or fields entries
fields (R devRhoReff);
field R;
// Optional (inherited) entries // Either of the below
// Option-1
fields (R devRhoReff);
// Option-2
field R;
// Inherited entries
... ...
} }
\endverbatim \endverbatim
where the entries mean: where the entries mean:
\table \table
Property | Description | Type | Req'd | Dflt Property | Description | Type | Reqd | Deflt
type | Type name: turbulenceFields | word | yes | - type | Type name: turbulenceFields | word | yes | -
libs | Library name: fieldFunctionObjects | word | yes | - libs | Library name: fieldFunctionObjects | word | yes | -
fields | Names of fields to store (see below) | wordList | yes | - fields | Names of fields to store (see below) | wordList | yes | -
field | Name of a field to store (see below) | word | yes | - field | Name of a field to store (see below) | word | yes | -
\endtable \endtable
where \c fields can include: where \c fields can include:
...@@ -107,10 +120,15 @@ Usage ...@@ -107,10 +120,15 @@ Usage
<solver> -postProcess -func turbulenceFields <solver> -postProcess -func turbulenceFields
\endverbatim \endverbatim
Note
- Multiphase applications are not supported.
- The governing expression of \c nuTilda is
an approximation based on a dimensional analysis.
See also See also
- Foam::functionObject - Foam::functionObject
- Foam::functionObjects::fvMeshFunctionObject - Foam::functionObjects::fvMeshFunctionObject
- ExtendedCodeGuide::functionObjects::field::turbulenceFields - ExtendedCodeGuide::functionObjects::field::turbulenceFields
SourceFiles SourceFiles
turbulenceFields.C turbulenceFields.C
...@@ -153,8 +171,8 @@ public: ...@@ -153,8 +171,8 @@ public:
cfEpsilon, //!< "Turbulent kinetic energy dissipation rate" cfEpsilon, //!< "Turbulent kinetic energy dissipation rate"
cfOmega, //!< "Specific dissipation rate" cfOmega, //!< "Specific dissipation rate"
cfNuTilda, //!< "Modified turbulent viscosity" cfNuTilda, //!< "Modified turbulent viscosity"
cfMut, //!< "Turbulent viscosity" cfMut, //!< "Turbulent dynamic viscosity"
cfMuEff, //!< "Effective turbulent viscosity" cfMuEff, //!< "Effective turbulent dynamic viscosity"
cfAlphat, //!< "Turbulence thermal diffusivity" cfAlphat, //!< "Turbulence thermal diffusivity"
cfAlphaEff, //!< "Effective turbulence thermal diffusivity" cfAlphaEff, //!< "Effective turbulence thermal diffusivity"
cfR, //!< "Reynolds stress tensor" cfR, //!< "Reynolds stress tensor"
...@@ -184,7 +202,7 @@ public: ...@@ -184,7 +202,7 @@ public:
//- Names for incompressibleField turbulence fields //- Names for incompressibleField turbulence fields
static const Enum<incompressibleField> incompressibleFieldNames_; static const Enum<incompressibleField> incompressibleFieldNames_;
//- Turbulence closure model name //- Name of the turbulence properties dictionary
static const word modelName_; static const word modelName_;
......
...@@ -99,7 +99,7 @@ Foam::functionObjects::turbulenceFields::L ...@@ -99,7 +99,7 @@ Foam::functionObjects::turbulenceFields::L
const Model& model const Model& model
) const ) const
{ {
// Assume k and epsilon are available // (P:Eq. 10.37)
const scalar Cmu = 0.09; const scalar Cmu = 0.09;
const dimensionedScalar eps0(sqr(dimVelocity)/dimTime, SMALL); const dimensionedScalar eps0(sqr(dimVelocity)/dimTime, SMALL);
...@@ -118,9 +118,10 @@ Foam::functionObjects::turbulenceFields::I ...@@ -118,9 +118,10 @@ Foam::functionObjects::turbulenceFields::I
const Model& model const Model& model
) const ) const
{ {
// Assume k is available // (P:p. 183)
// root-mean-square of velocity fluctuations - isotropic turbulence
const volScalarField uPrime(sqrt((2.0/3.0)*model.k())); const volScalarField uPrime(sqrt((2.0/3.0)*model.k()));
const dimensionedScalar U0("U0", dimVelocity, SMALL); const dimensionedScalar U0(dimVelocity, SMALL);
return tmp<volScalarField>::New return tmp<volScalarField>::New
( (
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment