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;
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.
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.
virtual tmp< volScalarField > alphaEff() const
Return the effective turbulent thermal diffusivity for enthalpy.
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.
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.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual tmp< volScalarField > alphat() const
Return the turbulent thermal diffusivity for enthalpy [kg/m/s].
virtual bool write()
Do nothing.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
errorManip< error > abort(error &err)
virtual tmp< volScalarField > nuEff() const =0
Return the effective viscosity.
virtual ~turbulenceFields()
Destructor.
word name(const complex &)
Return a string representation of a complex.
List< word > wordList
A List of words.
virtual tmp< volSymmTensorField > devReff() const
Return the effective stress tensor.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
addToRunTimeSelectionTable(functionObject, blendingFactor, dictionary)
virtual bool execute()
Calculate turbulence fields.
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_
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.