31template<
class CloudType>
42 cloud::geometryTypeNames[geomType],
49 geometryType_(geomType),
56template<
class CloudType>
63template<
class CloudType>
68 switch (geometryType_)
74 iter().writeCoordinates(
os);
83 iter().writePosition(
os);
96template<
class CloudType>
112 for (label i=0; i<len; ++i)
148 <<
"incorrect first token, expected <int> or '(', found "
ParticleType particleType
Templated base class for dsmc cloud.
Helper IO class to read and write particle coordinates (positions).
virtual void readData(Istream &, CloudType &)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool good() const noexcept
True if next operation might succeed.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
char readEndList(const char *funcName)
End read of list data, ends with ')' or '}'.
char readBeginList(const char *funcName)
Begin read of list data, starts with '(' or '{'.
void putBack(const token &tok)
Put back a token. Only a single put back is permitted.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A cloud is a registry collection of lagrangian particles.
geometryType
Cloud geometry type (internal or IO representations)
@ COORDINATES
barycentric coordinates
virtual bool write()
Write the output fields.
Mesh consisting of general polyhedral cells.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
A token holds an item read from Istream.
bool isPunctuation() const noexcept
Token is PUNCTUATION.
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
bool isLabel() const noexcept
Token is LABEL.
label labelToken() const
Return label value.
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.