35 namespace functionObjects
121 if (dict.
found(
"field"))
132 prefix_ = momentumTransportModel::typeName +
':';
140 if (fieldSet_.size())
142 Info<<
"storing fields:" <<
nl;
152 Info<<
"no fields requested to be stored" <<
nl <<
endl;
171 thermophysicalTransportModel::typeName
179 const word&
f = iter.key();
180 switch (compressibleFieldNames_[f])
184 processField<scalar>(
f, model.k());
189 processField<scalar>(
f, model.epsilon());
192 case compressibleField::omega:
194 processField<scalar>(
f, model.omega());
199 processField<scalar>(
f, model.nut());
202 case compressibleField::nuEff:
204 processField<scalar>(
f, model.nuEff());
207 case compressibleField::alphaEff:
214 processField<symmTensor>(
f, model.sigma());
217 case compressibleField::devTau:
219 processField<symmTensor>(
f, model.devTau());
237 const word&
f = iter.key();
238 switch (compressibleFieldNames_[f])
242 processField<scalar>(
f, model.
k());
247 processField<scalar>(
f, model.
epsilon());
250 case compressibleField::omega:
252 processField<scalar>(
f, model.
omega());
257 processField<scalar>(
f, model.
nut());
260 case compressibleField::nuEff:
262 processField<scalar>(
f, model.
nuEff());
267 processField<symmTensor>(
f, model.
sigma());
270 case compressibleField::devTau:
272 processField<symmTensor>(
f, model.
devTau());
296 const word&
f = iter.key();
297 switch (incompressibleFieldNames_[f])
301 processField<scalar>(
f, model.
k());
306 processField<scalar>(
f, model.
epsilon());
309 case incompressibleField::omega:
311 processField<scalar>(
f, model.
omega());
316 processField<scalar>(
f, model.
nut());
319 case incompressibleField::nuEff:
321 processField<scalar>(
f, model.
nuEff());
326 processField<symmTensor>(
f, model.
sigma());
329 case incompressibleField::devSigma:
331 processField<symmTensor>(
f, model.
devSigma());
345 <<
"Turbulence model not found in database, deactivating" 361 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)
virtual tmp< volSymmTensorField > sigma() const =0
Return the stress tensor [m^2/s^2].
A list of keyword definitions, which are a keyword followed by any number of values (e...
turbulenceFields(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
const compressibleMomentumTransportModel & momentumTransport() const
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
static const NamedEnum< incompressibleField, 7 > incompressibleFieldNames_
label k
Boltzmann constant.
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.
static const NamedEnum< compressibleField, 8 > compressibleFieldNames_
bool read(const char *, int32_t &)
A class for handling words, derived from string.
virtual tmp< volSymmTensorField > devSigma() const
Return the effective stress tensor.
static word groupName(Name name, const word &group)
static const word null
An empty word.
virtual bool read(const dictionary &)
Read the controls.
virtual bool write()
Do nothing.
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
virtual ~turbulenceFields()
Destructor.
word name(const complex &)
Return a string representation of a complex.
defineTypeNameAndDebug(Qdot, 0)
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
Abstract base class for thermophysical transport models (RAS, LES and laminar).
List< word > wordList
A List of words.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
#define R(A, B, C, D, E, F, K, M)
virtual tmp< volScalarField > omega() const =0
Return the turbulence specific dissipation rate.
virtual tmp< volScalarField > alphaEff() const =0
Effective thermal turbulent diffusivity of mixture [kg/m/s].
virtual tmp< volSymmTensorField > devTau() const =0
Return the effective stress tensor including the laminar stress.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual bool execute()
Calculate turbulence fields.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Base class for single-phase incompressible turbulence models.
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
virtual tmp< volScalarField > nuEff() const =0
Return the effective viscosity.
Base class for single-phase compressible turbulence models.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.