Go to the documentation of this file.
31 template<
class CloudType>
42 cloud::geometryTypeNames[geomType],
49 geometryType_(geomType),
56 template<
class CloudType>
63 template<
class CloudType>
66 os << cloud_.size() <<
nl << token::BEGIN_LIST <<
nl;
68 switch (geometryType_)
70 case cloud::geometryType::COORDINATES:
74 iter().writeCoordinates(
os);
79 case cloud::geometryType::POSITIONS:
83 iter().writePosition(
os);
90 os << token::END_LIST <<
endl;
96 template<
class CloudType>
103 const bool newFormat = (geometryType_ == cloud::geometryType::COORDINATES);
112 for (label i=0; i<len; ++i)
133 while (!tok.isPunctuation(token::END_LIST))
148 <<
"incorrect first token, expected <int> or '(', found "
Defines the attributes of an object for which implicit objectRegistry management is supported,...
label labelToken() const
Return label value.
bool isLabel() const noexcept
Token is LABEL.
virtual bool writeData(Ostream &os) const
char readBeginList(const char *funcName)
Begin read of list data, starts with '(' or '{'.
char readEndList(const char *funcName)
End read of list data, ends with ')' or '}'.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A token holds an item read from Istream.
Mesh consisting of general polyhedral cells.
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
geometryType
Cloud geometry type (internal or IO representations)
bool isPunctuation() const noexcept
Token is PUNCTUATION.
Templated base class for dsmc cloud.
virtual bool write(const bool valid=true) const
virtual bool check(const char *operation) const
Check IOstream status for given operation.
OBJstream os(runTime.globalPath()/outputName)
ParticleType particleType
errorManipArg< error, int > exit(error &err, const int errNo=1)
IOPosition(const CloudType &c, cloud::geometryType geomType=cloud::geometryType::COORDINATES)
Construct from cloud.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
forAllConstIters(mixture.phases(), phase)
void putBack(const token &tok)
Put back a token. Only a single put back is permitted.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
const dimensionedScalar c
Speed of light in a vacuum.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void readData(Istream &, CloudType &)