从代码来看,e表示回弹系数,mu表示一种损耗。e越大,回弹越完全,mu越大,速度被消耗的越大。这些值影响你颗粒撞击壁面的回弹行为。
你可以手动计算一下,看看U有什么变化
case PatchInteractionModel<CloudType>::itRebound:
{
keepParticle = true;
active = true;
vector nw;
vector Up;
this->owner().patchData(p, pp, nw, Up);
// Calculate motion relative to patch velocity
U -= Up;
scalar Un = U & nw;
vector Ut = U - Un*nw;
if (Un > 0)
{
U -= (1.0 + e_)*Un*nw;
}
U -= mu_*Ut;
// Return velocity to global space
U += Up;
break;
}