34 namespace functionObjects
58 fieldName_(
dict.lookupOrDefault<
word>(
"field",
"U")),
82 resetLocalObjectNames(
wordList{resultName_,
"magSqrDevGradU"});
96 if (foundObject<volVectorField>(fieldName_))
104 -(devGradU && devGradU.
T())
107 store(
"magSqrDevGradU",
magSqr(devGradU)),
116 cannotFindObject<volVectorField>(fieldName_);
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
tmp< GeometricField< Type, GeoMesh, Field > > T() const
Return transpose (only if it is a tensor field)
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 writes a field in the range -1 to 1, in which:
virtual ~flowType()
Destructor.
virtual wordList fields() const
Return the list of fields required.
flowType(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual bool execute()
Calculate the flowType fields.
virtual bool write()
Write the flowType fields.
virtual bool read(const dictionary &)
Read the data.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual bool read(const dictionary &)
Read optional controls.
FunctionObject base class for managing a list of objects on behalf of the inheriting function object,...
virtual bool read(const dictionary &)
Read the list of objects to be written.
virtual bool write()
Write function.
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)
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
List< word > wordList
A List of words.
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void dev(pointPatchField< tensor > &, const pointPatchField< tensor > &)
const dimensionSet & dimRate
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< scalar, GeoMesh, Field > > magSqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.