Go to the documentation of this file.
41 namespace functionObjects
58 auto*
turb = findObject<cmpTurbModel>
72 "div(((rho*nuEff)*dev2(T(grad(U)))))"
85 const auto*
turb = findObject<icoTurbModel>
98 "div((nuEff*dev2(T(grad(U)))))"
102 turb->nuEff(),
turb->U(),
"laplacian(nuEff,U)"
129 lookupObject<surfaceScalarField>(phiName_);
148 mesh_.objectRegistry::store(momentPtr);
160 if (
dict.readIfPresent<
word>(
"p", pName_))
164 if (
dict.readIfPresent<
word>(
"U", UName_))
169 if (
dict.readIfPresent<
word>(
"phi", phiName_))
171 Info<<
" phi: " << phiName_ <<
endl;
182 lookupObjectRef<volVectorField>(
"momentError");
187 lookupObject<surfaceScalarField>(phiName_);
205 lookupObjectRef<volVectorField>(
"momentError");
Defines the attributes of an object for which implicit objectRegistry management is supported,...
tmp< volVectorField > divDevRhoReff()
Return the effective viscous stress (laminar + turbulent).
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
const dimensionSet dimVelocity
bool read(const char *buf, int32_t &val)
Same as readInt32.
static const word propertiesName
Default name of the turbulence properties dictionary.
Calculate the divergence of the given field.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void calcMomentError()
Calculate the momentum error.
dimensionedSymmTensor dev2(const dimensionedSymmTensor &dt)
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
virtual bool execute()
Execute.
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual bool read(const dictionary &)
Read the forces data.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Read optional controls.
Macros for easy insertion into run-time selection tables.
Calculate the laplacian of the given field.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
Calculate the gradient of the given field.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
defineTypeNameAndDebug(ObukhovLength, 0)
Templated abstract base class for single-phase incompressible turbulence models.
static const GeometricField< vector, fvPatchField, volMesh > & null()
Return a null geometric field.
const dimensionSet dimVolume(pow3(dimLength))
compressible::turbulenceModel & turb
virtual bool write()
Write.
momentumError(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.