Moving a successful out-of-cell track off of the crossed face by an

additional minValidTrackFraction so to avoid an ambiguous track next
time if the particle leaves the new cell.
This commit is contained in:
graham
2009-10-09 19:22:46 +01:00
parent b46cfdda5e
commit cbac388de8

View File

@ -326,11 +326,11 @@ void Foam::Particle<ParticleType>::trackToFaceConcave
// *(cc - position_); // *(cc - position_);
// Pout<< "Ambiguous face crossing. " << endl; // Pout<< "Ambiguous face crossing. " << endl;
correctLambda += Cloud<ParticleType>::minValidTrackFraction;
facei_ = -1; facei_ = -1;
} }
correctLambda += Cloud<ParticleType>::minValidTrackFraction;
trackFraction = correctLambda; trackFraction = correctLambda;
position_ += trackFraction*(endPosition - position_); position_ += trackFraction*(endPosition - position_);
} }