This function object stores turbulence fields on the mesh database for further manipulation. More...
Public Types | |
enum | compressibleField { cfK, cfEpsilon, cfMut, cfMuEff, cfAlphat, cfAlphaEff, cfR, cfDevRhoReff } |
enum | incompressibleField { ifK, ifEpsilon, ifNut, ifNuEff, ifR, ifDevReff } |
Public Member Functions | |
TypeName ("turbulenceFields") | |
Runtime type information. More... | |
turbulenceFields (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~turbulenceFields () |
Destructor. More... | |
virtual const word & | name () const |
Return name of the turbulenceFields object. More... | |
virtual void | read (const dictionary &) |
Read the field min/max data. More... | |
virtual void | execute () |
Execute, currently does nothing. More... | |
virtual void | end () |
Execute at the final time-loop, currently does nothing. More... | |
virtual void | timeSet () |
Called when time was set at the end of the Time::operator++. More... | |
virtual void | write () |
Write. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &) |
Update for changes of mesh. More... | |
Static Public Attributes | |
static const NamedEnum< compressibleField, 8 > | compressibleFieldNames_ |
static const NamedEnum< incompressibleField, 6 > | incompressibleFieldNames_ |
static const word | modelName = turbulenceModel::propertiesName |
Protected Member Functions | |
turbulenceFields (const turbulenceFields &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const turbulenceFields &) |
Disallow default bitwise assignment. More... | |
bool | compressible () |
Return true if compressible turbulence model is identified. More... | |
template<class Type > | |
void | processField (const word &fieldName, const tmp< GeometricField< Type, fvPatchField, volMesh > > &tvalue) |
Process the turbulence field. More... | |
Protected Attributes | |
word | name_ |
Name of this set of turbulenceFields object. More... | |
const objectRegistry & | obr_ |
bool | active_ |
on/off switch More... | |
wordHashSet | fieldSet_ |
Fields to load. More... | |
Switch | log_ |
Switch to send output to Info as well as to file. More... | |
This function object stores turbulence fields on the mesh database for further manipulation.
Fields are stored as copies of the original, with the prefix "tubulenceModel:", e.g.
Example of function object specification:
turbulenceFields1 { type turbulenceFields; functionObjectLibs ("libutilityFunctionObjects.so"); ... fields ( R devRhoReff ); }
Function object usage
Property | Description | Required | Default value |
---|---|---|---|
type | type name: turbulenceFields | yes | |
fields | fields to store (see below) | yes |
Where fields
can include:
k | : | turbulence kinetic energy |
epsilon | : | turbulence kinetic energy dissipation rate |
nut | : | turbulence viscosity (incompressible) |
nuEff | : | effective turbulence viscosity (incompressible) |
mut | : | turbulence viscosity (compressible) |
muEff | : | effective turbulence viscosity (compressible) |
alphat | : | turbulence thermal diffusivity (compressible) |
alphaEff | : | effective turbulence thermal diffusivity (compressible) |
R | : | Reynolds stress tensor |
devReff | : | Deviatoric part of the effective Reynolds stress |
devRhoReff | : | Divergence of the Reynolds stress |
Definition at line 167 of file turbulenceFields.H.
enum compressibleField |
Enumerator | |
---|---|
cfK | |
cfEpsilon | |
cfMut | |
cfMuEff | |
cfAlphat | |
cfAlphaEff | |
cfR | |
cfDevRhoReff |
Definition at line 171 of file turbulenceFields.H.
enum incompressibleField |
Enumerator | |
---|---|
ifK | |
ifEpsilon | |
ifNut | |
ifNuEff | |
ifR | |
ifDevReff |
Definition at line 184 of file turbulenceFields.H.
|
protected |
Disallow default bitwise copy construct.
turbulenceFields | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
const bool | loadFromFiles = false |
||
) |
Construct for given objectRegistry and dictionary.
Allow the possibility to load fields from files
Definition at line 95 of file turbulenceFields.C.
References dict, Foam::endl(), Foam::read(), and WarningInFunction.
|
virtual |
Destructor.
Definition at line 125 of file turbulenceFields.C.
|
protected |
Disallow default bitwise assignment.
|
protected |
Return true if compressible turbulence model is identified.
Definition at line 71 of file turbulenceFields.C.
References turbulenceFields::active_, objectRegistry::foundObject(), turbulenceFields::modelName, turbulenceFields::obr_, and WarningInFunction.
|
protected |
Process the turbulence field.
Definition at line 32 of file turbulenceFieldsTemplates.C.
References Foam::endl(), fld(), Foam::nl, and WarningInFunction.
TypeName | ( | "turbulenceFields" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the turbulenceFields object.
Definition at line 263 of file turbulenceFields.H.
References turbulenceFields::name_.
|
virtual |
Read the field min/max data.
Definition at line 131 of file turbulenceFields.C.
References dict, Foam::endl(), forAllConstIter(), Foam::Info, dictionary::lookup(), Foam::nl, and Foam::type().
|
virtual |
Execute, currently does nothing.
Definition at line 160 of file turbulenceFields.C.
References Foam::abort(), ThermalDiffusivity< BasicTurbulenceModel >::alphaEff(), ThermalDiffusivity< BasicTurbulenceModel >::alphat(), compressible, IncompressibleTurbulenceModel< TransportModel >::devReff(), turbulenceModel::epsilon(), f(), Foam::FatalError, FatalErrorInFunction, forAllConstIter(), turbulenceModel::k(), turbulenceModel::nuEff(), turbulenceModel::nut(), and turbulenceModel::R().
|
virtual |
Execute at the final time-loop, currently does nothing.
Definition at line 278 of file turbulenceFields.C.
|
virtual |
Called when time was set at the end of the Time::operator++.
Definition at line 282 of file turbulenceFields.C.
|
virtual |
Write.
Definition at line 286 of file turbulenceFields.C.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 284 of file turbulenceFields.H.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 288 of file turbulenceFields.H.
|
static |
Definition at line 182 of file turbulenceFields.H.
|
static |
Definition at line 193 of file turbulenceFields.H.
|
static |
Definition at line 195 of file turbulenceFields.H.
Referenced by turbulenceFields::compressible().
|
protected |
Name of this set of turbulenceFields object.
Definition at line 203 of file turbulenceFields.H.
Referenced by turbulenceFields::name().
|
protected |
Definition at line 205 of file turbulenceFields.H.
Referenced by turbulenceFields::compressible().
|
protected |
on/off switch
Definition at line 208 of file turbulenceFields.H.
Referenced by turbulenceFields::compressible().
|
protected |
Fields to load.
Definition at line 211 of file turbulenceFields.H.
|
protected |
Switch to send output to Info as well as to file.
Definition at line 214 of file turbulenceFields.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.