Skip to content
Snippets Groups Projects
Commit 0054d8d2 authored by Andrew Heather's avatar Andrew Heather
Browse files

do not remove tangential component on pure rebound

parent c9f7267b
No related branches found
No related tags found
No related merge requests found
...@@ -71,15 +71,12 @@ bool Foam::Rebound<CloudType>::correct ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment