34bool Foam::functionObjects::norm::calcNorm()
36 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
37 typedef GeometricField<Type, fvsPatchField, surfaceMesh> SurfaceFieldType;
38 typedef DimensionedField<Type, polySurfaceGeoMesh> SurfFieldType;
45 calcNormType<VolFieldType>()
53 calcNormType<SurfaceFieldType>()
61 calcNormType<SurfFieldType>()
69template<
class GeoFieldType>
72 const GeoFieldType&
field = mesh_.lookupObject<GeoFieldType>(fieldName_);
104 case normType::COMPOSITE:
106 const scalar t = mesh_.time().timeOutputValue();
111 divisorPtr_->value(t)
117 case normType::FIELD:
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
word resultName_
Name of result field.
word fieldName_
Name of field to process.
const fvMesh & mesh_
Reference to the fvMesh.
Foam::tmp< GeoFieldType > calcNormType()
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.
A class for managing temporary objects.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensionedScalar stabilise(const dimensionedScalar &x, const dimensionedScalar &y)
DimensionedField< scalar, polySurfaceGeoMesh > polySurfaceScalarField
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensioned< typename typeOfMag< Type >::type > sumMag(const DimensionedField< Type, GeoMesh > &f1, const label comm)