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:
@ -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()];
|
||||
|
||||
Reference in New Issue
Block a user