mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
do not remove tangential component on pure rebound
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user