Go to the documentation of this file.
58 buf <<
'(' <<
s.t() <<
',' <<
s.r() <<
')';
82 for (label i=1; i<ss.size(); i++)
84 sa.
t() += w[i]*ss[i].t();
87 if ((sa.
r() & ss[i].r()) > 0)
89 sa.
r() += w[i]*ss[i].r();
93 sa.
r() -= w[i]*ss[i].r();
109 is >>
s.t() >>
s.r();
void normalize()
Normalize the quaternion by its magnitude.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from Foam::string.
Septernion class used to perform translations and rotations in 3D space.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
static constexpr const zero Zero
Global zero (0)
quaternion slerp(const quaternion &qa, const quaternion &qb, const scalar t)
Spherical linear interpolation of quaternions.
static const septernion zero
Input/output from string buffers.
Istream & operator>>(Istream &, directionInfo &)
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual bool check(const char *operation) const
Check IOstream status for given operation.
OBJstream os(runTime.globalPath()/outputName)
Vector< scalar > vector
A scalar version of the templated Vector.
Foam::string str() const
Get the string - as Foam::string rather than std::string.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static const septernion I
const quaternion & r() const
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const char *const typeName
Begin list [isseparator].
septernion()=default
Default construct.
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)