38#ifndef passivePositionParticle_H
39#define passivePositionParticle_H
49class passivePositionParticle;
50Ostream&
operator<<(Ostream&
os,
const passivePositionParticle& ppi);
56class passivePositionParticle
58 public passiveParticle
63 point cachedPosition_;
89 const label celli = -1
100 cachedPosition_(
p.cachedPosition_)
135 return cachedPosition_;
151 p.position = ppi.cachedPosition_;
152 p.celli = ppi.cell();
153 p.facei = ppi.face();
154 p.stepFraction = ppi.stepFraction();
155 p.tetFacei = ppi.tetFace();
156 p.tetPti = ppi.tetPt();
157 p.origProc = ppi.origProc();
158 p.origId = ppi.origId();
173 const std::size_t sizeofFields
181 reinterpret_cast<const char*
>(&
p.position),
streamFormat format() const noexcept
Get the current stream format.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Ostream & write(const char c)
Write character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
vector position() const
Return current particle position.
static void readFields(TrackCloudType &c)
Read the fields associated with the owner cloud.
const polyMesh & mesh() const noexcept
Return the mesh database.
Factory class to read-construct particles (for parallel transfer)
iNew(const polyMesh &mesh)
autoPtr< passivePositionParticle > operator()(Istream &is) const
Copy of base particle but without particle locating and preserving read location.
const point & cachedPosition() const
virtual autoPtr< particle > clone() const
Construct and return a clone.
passivePositionParticle(const polyMesh &mesh, Istream &is, bool readFields, bool newFormat)
Construct from Istream in old format.
passivePositionParticle(const passivePositionParticle &p)
Construct as copy.
Mesh consisting of general polyhedral cells.
OBJstream os(runTime.globalPath()/outputName)
vector point
Point is a vector.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Old particle positions content for OpenFOAM-1706 and earlier.