Commit 107b9370 authored by Henry Weller's avatar Henry Weller
Browse files

PairCollision: stabilize normalization of the force direction for low force

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1948
parent aacaa9c0
......@@ -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()];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment