mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: faceOnlySet sampling does not stop at 'end' (closes #745)
This commit is contained in:
@ -54,6 +54,8 @@ bool Foam::faceOnlySet::trackToBoundary
|
||||
DynamicList<scalar>& samplingCurveDist
|
||||
) const
|
||||
{
|
||||
const vector offset = (end_ - start_);
|
||||
|
||||
particle::trackingData td(particleCloud);
|
||||
|
||||
point trackPt = singleParticle.position();
|
||||
@ -75,9 +77,10 @@ bool Foam::faceOnlySet::trackToBoundary
|
||||
samplingCurveDist.append(mag(trackPt - start_));
|
||||
}
|
||||
|
||||
if (mag(trackPt - end_) < smallDist)
|
||||
if (-smallDist < ((trackPt - end_) & offset))
|
||||
{
|
||||
// End reached
|
||||
// Projected onto sampling vector
|
||||
// - done when we are near or past the end of the sampling vector
|
||||
return false;
|
||||
}
|
||||
else if (singleParticle.onBoundaryFace())
|
||||
|
||||
Reference in New Issue
Block a user