41 particle(mesh, coordinates, celli, tetFacei, tetPtI),
58 start_(this->position()),
75 if (is.
format() == IOstream::ASCII)
84 reinterpret_cast<char*>(&start_),
85 sizeof(start_) +
sizeof(end_) +
sizeof(data_)
93 "findCellParticle::findCellParticle" 94 "(const Cloud<findCellParticle>&, Istream&, bool)" 104 const scalar maxTrackLen
112 const scalar
f = 1 - stepFraction();
113 trackToFace(f*(end_ - start_), f, td);
133 const scalar trackFraction,
223 if (os.
format() == IOstream::ASCII)
225 os << static_cast<const particle&>(
p)
226 << token::SPACE << p.start_
227 << token::SPACE << p.end_
228 << token::SPACE << p.data_;
232 os << static_cast<const particle&>(
p);
235 reinterpret_cast<const char*>(&p.start_),
236 sizeof(p.start_) +
sizeof(p.end_) +
sizeof(p.data_)
241 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.
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.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
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)...
findCellParticle(const polyMesh &mesh, const barycentric &coordinates, 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...
streamFormat format() const
Return current stream format.
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...
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.