Go to the documentation of this file.
36 const word& fieldName,
42 const word scopedName = modelName_ +
':' + fieldName;
44 FieldType* fldPtr = obr_.getObjectPtr<FieldType>(scopedName);
48 (*fldPtr) == tvalue();
50 else if (obr_.found(scopedName))
53 <<
"Cannot store turbulence field " << scopedName
54 <<
" since an object with that name already exists"
66 obr_.time().timeName(),
68 IOobject::READ_IF_PRESENT,
85 const scalar Cmu = 0.09;
96 k.mesh().time().timeName(),
100 epsilon.boundaryField().types()
105 template<
class Model>
115 model.k()/omega(model)
120 template<
class Model>
127 const scalar Cmu = 0.09;
142 template<
class Model>
156 uPrime/
max(
max(uPrime,
mag(model.U())), U0)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void processField(const word &fieldName, const tmp< GeometricField< Type, fvPatchField, volMesh >> &tvalue)
Process the turbulence field.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
const dimensionSet dimVelocity
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< volScalarField > L(const Model &model) const
Return integral length scale, L, calculated from k and epsilon.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
tmp< volScalarField > nuTilda(const Model &model) const
Return nuTilda calculated from k and omega.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
tmp< volScalarField > I(const Model &model) const
Return turbulence intensity, I, calculated from k and U.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label k
Boltzmann constant.
tmp< volScalarField > omega(const Model &model) const
Return omega calculated from k and epsilon.
#define WarningInFunction
Report a warning using Foam::Warning.