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();
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Input/output from string buffers.
Foam::string str() const
Get the string - as Foam::string rather than std::string.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
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...
void size(const label n)
Older name for setAddressableSize.
quaternion & normalise()
Inplace normalise the quaternion by its magnitude.
Septernion class used to perform translations and rotations in 3D space.
septernion()=default
Default construct.
const quaternion & r() const
static const septernion zero
static const septernion I
static const char *const typeName
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
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))
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
quaternion slerp(const quaternion &qa, const quaternion &qb, const scalar t)
Spherical linear interpolation of quaternions.