31 bool Foam::functionObjects::grad::calcGrad()
33 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
34 typedef GeometricField<Type, fvsPatchField, surfaceMesh> SurfaceFieldType;
45 else if (foundObject<SurfaceFieldType>(
fieldName_))
bool changing() const
Is mesh changing (topology changing and/or moving)
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
word resultName_
Name of result field.
const fvSolution & solution() const
Return the fvSchemes.
Calculate the gradient of the given field.
bool cache(const word &name) const
Return true if the given field should be cached.
const word fieldName_
Name of field to process.
bool store(const tmp< ObjectType > &tfield)
Store the given field in the objectRegistry.
const fvMesh & mesh_
Reference to the fvMesh.