47 scalar maxVal =
mag(axis[maxCmpt]);
49 for (
direction cmpt = 1; cmpt < vector::nComponents; ++cmpt)
51 const scalar val =
mag(axis[cmpt]);
60 direction cmpt = ((maxCmpt == vector::nComponents-1) ? 0 : (maxCmpt+1));
63 dirn.component(cmpt) = ((axis[maxCmpt] < 0) ? -1 : 1);
74 const word& modelType,
81 if (modelType.empty())
86 auto* ctorPtr = dictionaryConstructorTable(modelType);
95 *dictionaryConstructorTablePtr_
User specification of a coordinate rotation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
Macros for easy insertion into run-time selection tables.
defineTypeName(manifoldCellsMeshObject)
A class for handling words, derived from Foam::string.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
static vector findOrthogonal(const vector &axis)
Determine best-guess for an orthogonal axis.
A coordinateRotation specified using global axes.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
static autoPtr< coordinateRotation > New(const word &modelType, const dictionary &dict)
Select construct the specified coordinate rotation type.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
static constexpr const zero Zero
Global zero (0)