do not remove tangential component on pure rebound

This commit is contained in:
andy
2009-10-30 10:02:21 +00:00
parent c9f7267b7f
commit 0054d8d294

View File

@ -71,15 +71,12 @@ bool Foam::Rebound<CloudType>::correct
nw /= mag(nw); nw /= mag(nw);
scalar Un = U & nw; scalar Un = U & nw;
vector Ut = U - Un*nw;
if (Un > 0.0) if (Un > 0.0)
{ {
U -= UFactor_*2.0*Un*nw; U -= UFactor_*2.0*Un*nw;
} }
U -= Ut;
return true; return true;
} }