ENH. Looser tolerance on wall match error trigger.

This commit is contained in:
graham
2010-05-26 10:44:45 +01:00
parent f4fd4c00dc
commit ef19832a78
3 changed files with 13 additions and 1 deletions

View File

@ -25,6 +25,12 @@ License
#include "WallCollisionRecord.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template<class Type>
const Foam::scalar Foam::WallCollisionRecord<Type>::errorCosAngle(1.0 + 1e-6);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type>

View File

@ -92,6 +92,12 @@ class WallCollisionRecord
public:
// Static data members
//- Tolerance for detecting seriously erroneous wall matches
static const scalar errorCosAngle;
// Constructors
//- Construct null

View File

@ -39,7 +39,7 @@ inline bool Foam::WallCollisionRecord<Type>::match
// Using the new data as the acceptance criterion
scalar cosAcceptanceAngle = magpRel/radius;
if (cosAcceptanceAngle > 1.0 + SMALL)
if (cosAcceptanceAngle > errorCosAngle)
{
Info<< "pRel_ " << pRel_ << " " << magpRel_ << nl
<< "pRel " << pRel << " " << magpRel << nl