mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -326,11 +326,11 @@ void Foam::Particle<ParticleType>::trackToFaceConcave
|
||||
// *(cc - position_);
|
||||
|
||||
// Pout<< "Ambiguous face crossing. " << endl;
|
||||
correctLambda += Cloud<ParticleType>::minValidTrackFraction;
|
||||
|
||||
facei_ = -1;
|
||||
}
|
||||
|
||||
correctLambda += Cloud<ParticleType>::minValidTrackFraction;
|
||||
trackFraction = correctLambda;
|
||||
position_ += trackFraction*(endPosition - position_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user