128 if (
mag(tr.
r().
R() -
I) > small)
#define forAll(list, i)
Loop across all elements in list.
tensor R() const
The rotation tensor corresponding the quaternion.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
void clear() const
If object pointer points to valid object:
T & ref() const
Return non-const reference or generate a fatal error.
void size(const label)
Override size to be inconsistent with allocated storage.
volVectorField vectorField(fieldObject, mesh)
Septernion class used to perform translations and rotations in 3D space.
static const Identity< scalar > I
Quaternion class used to perform rotations in 3D space.
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
#define TFOR_ALL_F_OP_FUNC_S_F(typeF1, f1, OP, FUNC, typeS, s, typeF2, f2)
void transformPoints(vectorField &, const spatialTransform &, const vectorField &)
Transform given vectorField of coordinates with the given spatialTransform.
dimensioned< scalar > mag(const dimensioned< Type > &)
const quaternion & r() const
A class for managing temporary objects.
High performance macro functions for Field<Type> algebra. These expand using either array element acc...
#define TFOR_ALL_F_OP_F_OP_S(typeF1, f1, OP1, typeF2, f2, OP2, typeS, s)
dimensionSet transform(const dimensionSet &)