45 particle(mesh, coordinates, celli, tetFacei, tetPtI),
68 start_(this->position()),
88 if (is.
format() == IOstream::ASCII)
100 reinterpret_cast<char*>(&start_),
101 sizeof(start_) +
sizeof(end_) +
sizeof(level_)
102 +
sizeof(i_) +
sizeof(j_) +
sizeof(k_)
110 "trackedParticle::trackedParticle" 111 "(const Cloud<trackedParticle>&, Istream&, bool)" 121 const scalar trackTime
126 scalar tEnd = (1.0 - stepFraction())*trackTime;
128 if (tEnd <= SMALL && onBoundaryFace())
146 const scalar
f = 1 - stepFraction();
147 trackToFace(f*(end_ - start_), f, td);
160 const scalar trackFraction,
264 particle::correctAfterParallelTransfer(patchi, td);
282 if (os.
format() == IOstream::ASCII)
284 os << static_cast<const particle&>(
p)
285 << token::SPACE << p.start_
286 << token::SPACE << p.end_
287 << token::SPACE << p.level_
288 << token::SPACE << p.i_
289 << token::SPACE << p.j_
290 << token::SPACE << p.k_;
294 os << static_cast<const particle&>(
p);
297 reinterpret_cast<const char*>(&p.start_),
298 sizeof(p.start_) +
sizeof(p.end_) +
sizeof(p.level_)
299 +
sizeof(p.i_) +
sizeof(p.j_) +
sizeof(p.k_)
304 os.
check(
"Ostream& operator<<(Ostream&, const trackedParticle&)");
Symmetry patch for non-planar or multi-plane patches.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
void hitCyclicAMIPatch(const cyclicAMIPolyPatch &, trackingData &td, const vector &)
Overridable function to handle the particle hitting a cyclicAMI.
List< PackedBoolList > & featureEdgeVisited_
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void hitCyclicPatch(const cyclicPolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a cyclic.
label k
Boltzmann constant.
Neighbour processor patch.
trackedParticle(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPtI, const point &end, const label level, const label i, const label j, const label k)
Construct from components.
void hitProcessorPatch(const processorPolyPatch &, trackingData &td)
Particle class that marks cells it passes through. Used to mark cells visited by feature edges...
virtual Istream & read(token &)=0
Return next token from stream.
void hitWallPatch(const wallPolyPatch &, trackingData &td, const tetIndices &)
Overridable function to handle the particle hitting a wallPatch.
Wedge front and back plane patch.
Storage and named access for the indices of a tet which is part of the decomposition of a cell...
Cyclic patch for Arbitrary Mesh Interface (AMI)
streamFormat format() const
Return current stream format.
bool keepParticle
Flag to indicate whether to keep particle (false = delete)
label readLabel(Istream &is)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void hitSymmetryPlanePatch(const symmetryPlanePolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a.
void correctAfterParallelTransfer(const label, trackingData &)
Convert processor patch addressing to the global equivalents.
Class used to pass tracking data to the trackToFace function.
void hitSymmetryPatch(const symmetryPolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a.
A cell is defined as a list of faces with extra functionality.
Ostream & operator<<(Ostream &, const ensightPart &)
virtual Ostream & write(const token &)=0
Write next token to stream.
Mesh consisting of general polyhedral cells.
bool switchProcessor
Flag to switch processor.
A patch is a list of labels that address the faces in the global face list.
void hitWedgePatch(const wedgePolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a wedge.
bool move(trackingData &, const scalar)
Track all particles to their end point.
bool hitPatch(const polyPatch &, trackingData &td, const label patchi, const scalar trackFraction, const tetIndices &tetIs)
Overridable function to handle the particle hitting a patch.