Go to the documentation of this file.
58 buf <<
'(' <<
s.t() <<
',' <<
s.r() <<
')';
76 const UList<septernion>& ss,
80 septernion sa(w[0]*ss[0]);
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();
111 is.readEnd(
"septernion");
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
quaternion slerp(const quaternion &qa, const quaternion &qb, const scalar t)
static const septernion zero
Input/output from string buffers.
Istream & operator>>(Istream &, directionInfo &)
bool readEnd(const char *funcName)
Quaternion class used to perform rotations in 3D space.
bool readBegin(const char *funcName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const quaternion & r() const
virtual bool check(const char *operation) const
OBJstream os(runTime.globalPath()/outputName)
Vector< scalar > vector
A scalar version of the templated Vector.
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
@ END_LIST
End list [isseparator].
word name(const expressions::valueTypeCode typeCode)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const char *const typeName
@ BEGIN_LIST
Begin list [isseparator].
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)