Commit 7037f397 authored by Andrew Heather's avatar Andrew Heather
Browse files

added particle current time function

parent e17ef8cf
......@@ -365,6 +365,9 @@ public:
//- Return the impact model to be used, soft or hard (default).
inline bool softImpact() const;
//- Return the particle current time
inline scalar currentTime() const;
// Check
......@@ -345,6 +345,15 @@ inline bool Particle<ParticleType>::softImpact() const
template<class ParticleType>
inline scalar Particle<ParticleType>::currentTime() const
+ stepFraction_*cloud_.pMesh().time().deltaT().value();
template<class ParticleType>
inline label Particle<ParticleType>::patch(const label facei) const
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