Go to the documentation of this file.
47 if (!
mesh.foundObject<vfGradType>(gradName))
49 vfGradType* gradFieldPtr
56 mesh.time().timeName(),
71 mesh.objectRegistry::store(gradFieldPtr);
74 const vfGradType& field =
mesh.lookupObject<vfGradType>(gradName);
76 return const_cast<vfGradType&
>(field);
83 const word& fieldName,
84 const word& resultName,
94 const fvMesh&
mesh = refCast<const fvMesh>(obr_);
101 vfGradType& field = gradField<Type>(resultName, vf.dimensions());
112 vfGradType& field = gradField<Type>(resultName,
sf.dimensions());
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
A class for handling words, derived from string.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
void calcGrad(const word &fieldName, const word &resultName, bool &processed)
Helper function to calculate the gradient of different field types.
Mesh data needed to do the Finite Volume discretisation.
typeOfRank< typename pTraits< arg1 >::cmptType, int(pTraits< arg1 >::rank)+int(pTraits< arg2 >::rank) >::type type
Ostream & endl(Ostream &os)
Add newline and flush stream.
Dimension set for the base types.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
volScalarField sf(fieldObject, mesh)
const objectRegistry & obr_
Reference to the database.
bool foundObject(const word &name) const
Is the named Type found?
Traits class for primitives.
Calculate the gradient of the given field.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > & gradField(const word &gradName, const dimensionSet &dims)
Helper function to create/store/return the gradient field.
Generic GeometricField class.