36 label& nLocateBoundaryHits,
63 is >> start_ >> end_ >> fraction_;
73 reinterpret_cast<char*
>(&start_),
74 sizeof(start_) +
sizeof(end_) +
sizeof(fraction_)
75 +
sizeof(level_) +
sizeof(i_) +
sizeof(j_) +
sizeof(k_)
83 "trackedParticle::trackedParticle"
84 "(const Cloud<trackedParticle>&, Istream&, bool)"
105 const vector displacement = fraction_*(end_ - start_);
107 fraction_ *= trackToFace(td.
mesh, displacement, 0);
109 if (!onFace())
break;
111 hitFace(displacement, 0,
cloud, td);
183 const label feati = i(), edgei =
k();
197 os << static_cast<const particle&>(
p)
208 os << static_cast<const particle&>(
p);
211 reinterpret_cast<const char*
>(&
p.start_),
212 sizeof(
p.start_) +
sizeof(
p.end_) +
sizeof(
p.fraction_)
213 +
sizeof(
p.level_) +
sizeof(
p.i_) +
sizeof(
p.j_) +
sizeof(
p.k_)
218 os.
check(
"Ostream& operator<<(Ostream&, const trackedParticle&)");
streamFormat format() const
Return current stream format.
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)....
virtual Istream & read(token &)=0
Return next token from stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & write(const token &)
Write token.
A cell is defined as a list of faces with extra functionality.
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
Mesh object that implements searches within the local cells and faces.
label sendToProc
Processor to send the particle to. -1 indicates that this.
bool keepParticle
Flag to indicate whether to keep particle (false = delete)
const polyMesh & mesh
Reference to the mesh.
static void readFields(TrackCloudType &c)
Read the fields associated with the owner cloud.
void correctAfterParallelTransfer(TrackCloudType &, trackingData &)
Make changes following a parallel transfer. Runs either.
Class used to pass tracking data to the trackToFace function.
List< PackedBoolList > & featureEdgeVisited_
Particle class that marks cells it passes through. Used to mark cells visited by feature edges.
void hitCyclicPatch(lagrangian::Cloud< trackedParticle > &, trackingData &)
Overridable function to handle the particle hitting a cyclic.
void correctAfterParallelTransfer(lagrangian::Cloud< trackedParticle > &, trackingData &)
Do corrections to the particle and tracking data following a.
void hitWallPatch(lagrangian::Cloud< trackedParticle > &, trackingData &)
Overridable function to handle the particle hitting a wallPatch.
void hitSymmetryPatch(lagrangian::Cloud< trackedParticle > &, trackingData &)
Overridable function to handle the particle hitting a.
void hitWedgePatch(lagrangian::Cloud< trackedParticle > &, trackingData &)
Overridable function to handle the particle hitting a wedge.
trackedParticle(const meshSearch &searchEngine, const vector &position, const label celli, label &nLocateBoundaryHits, const point &end, const label level, const label i, const label j, const label k)
Construct from a position and a cell, searching for the rest of the.
void hitSymmetryPlanePatch(lagrangian::Cloud< trackedParticle > &, trackingData &)
Overridable function to handle the particle hitting a.
bool move(lagrangian::Cloud< trackedParticle > &, trackingData &)
Track all particles to their end point.
point position(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the position given the coordinates and tet topology.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the specified type.
label readLabel(Istream &is)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)