31 template<
class TrackCloudType>
34 TrackCloudType&
cloud,
36 const scalar trackTime
39 auto&
p =
static_cast<typename TrackCloudType::particleType&
>(*this);
82 if (tEnd <= ROOTVSMALL)
96 Pout<<
"wallBoundedStreamLineParticle :" 97 <<
" Removing stagnant particle:" 111 Pout<<
"wallBoundedStreamLineParticle : Removing particle:" void size(const label n)
Older name for setAddressableSize.
List< DynamicList< vectorList > > & allVectors_
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
label lifeTime_
Lifetime of particle. Particle dies when reaches 0.
List< DynamicList< scalar > > sampledScalars_
Sampled scalars.
bool switchProcessor
Flag to switch processor.
scalar trackToEdge(TrackCloudType &cloud, trackingData &td, const vector &endPosition)
Equivalent of trackToFace.
A cloud is a registry collection of lagrangian particles.
scalar mag() const
The magnitude/length of the bounding box diagonal.
bool move(TrackCloudType &cloud, trackingData &td, const scalar trackTime)
Track all particles to their end point.
point localPosition_
Particle position is updated locally as opposed to via track.
DynamicList< vectorList > & allPositions_
const scalar trackLength_
scalar stepFraction() const noexcept
Return the fraction of time-step completed.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
int debug
Static debugging option.
vector sample(trackingData &td)
DynamicList< point > sampledPositions_
Sampled positions.
const polyMesh & mesh() const noexcept
Return the mesh database.
bool keepParticle
Flag to indicate whether to keep particle (false = delete)
const boundBox & bounds() const noexcept
Return mesh bounding box.
Class used to pass tracking data to the trackToEdge function.
List< DynamicList< vector > > sampledVectors_
Sampled vectors.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
List< DynamicList< scalarList > > & allScalars_