33 template<
class FieldType>
34 bool Foam::functionObjects::div::calcDiv()
36 const auto* fieldptr = cfindObject<FieldType>(
fieldName_);
50 fvc::div(subsetter.interpolate(*fieldptr,
false)),
51 subsetter.subMesh().thisDb()
65 bool Foam::functionObjects::div::writeField()
67 typedef GeometricField<Type, fvPatchField, volMesh> volFieldType;
69 const fvMesh& subMesh = zoneSubSetPtr_->subsetter().subMesh();
70 const auto* fieldptr = subMesh.findObject<volFieldType>(resultName_);
74 tmp<volFieldType> tfield = zoneSubSetPtr_->mapToZone<Type>(*fieldptr);