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);
199 particle::hitProcessorPatch(cloud, td);
219 if (os.
format() == IOstream::ASCII)
221 os << static_cast<const particle&>(
p)
222 << token::SPACE << p.displacement_
223 << token::SPACE << p.data_;
227 os << static_cast<const particle&>(
p);
230 reinterpret_cast<const char*>(&p.displacement_),
231 sizeof(p.displacement_) +
sizeof(p.data_)
236 os.
check(
"Ostream& operator<<(Ostream&, const findCellParticle&)");
virtual Ostream & write(const char)=0
Write character.
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.
Neighbour processor patch.
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.
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.
void hitCyclicAMIPatch(const vector &, const scalar, Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a cyclicAMI.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
List< List< point > > & cellToEnd()
virtual const transformer & transform() const
Return null transform between processor patches.
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.
Mesh consisting of general polyhedral cells.
void hitWallPatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a wallPatch.
label sendToProc
Processor to send the particle to. -1 indicates that this.
Class used to pass tracking data to the trackToFace function.
void hitSymmetryPlanePatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a.