mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH. Looser tolerance on wall match error trigger.
This commit is contained in:
@ -25,6 +25,12 @@ License
|
|||||||
|
|
||||||
#include "WallCollisionRecord.H"
|
#include "WallCollisionRecord.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class Type>
|
||||||
|
const Foam::scalar Foam::WallCollisionRecord<Type>::errorCosAngle(1.0 + 1e-6);
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
|
|||||||
@ -92,6 +92,12 @@ class WallCollisionRecord
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
// Static data members
|
||||||
|
|
||||||
|
//- Tolerance for detecting seriously erroneous wall matches
|
||||||
|
static const scalar errorCosAngle;
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct null
|
//- Construct null
|
||||||
|
|||||||
@ -39,7 +39,7 @@ inline bool Foam::WallCollisionRecord<Type>::match
|
|||||||
// Using the new data as the acceptance criterion
|
// Using the new data as the acceptance criterion
|
||||||
scalar cosAcceptanceAngle = magpRel/radius;
|
scalar cosAcceptanceAngle = magpRel/radius;
|
||||||
|
|
||||||
if (cosAcceptanceAngle > 1.0 + SMALL)
|
if (cosAcceptanceAngle > errorCosAngle)
|
||||||
{
|
{
|
||||||
Info<< "pRel_ " << pRel_ << " " << magpRel_ << nl
|
Info<< "pRel_ " << pRel_ << " " << magpRel_ << nl
|
||||||
<< "pRel " << pRel << " " << magpRel << nl
|
<< "pRel " << pRel << " " << magpRel << nl
|
||||||
|
|||||||
Reference in New Issue
Block a user