Go to the documentation of this file.
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&)");
streamFormat format() const
Return current stream format.
void hitWallPatch(const wallPolyPatch &, trackingData &td, const tetIndices &)
Overridable function to handle the particle hitting a wallPatch.
Wedge front and back plane patch.
void hitSymmetryPlanePatch(const symmetryPlanePolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a.
bool keepParticle
Flag to indicate whether to keep particle (false = delete)
List< List< point > > & cellToEnd()
void hitCyclicPatch(const cyclicPolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a cyclic.
This function object reads fields from the time directories and adds them to the mesh database for fu...
Mesh consisting of general polyhedral cells.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void append(const T &)
Append an element at the end of the list.
virtual Ostream & write(const token &)=0
Write next token to stream.
A patch is a list of labels that address the faces in the global face list.
void hitProcessorPatch(const processorPolyPatch &, trackingData &td)
Symmetry patch for non-planar or multi-plane patches.
Neighbour processor patch.
labelListList & cellToData()
Particle class that finds cells by tracking.
Ostream & operator<<(Ostream &, const edgeMesh &)
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.
bool switchProcessor
Flag to switch processor.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
void hitSymmetryPatch(const symmetryPolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a.
bool hitPatch(const polyPatch &, trackingData &td, const label patchI, const scalar trackFraction, const tetIndices &tetIs)
Overridable function to handle the particle hitting a patch.
label readLabel(Istream &is)
void hitWedgePatch(const wedgePolyPatch &, trackingData &td)
Overridable function to handle the particle hitting a wedge.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool move(trackingData &, const scalar)
Track all particles to their end point.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
A cell is defined as a list of faces with extra functionality.
Database for solution data, solver performance and other reduced data.
Class used to pass tracking data to the trackToFace function.
virtual Istream & read(token &)=0
Return next token from stream.