41 particle(mesh, position, celli, tetFacei, tetPtI),
58 if (is.
format() == IOstream::ASCII)
67 reinterpret_cast<char*>(&end_),
68 sizeof(end_) +
sizeof(data_)
76 "findCellParticle::findCellParticle" 77 "(const Cloud<findCellParticle>&, Istream&, bool)" 87 const scalar maxTrackLen
93 scalar tEnd = (1.0 - stepFraction())*maxTrackLen;
99 scalar dt =
min(dtMax, tEnd);
101 dt *= trackToFace(end_, td);
104 stepFraction() = 1.0 - tEnd/maxTrackLen;
124 const scalar trackFraction,
214 if (os.
format() == IOstream::ASCII)
216 os << static_cast<const particle&>(
p)
217 << token::SPACE << p.end_
218 << token::SPACE << p.data_;
222 os << static_cast<const particle&>(
p);
225 reinterpret_cast<const char*>(&p.end_),
226 sizeof(p.end_) +
sizeof(p.data_)
231 os.
check(
"Ostream& operator<<(Ostream&, const findCellParticle&)");
Symmetry patch for non-planar or multi-plane patches.
void hitWedgePatch(const wedgePolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a wedge.
streamFormat format() const
Return current stream format.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelListList & cellToData()
void hitSymmetryPatch(const symmetryPolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a.
void hitCyclicPatch(const cyclicPolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a cyclic.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
findCellParticle(const polyMesh &mesh, const vector &position, const label celli, const label tetFacei, const label tetPtI, const point &end, const label data)
Construct from components.
Neighbour processor patch.
bool hitPatch(const polyPatch &, trackingData &td, const label patchi, const scalar trackFraction, const tetIndices &tetIs)
Overridable function to handle the particle hitting a patch.
virtual Istream & read(token &)=0
Return next token from stream.
void append(const T &)
Append an element at the end of the list.
Wedge front and back plane patch.
void hitProcessorPatch(const processorPolyPatch &, trackingData &td)
Storage and named access for the indices of a tet which is part of the decomposition of a cell...
bool keepParticle
Flag to indicate whether to keep particle (false = delete)
void hitWallPatch(const wallPolyPatch &, trackingData &td, const tetIndices &)
Overridable function to handle the particle hitting a wallPatch.
label readLabel(Istream &is)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
List< List< point > > & cellToEnd()
A cell is defined as a list of faces with extra functionality.
Ostream & operator<<(Ostream &, const ensightPart &)
Particle class that finds cells by tracking.
virtual Ostream & write(const token &)=0
Write next token to stream.
Mesh consisting of general polyhedral cells.
void hitSymmetryPlanePatch(const symmetryPlanePolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a.
bool switchProcessor
Flag to switch processor.
A patch is a list of labels that address the faces in the global face list.
Class used to pass tracking data to the trackToFace function.
bool move(trackingData &, const scalar)
Track all particles to their end point.