34 namespace functionObjects
50 bool Foam::functionObjects::Q::calc()
52 if (foundObject<volVectorField>(fieldName_))
54 const volVectorField& U = lookupObject<volVectorField>(fieldName_);
55 const tmp<volTensorField> tgradU(
fvc::grad(U));
61 0.5*(
sqr(
tr(gradU)) -
tr(((gradU) & (gradU))))
66 cannotFindObject<volVectorField>(fieldName_);
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
A list of keyword definitions, which are a keyword followed by any number of values (e...
GeometricField< tensor, fvPatchField, volMesh > volTensorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
GeometricField< vector, fvPatchField, volMesh > volVectorField
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Q(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Macros for easy insertion into run-time selection tables.
Calculate the gradient of the given field.
A class for handling words, derived from string.
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
defineTypeNameAndDebug(Qdot, 0)