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;
284 inline bool operator==(
const quaternion& q1,
const quaternion& q2);
285 inline bool operator!=(
const quaternion& q1,
const quaternion& q2);
286 inline quaternion
operator+(
const quaternion& q1,
const quaternion& q2);
287 inline quaternion
operator-(
const quaternion& q);
288 inline quaternion
operator-(
const quaternion& q1,
const quaternion& q2);
289 inline scalar
operator&(
const quaternion& q1,
const quaternion& q2);
290 inline quaternion
operator*(
const quaternion& q1,
const quaternion& q2);
291 inline quaternion
operator/(
const quaternion& q1,
const quaternion& q2);
292 inline quaternion
operator*(
const scalar
s,
const quaternion& q);
293 inline quaternion
operator*(
const quaternion& q,
const scalar
s);
294 inline quaternion
operator/(
const quaternion& q,
const scalar
s);
static const Foam::dimensionedScalar C("C", Foam::dimTemperature, 234.5)
Graphite solid properties.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Quaternion class used to perform rotations in 3D space.
const vector & v() const
Vector part of the quaternion ( = axis of rotation)
quaternion normalised() const
quaternion()
Construct null.
vector eulerAngles(const rotationSequence rs) const
Return a vector of euler angles corresponding to the.
friend Ostream & operator<<(Ostream &os, const quaternion &C)
void operator-=(const quaternion &)
static const direction rank
Rank of quaternion is 1.
rotationSequence
Euler-angle rotation sequence.
tensor R() const
The rotation tensor corresponding the quaternion.
void operator+=(const quaternion &)
scalar w() const
Scalar part of the quaternion ( = cos(theta/2) for rotation)
static quaternion unit(const vector &v)
Return the unit quaternion (versor) from the given vector.
void operator*=(const quaternion &)
void operator=(const scalar)
vector transform(const vector &v) const
Rotate the given vector.
scalar cmptType
Component type.
static const quaternion I
friend Istream & operator>>(Istream &is, quaternion &)
static const quaternion zero
vector invTransform(const vector &v) const
Rotate the given vector anti-clockwise.
static const char *const typeName
void operator/=(const quaternion &)
A class for handling words, derived from string.
Template function to specify if the data of a type are contiguous.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const dimensionedScalar c2
Second radiation constant: default SI units: [m K].
bool operator!=(const particle &, const particle &)
dimensionedScalar exp(const dimensionedScalar &ds)
tensor rotationTensor(const vector &n1, const vector &n2)
Rotational transformation tensor from unit vector n1 to n2.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
word name(const bool)
Return a word representation of a bool.
bool contiguous< quaternion >()
Data associated with quaternion type are contiguous.
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Istream & operator>>(Istream &, pistonPointEdgeData &)
dimensioned< scalar > mag(const dimensioned< Type > &)
tmp< VolField< Type > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
tmp< fvMatrix< Type > > operator+(const fvMatrix< Type > &, const fvMatrix< Type > &)
quaternion conjugate(const quaternion &q)
Return the conjugate of the given quaternion.
quaternion slerp(const quaternion &qa, const quaternion &qb, const scalar t)
Spherical linear interpolation of quaternions.
quaternion normalise(const quaternion &q)
Return the normalised (unit) quaternion of the given quaternion.
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
tmp< fvMatrix< Type > > operator/(const fvMatrix< Type > &, const volScalarField::Internal &)