36 bool Foam::functionObjects::magSqr::calcMagSqr()
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.
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.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)