Using rescue tolerance for all rescues.

This commit is contained in:
graham
2009-10-11 00:01:59 +01:00
parent cbac388de8
commit bf68452326
2 changed files with 8 additions and 4 deletions

View File

@ -39,7 +39,7 @@ template<class ParticleType>
const Foam::scalar Foam::Cloud<ParticleType>::minValidTrackFraction = 1e-6;
template<class ParticleType>
const Foam::scalar Foam::Cloud<ParticleType>::trackingRescueTolerance = 1e-6;
const Foam::scalar Foam::Cloud<ParticleType>::trackingRescueTolerance = 1e-4;
template<class ParticleType>
const Foam::scalar Foam::Cloud<ParticleType>::intersectionTolerance = 0;

View File

@ -304,7 +304,9 @@ void Foam::Particle<ParticleType>::trackToFaceConcave
// << endl;
const point& cc = mesh.cellCentres()[celli_];
position_ += 1e-2*(cc - position_);
position_ +=
Cloud<ParticleType>::trackingRescueTolerance
*(cc - position_);
facei_ = -1;
}
@ -342,7 +344,8 @@ void Foam::Particle<ParticleType>::trackToFaceConcave
// << endl;
const point& cc = mesh.cellCentres()[celli_];
position_ += 1e-2*(cc - position_);
position_ +=
Cloud<ParticleType>::trackingRescueTolerance*(cc - position_);
}
}
else
@ -394,7 +397,8 @@ void Foam::Particle<ParticleType>::trackToFaceConcave
// << checkedCells << endl;
const point& cc = mesh.cellCentres()[celli_];
position_ += 1e-2*(cc - position_);
position_ +=
Cloud<ParticleType>::trackingRescueTolerance*(cc - position_);
}
// else
// {