36 bool Foam::functionObjects::mag::calcMag()
38 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
39 typedef GeometricField<Type, fvsPatchField, surfaceMesh> SurfaceFieldType;
40 typedef DimensionedField<Type, polySurfaceGeoMesh> SurfFieldType;
42 if (foundObject<VolFieldType>(
fieldName_,
false))
50 else if (foundObject<SurfaceFieldType>(
fieldName_,
false))
58 else if (foundObject<SurfFieldType>(
fieldName_,
false))
word resultName_
Name of result field.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
word fieldName_
Name of field to process.
Fields (face and point) for polySurface.
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.