PairCollision: stabilize normalization of the force direction for low force

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1948
This commit is contained in:
Henry Weller
2015-12-12 09:00:42 +00:00
parent 71f13ec9dd
commit 35439753ef

View File

@ -246,7 +246,7 @@ void Foam::PairCollision<CloudType>::wallInteraction()
vector pW = nearPt - pos;
scalar normalAlignment = normal & pW/mag(pW);
scalar normalAlignment = normal & pW/(mag(pW) + ROOTSMALL);
// Find the patchIndex and wallData for WallSiteData object
label patchI = patchID[realFaceI - mesh.nInternalFaces()];