33 const std::size_t Foam::particle::sizeofPosition_
35 offsetof(particle, facei_) - offsetof(particle, position_)
38 const std::size_t Foam::particle::sizeofFields_
40 sizeof(particle) - offsetof(particle, position_)
80 is.
read(reinterpret_cast<char*>(&
position_), sizeofPosition_);
85 is.
check(
"particle::particle(Istream&, bool)");
97 os.
write(reinterpret_cast<const char*>(&
position_), sizeofPosition_);
101 os.
check(
"particle::writePosition(Ostream& os, bool) const");
122 reinterpret_cast<const char*>(&p.
position_),
123 particle::sizeofFields_
streamFormat format() const
Return current stream format.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
label tetPtI_
Index of the point on the face that defines the decomposed.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
particle(const polyMesh &mesh, const vector &position, const label celli, const label tetFacei, const label tetPtI)
Construct from components.
vector position_
Position of particle.
label origId_
Local particle id on originating processor.
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.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
label origProc_
Originating processor id.
virtual Istream & read(token &)=0
Return next token from stream.
Inter-processor communications stream.
scalar stepFraction_
Fraction of time-step completed.
label celli_
Index of the cell it is in.
label tetFacei_
Index of the face that owns the decomposed tet that the.
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()
label facei_
Face index if the particle is on a face otherwise -1.