PJani wrote:I would never guess the damping is problem!
Oh yes bouyancy forces using the alchymedes principle fall into the cathegory of "Conservatives forces".
Conservatives forces is a force that when they act on a particle, the net work excuted by the motion of the particle is zero. that is there is not lost of energy as the particle moves.
example of Consertive forces are: Spring Mass, Gravity and kenetic / pontencial energy (a rollercoster), Gravitational orbits, the electric and Magnetic field, the Bouyancy, many some others I do not remember now.
Since the action of those forces alone do not lose energy, when they are simulated numerically, the simulation should last for ever (like a spring with not damping force)
however because numercial methods are only aproximation of diferencial equations, they can not reproduce the exact path the particle should follows.
I am not refering to float acuracy, I am talking about the fact that there is not known numerical method that can integrates a secund order differencial equation exactly, not even using exact arithmetic,
and only very few first order differencial equations can be integrated exactly using numerical methods.
they can only reproduce an aproximation of the path, therefore the discrepancy between the ideal path, and the simulated path is translated to a net gain of lost of energy in the simulation.
what makes the simulation stable is if there is a processs that drain an amount of energy that is equal and larger than the energy gained by the integration process.
Friction, Drag and Viscosity are non consevative forces that always lose energy, they can be used to mak a system stable.