47 scalar maxVal =
mag(axis[maxCmpt]);
51 const scalar val =
mag(axis[cmpt]);
63 dirn.component(cmpt) = ((axis[maxCmpt] < 0) ? -1 : 1);
74 const word& modelType,
81 if (modelType.empty())
86 auto* ctorPtr = dictionaryConstructorTable(modelType);
95 *dictionaryConstructorTablePtr_
Macros for easy insertion into run-time selection tables.
const Cmpt & component(const direction) const
static constexpr direction nComponents
Number of components in this vector space.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
User specification of a coordinate rotation.
static vector findOrthogonal(const vector &axis)
Determine best-guess for an orthogonal axis.
static autoPtr< coordinateRotation > New(const word &modelType, const dictionary &dict)
Select construct the specified coordinate rotation type.
A coordinateRotation specified using global axes.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling words, derived from Foam::string.
#define defineTypeName(Type)
Define the typeName.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
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).
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.