34 bool 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>()
69 template<
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:
dimensioned< typename typeOfMag< Type >::type > sumMag(const DimensionedField< Type, GeoMesh > &f1)
word resultName_
Name of result field.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
word fieldName_
Name of field to process.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar stabilise(const dimensionedScalar &x, const dimensionedScalar &y)
Generic GeometricField class.
bool store(word &fieldName, const tmp< ObjectType > &tfield, bool cacheable=false)
Store the field in the (sub) objectRegistry under the given name.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
A class for managing temporary objects.
const fvMesh & mesh_
Reference to the fvMesh.