33 const word& fieldName,
39 const word scopedName = modelName +
':' + fieldName;
41 if (obr_.foundObject<FieldType>(scopedName))
44 const_cast<FieldType&
>(obr_.lookupObject<FieldType>(scopedName));
47 else if (obr_.found(scopedName))
50 <<
"Cannot store turbulence field " << scopedName
51 <<
" since an object with that name already exists" 63 obr_.time().timeName(),
65 IOobject::READ_IF_PRESENT,
82 const scalar Cmu = 0.09;
95 k.mesh().time().timeName(),
tmp< volScalarField > omega(const Model &model) const
Return omega calculated from k and epsilon.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Generic GeometricField class.
label k
Boltzmann constant.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A class for handling words, derived from string.
#define WarningInFunction
Report a warning using Foam::Warning.
void processField(const word &fieldName, const tmp< GeometricField< Type, fvPatchField, volMesh >> &tvalue)
Process the turbulence field.
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...