sistisette - 2011-11-08


As far as I understand, the "drag" parameter in the Simulation constructor means viscosity.

When I build a simulation with some hundred particles and many springs, no matter how big a viscosity I choose, things keep moving forever. I do observe the effect of viscosity, but it is never enough to cause the whole system to eventually stop moving completely.

if my understanding of physics is not completely wrong, viscosity should dissipate energy, and hence, a simulation with viscosity should ALWAYS, sooner or later, come to a point where everything is still. Shouldn't it? And with a very high value of viscosity this should happen pretty soon.

What am I missing?

Or is it because of some rounding error/precision? If so it should be possible to avoid that, isn't it?