37 namespace functionObjects
56 phaseName_(
word::null)
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"
Macros for easy insertion into run-time selection tables.
static word groupName(Name name, const word &group)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Base class for single-phase compressible turbulence models.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
virtual const word & type() const =0
Runtime type information.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual bool read(const dictionary &)
Read optional controls.
Calculates and writes the shear-stress as the volSymmTensorField field 'shearStress'.
shearStress(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
virtual ~shearStress()
Destructor.
virtual bool execute()
Calculate the shearStress field.
virtual bool write()
Do nothing.
virtual bool read(const dictionary &)
Read the data.
FunctionObject base class for managing a list of objects on behalf of the inheriting function object,...
void resetLocalObjectName(const word &name)
Reset the list of local object names from a single word.
virtual bool read(const dictionary &)
Read the list of objects to be written.
virtual bool write()
Write function.
Base class for single-phase incompressible turbulence models.
A class for handling words, derived from string.
static const word null
An empty word.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
errorManipArg< error, int > exit(error &err, const int errNo=1)
word name(const bool)
Return a word representation of a bool.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.