35namespace functionObjects
45 Foam::functionObjects::norm::normType
47Foam::functionObjects::norm::normTypeNames
49 { normType::L1 ,
"L1" },
50 { normType::L2 ,
"L2" },
51 { normType::LP ,
"Lp" },
52 { normType::MAX ,
"max" },
53 { normType::COMPOSITE ,
"composite" },
54 { normType::FIELD ,
"divisorField" }
66bool Foam::functionObjects::norm::calc()
72 || calcNorm<sphericalTensor>()
73 || calcNorm<symmTensor>()
91 divisorFieldName_(
word::null),
107 norm_ = normTypeNames.get(
"norm",
dict);
109 if (norm_ == normType::LP)
114 if (norm_ == normType::COMPOSITE)
121 <<
"The norm 'composite' needs the input entry 'divisor'."
126 if (norm_ == normType::FIELD)
128 divisorFieldName_ =
dict.get<
word>(
"divisorField");
133 <<
"The norm 'field' needs the input entry 'divisorField'."
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
static MinMax< scalar > ge(const scalar &minVal)
A semi-infinite range from minVal to the type max.
virtual bool read()
Re-read model coefficients if they have changed.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for Time/database function objects.
Watches for presence of the named trigger file in the case directory and signals a simulation stop (o...
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
Normalises an input field with a chosen norm, and outputs a new normalised field.
virtual bool read(const dictionary &)
Read the dictionary data.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.