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:
parent
71f13ec9dd
commit
35439753ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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()];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue