47 scalar maxVal =
mag(axis[maxCmpt]);
51 const scalar val =
mag(axis[cmpt]);
63 dirn.
component(cmpt) = ((axis[maxCmpt] < 0) ? -1 : 1);
77 if (modelType.empty())
79 modelType = coordinateRotations::axes::typeName_();
82 auto* ctorPtr = dictionaryConstructorTable(modelType);
91 *dictionaryConstructorTablePtr_
Macros for easy insertion into run-time selection tables.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
const Cmpt & component(const direction) const
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.
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
static constexpr direction nComponents
Number of components in bool is 1.
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)
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.