54 Ostream&
operator<<(Ostream& os,
const quaternion& C);
76 inline static vector twoAxes
86 inline static vector threeAxes
104 ZYX,
ZYZ,
ZXY,
ZXZ,
YXZ,
YXY,
YZX,
YZY,
XYZ,
XYX,
XZY,
XZX 139 const scalar cosTheta,
173 inline scalar
w()
const;
176 inline const vector&
v()
const;
bool contiguous< quaternion >()
Data associated with quaternion type are contiguous.
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)
Graphite solid properties.
tensor R() const
The rotation tensor corresponding the quaternion.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const direction rank
Rank of quaternion is 1.
scalar cmptType
Component type.
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static quaternion unit(const vector &v)
Return the unit quaternion (versor) from the given vector.
Template function to specify if the data of a type are contiguous.
scalar w() const
Scalar part of the quaternion ( = cos(theta/2) for rotation)
quaternion()
Construct null.
static const char *const typeName
tensor rotationTensor(const vector &n1, const vector &n2)
Rotational transformation tensor from unit vector n1 to n2.
tmp< fvMatrix< Type > > operator/(const fvMatrix< Type > &, const volScalarField::Internal &)
const dimensionedScalar c2
Second radiation constant: default SI units: [m K].
void operator+=(const quaternion &)
friend Ostream & operator<<(Ostream &os, const quaternion &C)
tmp< GeometricField< Type, fvPatchField, volMesh > > operator &(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
static const quaternion zero
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
quaternion conjugate(const quaternion &q)
Return the conjugate of the given quaternion.
dimensionedScalar exp(const dimensionedScalar &ds)
friend Istream & operator>>(Istream &is, quaternion &)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
const vector & v() const
Vector part of the quaternion ( = axis of rotation)
Quaternion class used to perform rotations in 3D space.
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
void operator=(const scalar)
tmp< fvMatrix< Type > > operator+(const fvMatrix< Type > &, const fvMatrix< Type > &)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
quaternion normalised() const
dimensioned< scalar > magSqr(const dimensioned< Type > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static const quaternion I
word name(const complex &)
Return a string representation of a complex.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void operator/=(const quaternion &)
vector eulerAngles(const rotationSequence rs) const
Return a vector of euler angles corresponding to the.
quaternion slerp(const quaternion &qa, const quaternion &qb, const scalar t)
Spherical linear interpolation of quaternions.
Ostream & operator<<(Ostream &, const ensightPart &)
rotationSequence
Euler-angle rotation sequence.
dimensioned< scalar > mag(const dimensioned< Type > &)
vector invTransform(const vector &v) const
Rotate the given vector anti-clockwise.
bool operator!=(const particle &, const particle &)
vector transform(const vector &v) const
Rotate the given vector.
void operator*=(const quaternion &)
void operator-=(const quaternion &)