Go to the documentation of this file.
35 offsetof(particle, faceI_) - offsetof(particle, position_)
40 sizeof(particle) - offsetof(particle, position_)
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_),
streamFormat format() const
Return current stream format.
scalar stepFraction_
Fraction of time-step completed.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling character strings derived from std::string.
label faceI_
Face index if the particle is on a face otherwise -1.
This function object reads fields from the time directories and adds them to the mesh database for fu...
void writePosition(Ostream &) const
Write the particle position and cell.
Mesh consisting of general polyhedral cells.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Ostream & write(const token &)=0
Write next token to stream.
static string propertyList()
Ostream & operator<<(Ostream &, const edgeMesh &)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
static string propertyList_
String representation of properties.
particle(const polyMesh &mesh, const vector &position, const label cellI, const label tetFaceI, const label tetPtI)
Construct from components.
label tetPtI_
Index of the point on the face that defines the decomposed.
label cellI_
Index of the cell it is in.
Inter-processor communications stream.
vector position_
Position of particle.
label tetFaceI_
Index of the face that owns the decomposed tet that the.
static const std::size_t sizeofFields_
Size in bytes of the fields.
label origProc_
Originating processor id.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label origId_
Local particle id on originating processor.
virtual Istream & read(token &)=0
Return next token from stream.
static const std::size_t sizeofPosition_
Size in bytes of the position data.