38#ifndef Foam_passivePositionParticle_H
39#define Foam_passivePositionParticle_H
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
183 reinterpret_cast<const char*
>(&
p.position),
@ ASCII
"ascii" (normal default)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
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.
static autoPtr< particle > Clone(const Derived &p)
Clone a particle.
const polyMesh & mesh() const noexcept
Return the mesh database.
passiveParticle(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from components.
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.
passivePositionParticle(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from components (known location).
virtual autoPtr< particle > clone() const
Return a clone.
passivePositionParticle(const polyMesh &mesh, Istream &is, bool readFields, bool newFormat)
Construct from Istream in old format.
passivePositionParticle(const polyMesh &mesh, const vector &position, const label celli=-1)
Construct from a position and a cell.
passivePositionParticle(const passivePositionParticle &p)
Construct as copy.
const point & cachedPosition() const noexcept
Mesh consisting of general polyhedral cells.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
vector point
Point is a vector.
Old particle positions content for OpenFOAM-1706 and earlier.