Commit 0eeb5aa7 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Added cloudReset function to base Cloud class

parent a4d751ee
......@@ -384,6 +384,16 @@ void Foam::Cloud<ParticleType>::deleteParticle(ParticleType& p)
template<class ParticleType>
void Foam::Cloud<ParticleType>::cloudReset(const Cloud<ParticleType>& c)
// Reset particle cound and particles only
// - not changing the cloud object registry or reference to the polyMesh
particleCount_ = 0;
template<class ParticleType>
template<class TrackingData>
void Foam::Cloud<ParticleType>::move(TrackingData& td)
......@@ -318,6 +318,9 @@ public:
//- Remove particle from cloud and delete
void deleteParticle(ParticleType&);
//- Reset the particles
void cloudReset(const Cloud<ParticleType>& c);
//- Move the particles
// passing the TrackingData to the track function
template<class TrackingData>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment