Thursday, August 20, 2009

[bpxqlqhs] Gravity simulation

Naive gravity simulations of point masses, even with adaptive step size, do not maintain conservation of energy. Build one that does. I think Numerical Recipes has second-order conservative numerical differential equations.  Verlet integration.

No comments :