38 #ifndef Foam_passivePositionParticle_H 39 #define Foam_passivePositionParticle_H 49 class passivePositionParticle;
50 Ostream&
operator<<(Ostream&
os,
const passivePositionParticle& ppi);
56 class passivePositionParticle
58 public passiveParticle
63 point cachedPosition_;
89 const label celli = -1
100 cachedPosition_(
p.cachedPosition_)
137 return cachedPosition_;
153 p.position = ppi.cachedPosition_;
154 p.celli = ppi.cell();
155 p.facei = ppi.face();
156 p.stepFraction = ppi.stepFraction();
157 p.tetFacei = ppi.tetFace();
158 p.tetPti = ppi.tetPt();
159 p.origProc = ppi.origProc();
160 p.origId = ppi.origId();
175 const std::size_t sizeofFields
177 sizeof(particle::positionsCompat1706)
178 - offsetof(particle::positionsCompat1706,
position)
183 reinterpret_cast<const char*>(&
p.position),
passivePositionParticle(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from components (known location)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Old particle positions content for OpenFOAM-1706 and earlier.
autoPtr< passivePositionParticle > operator()(Istream &is) const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
virtual autoPtr< particle > clone() const
Construct and return a clone.
const point & cachedPosition() const noexcept
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
const polyMesh & mesh() const noexcept
Return the mesh database.
vector point
Point is a vector.
static void readFields(TrackCloudType &c)
Read the fields associated with the owner cloud.
iNew(const polyMesh &mesh)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
Factory class to read-construct particles (for parallel transfer)
vector position() const
Return current particle position.
Copy of base particle but without particle locating and preserving read location. ...