37 const vector& displacement,
41 particle(mesh, coordinates, celli, tetFacei, tetPtI),
42 displacement_(displacement),
52 const vector& displacement,
57 displacement_(displacement),
73 if (is.
format() == IOstream::ASCII)
82 reinterpret_cast<char*>(&displacement_),
83 sizeof(displacement_) +
sizeof(data_)
91 "findCellParticle::findCellParticle" 92 "(const Cloud<findCellParticle>&, Istream&, bool)" 103 const scalar maxTrackLen
111 const scalar
f = 1 - stepFraction();
112 trackToAndHitFace(f*displacement_, f, cloud, td);
229 os << static_cast<const particle&>(
p)
235 os << static_cast<const particle&>(
p);
238 reinterpret_cast<const char*>(&p.displacement_),
239 sizeof(p.displacement_) +
sizeof(p.data_)
244 os.
check(
"Ostream& operator<<(Ostream&, const findCellParticle&)");
void hitCyclicAMIPatch(Cloud< findCellParticle > &, trackingData &, const vector &)
Overridable function to handle the particle hitting a cyclicAMI.
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()
bool move(Cloud< findCellParticle > &, trackingData &, const scalar)
Track all particles to their end point.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void hitCyclicPatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a cyclic.
void hitSymmetryPatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a.
void hitCyclicACMIPatch(Cloud< findCellParticle > &, trackingData &, const vector &)
Overridable function to handle the particle hitting a cyclicACMI.
void hitProcessorPatch(Cloud< findCellParticle > &, trackingData &)
void hitWedgePatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a wedge.
virtual Istream & read(token &)=0
Return next token from stream.
bool switchProcessor
Flag to switch processor.
findCellParticle(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPtI, const vector &displacement, const label data)
Construct from components.
void append(const T &)
Append an element at the end of the list.
streamFormat format() const
Return current stream format.
label readLabel(Istream &is)
Base cloud calls templated on particle type.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool hitPatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a patch.
List< List< point > > & cellToEnd()
bool keepParticle
Flag to indicate whether to keep particle (false = delete)
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 hitWallPatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a wallPatch.
Class used to pass tracking data to the trackToFace function.
void hitSymmetryPlanePatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a.