151#ifndef Foam_functionObjects_norm_H
152#define Foam_functionObjects_norm_H
187 static const Enum<normType> normTypeNames;
196 autoPtr<Function1<scalar>> divisorPtr_;
199 word divisorFieldName_;
212 template<
class GeoFieldType>
217 tmp<volScalarField> fieldNorm
219 const GeometricField<Type, fvPatchField, volMesh>&
224 tmp<surfaceScalarField> fieldNorm
226 const GeometricField<Type, fvsPatchField, surfaceMesh>&
231 tmp<polySurfaceScalarField> fieldNorm
264 virtual ~norm() =
default;
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
Generic GeometricField class.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
fieldExpression(const word &name, const Time &runTime, const dictionary &dict, const word &fieldName=word::null, const word &resultName=word::null)
Construct from name, Time and dictionary.
virtual bool calc()=0
Calculate the components of the field and return true if successful.
Normalises an input field with a chosen norm, and outputs a new normalised field.
norm(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
Foam::tmp< GeoFieldType > calcNormType()
norm(const norm &)=delete
No copy construct.
virtual ~norm()=default
Destructor.
void operator=(const norm &)=delete
No copy assignment.
TypeName("norm")
Runtime type information.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Fields (face and point) for polySurface.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.