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_)
54 stepFractionBehind_(0),
61 is >> coordinates_ >> celli_ >> tetFacei_ >> tetPti_;
65 is >> facei_ >> stepFraction_ >> stepFractionBehind_
66 >> nTracksBehind_ >> origProc_ >> origId_;
73 is.
read(
reinterpret_cast<char*
>(&coordinates_), sizeofFields_);
77 is.
read(
reinterpret_cast<char*
>(&coordinates_), sizeofPosition_);
82 is.
check(
"particle::particle(Istream&, bool)");
97 os.
write(
reinterpret_cast<const char*
>(&coordinates_), sizeofPosition_);
101 os.
check(
"particle::writePosition(Ostream& os, bool) const");
124 reinterpret_cast<const char*
>(&
p.coordinates_),
125 particle::sizeofFields_
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
streamFormat format() const
Return current stream format.
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)....
virtual Istream & read(token &)=0
Return next token from stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & write(const char)=0
Write character.
Inter-processor communications stream.
static void readFields(TrackCloudType &c)
Read the fields associated with the owner cloud.
particle(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label facei)
Construct from components.
static string propertyList()
void writePosition(Ostream &) const
Write the particle position and cell.
static string propertyList_
String representation of properties.
A class for handling character strings derived from std::string.
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.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)