35 namespace functionObjects
45 Foam::functionObjects::norm::normType
47 Foam::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" }
66 bool Foam::functionObjects::norm::calc()
72 || calcNorm<sphericalTensor>()
73 || calcNorm<symmTensor>()
107 norm_ = normTypeNames.get(
"norm",
dict);
109 if (norm_ == normType::LP)
114 if (norm_ == normType::COMPOSITE)
116 divisorPtr_ = Function1<scalar>::New(
"divisor",
dict, &mesh_);
121 <<
"The norm 'composite' needs the input entry 'divisor'." 126 if (norm_ == normType::FIELD)
128 divisorFieldName_ =
dict.get<word>(
"divisorField");
130 if (divisorFieldName_.empty())
133 <<
"The norm 'field' needs the input entry 'divisorField'."
defineTypeNameAndDebug(ObukhovLength, 0)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
norm(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
virtual bool read(const dictionary &dict)
Read the fieldExpression data.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
bool read(const char *buf, int32_t &val)
Same as readInt32.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
static MinMax< scalar > ge(const scalar &minVal)
A semi-infinite range from minVal to the type max.
errorManip< error > abort(error &err)
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Intermediate class for handling field expression function objects (e.g. blendingFactor etc...
virtual bool read(const dictionary &)
Read the dictionary data.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...