37 namespace functionObjects
92 const word momentumTransportModelName
97 if (mesh_.foundObject<cmpModel>(momentumTransportModelName))
99 const cmpModel& model =
100 mesh_.lookupObject<cmpModel>(momentumTransportModelName);
102 return store(fieldName, model.devTau());
104 else if (mesh_.foundObject<icoModel>(momentumTransportModelName))
106 const icoModel& model =
107 mesh_.lookupObject<icoModel>(momentumTransportModelName);
109 return store(fieldName, model.devSigma());
114 <<
"Unable to find compressible turbulence model " 115 << momentumTransportModelName <<
" in the database"
virtual bool write()
Write function.
errorManipArg< error, int > exit(error &err, const int errNo=1)
shearStress(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual bool execute()
Calculate the shearStress field.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &)
Read optional controls.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
static const word null
An empty word.
virtual bool read(const dictionary &)
Read the data.
defineTypeNameAndDebug(Qdot, 0)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual bool write()
Do nothing.
FunctionObject base class for managing a list of objects on behalf of the inheriting function object...
virtual bool read(const dictionary &)
Read the list of objects to be written.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual ~shearStress()
Destructor.
Abstract base class for turbulence models (RAS, LES and laminar).
Abstract base class for turbulence models (RAS, LES and laminar).