33 bool Foam::functionObjects::grad::calcGrad()
35 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
36 typedef GeometricField<Type, fvsPatchField, surfaceMesh> SurfaceFieldType;
38 if (foundObject<VolFieldType>(
fieldName_,
false))
47 else if (foundObject<SurfaceFieldType>(
fieldName_,
false))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
word resultName_
Name of result field.
word fieldName_
Name of field to process.
Calculate the gradient of the given field.
bool cache(const word &name) const
True if the given field should be cached.
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.
bool changing() const noexcept
Is mesh changing (topology changing and/or moving)
const fvMesh & mesh_
Reference to the fvMesh.