36 const word& fieldName,
48 (*fldPtr) == tvalue();
52 fldPtr =
new FieldType
84 model.k()/(model.omega() + omega0)
97 const scalar Cmu = 0.09;
104 pow(Cmu, 0.75)*
pow(model.k(), 1.5)/(model.epsilon() + eps0)
109 template<
class Model>
125 uPrime/
max(
max(uPrime,
mag(model.U())), U0)
tmp< volScalarField > I(const Model &model) const
Return turbulence intensity, I, calculated from k and U.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
bool store()
Register object with its registry and transfer ownership to the registry.
Generic GeometricField class.
Ignore writing from objectRegistry::writeObject()
const dimensionSet dimless
Dimensionless.
word prefix_
Name of output-field prefix.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
A class for handling words, derived from Foam::string.
Type * getObjectPtr(const word &name, const bool recursive=false) const
Return non-const pointer to the object of the given Type, using a const-cast to have it behave like a...
const Time & time() const noexcept
Return time registry.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
tmp< volScalarField > nuTilda(const Model &model) const
Return nuTilda calculated from k and omega.
void processField(const word &fieldName, const tmp< GeometricField< Type, fvPatchField, volMesh >> &tvalue)
Process the turbulence field.
const objectRegistry & obr_
Reference to the region objectRegistry.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Reading is optional [identical to READ_IF_PRESENT].
tmp< volScalarField > L(const Model &model) const
Return integral length scale, L, calculated from k and epsilon.
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
Request registration (bool: true)
Do not request registration (bool: false)
const dimensionSet dimVelocity