34 namespace functionObjects
50 void Foam::functionObjects::turbulenceIntensity::writeFileHeader(
const label i)
52 writeHeader(file(),
"I ()");
53 writeCommented(file(),
"Time");
54 writeTabbed(file(),
"min");
55 writeTabbed(file(),
"max");
56 writeTabbed(file(),
"average");
63 Foam::functionObjects::turbulenceIntensity::turbulenceIntensity
76 resetLocalObjectName(
"I");
117 max(uPrime,
mag(turbModel.
U())),
125 <<
"Unable to find turbulence model in the " 144 const scalar minTurbulenceIntensity =
min(turbulenceIntensity).value();
145 const scalar maxTurbulenceIntensity =
max(turbulenceIntensity).value();
146 const scalar avgTurbulenceIntensity = turbulenceIntensity.
average().value();
150 Log <<
" I : min = " << minTurbulenceIntensity
151 <<
", max = " << maxTurbulenceIntensity
152 <<
", average = " << avgTurbulenceIntensity <<
nl;
156 <<
tab << minTurbulenceIntensity
157 <<
tab << maxTurbulenceIntensity
158 <<
tab << avgTurbulenceIntensity
virtual bool write()
Write function.
virtual bool write()
Write function.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar log(const dimensionedScalar &ds)
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual bool write()
Write the turbulenceIntensity field.
const volVectorField & U() const
Access function to velocity field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool master(const label communicator=0)
Am I the master process.
const ObjectType & lookupObject(const word &fieldName) const
Lookup object from the objectRegistry.
Abstract base class for turbulence models (RAS, LES and laminar).
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.
virtual bool read(const dictionary &)
Read optional controls.
bool read(const char *, int32_t &)
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual bool execute()
Calculate the turbulenceIntensity field.
A class for handling words, derived from string.
Evaluates and writes the turbulence intensity field 'I'.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
word name(const complex &)
Return a string representation of a complex.
dimensioned< Type > average() const
Calculate and return arithmetic average.
virtual bool read(const dictionary &)
Read the turbulenceIntensity data.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
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.
#define Log
Report write to Foam::Info if the local log switch is true.
dimensioned< scalar > mag(const dimensioned< Type > &)
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
virtual ~turbulenceIntensity()
Destructor.
addToRunTimeSelectionTable(functionObject, add, dictionary)
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...
const dimensionSet dimVelocity