34 typename Foam::outerProduct<Foam::vector, Type>::type,
45 const fvMesh&
mesh = refCast<const fvMesh>(obr_);
49 vfGradType* gradFieldPtr
71 mesh.objectRegistry::store(gradFieldPtr);
74 const vfGradType& field = mesh.
lookupObject<vfGradType>(gradName);
76 return const_cast<vfGradType&
>(field);
81 void Foam::calcFvcGrad::calcGrad
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());
Mesh data needed to do the Finite Volume discretisation.
Mesh data needed to do the Finite Volume discretisation.
bool foundObject(const word &name) const
Is the named Type found?
A class for handling words, derived from string.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
volScalarField sf(fieldObject, mesh)
Calculate the gradient of the given field.
const Time & time() const
Return the top-level database.
typeOfRank< typename pTraits< arg1 >::cmptType, int(pTraits< arg1 >::rank)+int(pTraits< arg2 >::rank) >::type type
Generic dimensioned Type class.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Dimension set for the base types.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Generic GeometricField class.
Traits class for primitives.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)