Go to the documentation of this file.
84 <<
"Turbulence model not found in database, deactivating";
99 const bool loadFromFiles
109 if (isA<fvMesh>(obr_))
117 <<
"No fvMesh available, deactivating " << name_
135 log_.readIfPresent(
"log",
dict);
138 Info<<
type() <<
" " << name_ <<
": ";
141 Info<<
type() <<
" " << name_ <<
" output:" <<
nl;
142 if (fieldSet_.size())
144 Info<<
"storing fields:" <<
nl;
147 Info<<
" " << modelName <<
':' << iter.key() <<
nl;
153 Info<<
"no fields requested to be stored" <<
nl <<
endl;
176 const word&
f = iter.key();
177 switch (compressibleFieldNames_[
f])
181 processField<scalar>(
f, model.k());
186 processField<scalar>(
f, model.epsilon());
191 processField<scalar>(
f, model.mut());
196 processField<scalar>(
f, model.muEff());
201 processField<scalar>(
f, model.
alphat());
206 processField<scalar>(
f, model.
alphaEff());
211 processField<symmTensor>(
f, model.R());
216 processField<symmTensor>(
f, model.devRhoReff());
234 const word&
f = iter.key();
235 switch (incompressibleFieldNames_[
f])
239 processField<scalar>(
f, model.
k());
244 processField<scalar>(
f, model.
epsilon());
249 processField<scalar>(
f, model.
nut());
254 processField<scalar>(
f, model.
nuEff());
259 processField<symmTensor>(
f, model.
R());
264 processField<symmTensor>(
f, model.
devReff());
virtual tmp< volSymmTensorField > R() const =0
Return the Reynolds stress tensor.
bool active_
on/off switch
A class for handling words, derived from string.
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
virtual void read(const dictionary &)
Read the field min/max data.
bool read(const char *, int32_t &)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static const word propertiesName
Default name of the turbulence properties dictionary.
turbulenceFields(const turbulenceFields &)
Disallow default bitwise copy construct.
static const NamedEnum< compressibleField, 8 > compressibleFieldNames_
Ostream & endl(Ostream &os)
Add newline and flush stream.
A HashTable with keys but without contents.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
List< word > wordList
A List of words.
Registry of regIOobjects.
virtual tmp< volSymmTensorField > devReff() const
Return the effective stress tensor.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
errorManip< error > abort(error &err)
const objectRegistry & obr_
static const word modelName
virtual ~turbulenceFields()
Destructor.
bool foundObject(const word &name) const
Is the named Type found?
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual tmp< volScalarField > alphaEff() const
Return the effective turbulent thermal diffusivity for enthalpy.
virtual void end()
Execute at the final time-loop, currently does nothing.
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
virtual tmp< volScalarField > alphat() const
Return the turbulent thermal diffusivity for enthalpy [kg/m/s].
virtual void write()
Write.
virtual void execute()
Execute, currently does nothing.
Templated abstract base class for single-phase incompressible turbulence models.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
virtual tmp< volScalarField > nuEff() const =0
Return the effective viscosity.
defineTypeNameAndDebug(combustionModel, 0)
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
static const NamedEnum< incompressibleField, 6 > incompressibleFieldNames_
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.
bool compressible()
Return true if compressible turbulence model is identified.
Initialise the NamedEnum HashTable from the static list of names.