diff --git a/src/lagrangian/basic/Particle/Particle.C b/src/lagrangian/basic/Particle/Particle.C index b0bc7a8d0ceba789c6d43621aefc2f3469f430a9..a56ab267a266c6eae2b1c6c2fd8f9fe0ce731d72 100644 --- a/src/lagrangian/basic/Particle/Particle.C +++ b/src/lagrangian/basic/Particle/Particle.C @@ -371,10 +371,21 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace { // Apply tracking correction towards tet centre + if (debug) + { + Pout<< "tracking rescue using tetCentre from " << position(); + } + position_ += Cloud<ParticleType>::trackingCorrectionTol *(tet.centre() - position_); + if (debug) + { + Pout<< " to " << position() << " due to " + << (tet.centre() - position_) << endl; + } + cloud_.trackingRescue(); return trackFraction; @@ -639,6 +650,12 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace tetPointRef tet = currentTet(); + if (debug) + { + Pout<< "tracking rescue for lambdaMin:" << lambdaMin + << "from " << position(); + } + position_ += Cloud<ParticleType>::trackingCorrectionTol *(tet.centre() - position_); @@ -692,6 +709,11 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace } } + if (debug) + { + Pout<< " to " << position() << endl; + } + cloud_.trackingRescue(); }