Go to the documentation of this file.
61 start_(this->position()),
79 if (is.
format() == IOstream::ASCII)
81 is >> start_ >> end_ >> data_;
88 readRawScalar(is, start_.data(), vector::nComponents);
89 readRawScalar(is, end_.data(), vector::nComponents);
98 reinterpret_cast<char*
>(&start_),
99 sizeof(start_) +
sizeof(end_) +
sizeof(data_)
114 const scalar maxTrackLen
122 const scalar
f = 1 - stepFraction();
123 trackToAndHitFace(
f*(end_ - start_),
f,
cloud, td);
243 os << static_cast<const particle&>(
p)
250 os << static_cast<const particle&>(
p);
253 reinterpret_cast<const char*
>(&
p.start_),
254 sizeof(
p.start_) +
sizeof(
p.end_) +
sizeof(
p.data_)
void hitProcessorPatch(Cloud< findCellParticle > &, trackingData &)
List< List< point > > & cellToEnd()
streamFormat format() const noexcept
Get the current stream format.
void append(const T &val)
Append an element at the end of the list.
virtual Ostream & write(const char c)
Write character.
void hitSymmetryPatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a.
Mesh consisting of general polyhedral cells.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
std::enable_if< std::is_integral< T >::value, bool >::type checkLabelSize() const noexcept
virtual bool endRawRead()=0
End of low-level raw binary read.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool move(Cloud< findCellParticle > &, trackingData &, const scalar)
Track all particles to their end point.
PtrList< coordinateSystem > coordinates(solidRegions.size())
bool keepParticle
Flag to indicate whether to keep particle (false = delete)
bool switchProcessor
Flag to switch processor.
labelListList & cellToData()
void hitWallPatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a wallPatch.
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.
Particle class that finds cells by tracking.
std::enable_if< std::is_floating_point< T >::value, bool >::type checkScalarSize() const noexcept
virtual bool check(const char *operation) const
Check IOstream status for given operation.
OBJstream os(runTime.globalPath()/outputName)
void hitCyclicAMIPatch(Cloud< findCellParticle > &, trackingData &, const vector &)
Overridable function to handle the particle hitting a cyclicAMI.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
void hitSymmetryPlanePatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a.
void hitCyclicPatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a cyclic.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
void hitWedgePatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a wedge.
A cloud is a registry collection of lagrangian particles.
virtual bool beginRawRead()=0
Start of low-level raw binary read.
Base cloud calls templated on particle type.
label readRawLabel(Istream &is)
Read raw label from binary stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void hitCyclicACMIPatch(Cloud< findCellParticle > &, trackingData &, const vector &)
Overridable function to handle the particle hitting a cyclicACMI.
A cell is defined as a list of faces with extra functionality.
Database for solution data, solver performance and other reduced data.
bool hitPatch(Cloud< findCellParticle > &, trackingData &)
Overridable function to handle the particle hitting a patch.
Class used to pass tracking data to the trackToFace function.
virtual Istream & read(token &)=0
Return next token from stream.