31template<
class TrackCloudType>
34 TrackCloudType&
cloud,
36 const scalar trackTime
39 typename TrackCloudType::particleType&
p =
40 static_cast<typename TrackCloudType::particleType&
>(*this);
89 if (tEnd <= ROOTVSMALL)
103 Pout<<
"wallBoundedStreamLineParticle :"
104 <<
" Removing stagnant particle:"
118 Pout<<
"wallBoundedStreamLineParticle : Removing particle:"
Minimal example by using system/controlDict.functions:
void transfer(List< T > &list)
void size(const label n)
Older name for setAddressableSize.
scalar mag() const
The magnitude of the bounding box span.
A cloud is a registry collection of lagrangian particles.
bool switchProcessor
Flag to switch processor.
bool keepParticle
Flag to indicate whether to keep particle (false = delete)
const polyMesh & mesh() const noexcept
Return the mesh database.
scalar stepFraction() const noexcept
Return the fraction of time-step completed.
const boundBox & bounds() const
Return mesh bounding box.
scalar trackToEdge(TrackCloudType &cloud, trackingData &td, const vector &endPosition)
Equivalent of trackToFace.
point localPosition_
Particle position is updated locally as opposed to via track.
Class used to pass tracking data to the trackToEdge function.
DynamicList< vectorList > & allPositions_
const scalar trackLength_
List< DynamicList< vectorList > > & allVectors_
List< DynamicList< scalarList > > & allScalars_
label lifeTime_
Lifetime of particle. Particle dies when reaches 0.
DynamicList< point > sampledPositions_
Sampled positions.
List< DynamicList< vector > > sampledVectors_
Sampled vectors.
List< DynamicList< scalar > > sampledScalars_
Sampled scalars.
List< scalar > scalarList
A List of scalars.
List< vector > vectorList
A List of vectors.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
#define forAll(list, i)
Loop across all elements in list.