35 namespace functionObjects
115 <<
"Turbulence model not found in database, deactivating" 125 Foam::functionObjects::turbulenceFields::turbulenceFields
149 if (dict.
found(
"field"))
159 if (fieldSet_.size())
161 Info<<
"storing fields:" <<
nl;
164 Info<<
" " << modelName <<
':' << iter.key() <<
nl;
170 Info<<
"no fields requested to be stored" <<
nl <<
endl;
179 bool comp = compressible();
188 const word&
f = iter.key();
189 switch (compressibleFieldNames_[f])
193 processField<scalar>(
f, model.k());
198 processField<scalar>(
f, model.epsilon());
203 processField<scalar>(
f, omega(model));
208 processField<scalar>(
f, model.mut());
213 processField<scalar>(
f, model.muEff());
218 processField<scalar>(
f, model.
alphat());
223 processField<scalar>(
f, model.
alphaEff());
228 processField<symmTensor>(
f, model.R());
233 processField<symmTensor>(
f, model.devRhoReff());
251 const word&
f = iter.key();
252 switch (incompressibleFieldNames_[f])
256 processField<scalar>(
f, model.
k());
261 processField<scalar>(
f, model.
epsilon());
266 processField<scalar>(
f, omega(model));
271 processField<scalar>(
f, model.
nut());
276 processField<scalar>(
f, model.
nuEff());
281 processField<symmTensor>(
f, model.
R());
286 processField<symmTensor>(
f, model.
devReff());
306 const word fieldName = modelName +
':' + iter.key();
307 writeObject(fieldName);
A HashTable with keys but without contents.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static const word modelName
virtual tmp< volSymmTensorField > R() const =0
Return the Reynolds stress tensor.
static const NamedEnum< incompressibleField, 7 > incompressibleFieldNames_
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
Initialise the NamedEnum HashTable from the static list of names.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
bool compressible()
Return true if compressible turbulence model is identified.
virtual tmp< volScalarField > alphaEff() const
Effective thermal turbulent diffusivity of mixture [kg/m/s].
Templated abstract base class for single-phase incompressible turbulence models.
bool read(const char *, int32_t &)
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from string.
virtual bool read(const dictionary &)
Read the controls.
virtual bool write()
Do nothing.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
errorManip< error > abort(error &err)
virtual tmp< volSymmTensorField > devReff() const
Return the effective stress tensor.
virtual tmp< volScalarField > nuEff() const =0
Return the effective viscosity.
virtual ~turbulenceFields()
Destructor.
word name(const complex &)
Return a string representation of a complex.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
List< word > wordList
A List of words.
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
virtual bool execute()
Calculate turbulence fields.
virtual tmp< volScalarField > alphat() const
Turbulent thermal diffusivity for enthalpy [kg/m/s].
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
static const NamedEnum< compressibleField, 9 > compressibleFieldNames_
addToRunTimeSelectionTable(functionObject, add, dictionary)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.