mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Using rescue tolerance for all rescues.
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user