34 namespace functionObjects
50 bool Foam::functionObjects::Q::calc()
55 const tmp<volTensorField> tgradU(
fvc::grad(
U));
61 0.5*(
sqr(
tr(gradU)) -
tr(((gradU) & (gradU))))
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base-class for Time/database functionObjects.
Calculates and outputs the second invariant of the velocity gradient tensor [1/s^2].
Q(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
word resultName_
Name of result field.
const word fieldName_
Name of field to process.
ObjectType & store(const tmp< ObjectType > &tfield)
Store the given field in the objectRegistry.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
Calculate the gradient of the given field.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
addToRunTimeSelectionTable(functionObject, fvModel, dictionary)
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
VolField< vector > volVectorField
void tr(pointPatchField< scalar > &, const pointPatchField< tensor > &)
VolField< tensor > volTensorField
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.