33 const std::size_t Foam::particle::sizeofPosition_
35 offsetof(particle, facei_) - offsetof(particle, coordinates_)
38 const std::size_t Foam::particle::sizeofFields_
40 sizeof(particle) - offsetof(particle, coordinates_)
62 is >> coordinates_ >> celli_ >> tetFacei_ >> tetPti_;
66 is >> facei_ >> stepFraction_ >> behind_ >> nBehind_
67 >> origProc_ >> origId_;
74 is.
read(reinterpret_cast<char*>(&coordinates_), sizeofFields_);
78 is.
read(reinterpret_cast<char*>(&coordinates_), sizeofPosition_);
83 is.
check(
"particle::particle(Istream&, bool)");
98 os.
write(reinterpret_cast<const char*>(&coordinates_), sizeofPosition_);
102 os.
check(
"particle::writePosition(Ostream& os, bool) const");
125 reinterpret_cast<const char*>(&p.coordinates_),
126 particle::sizeofFields_
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject *> &storedObjects)
Read the selected GeometricFields of the specified type.
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)...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
virtual Istream & read(token &)=0
Return next token from stream.
particle(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from components.
Inter-processor communications stream.
streamFormat format() const
Return current stream format.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writePosition(Ostream &) const
Write the particle position and cell.
Ostream & operator<<(Ostream &, const ensightPart &)
virtual Ostream & write(const token &)=0
Write next token to stream.
Mesh consisting of general polyhedral cells.
A class for handling character strings derived from std::string.
static string propertyList()