Hacker News new | comments | ask | show | jobs | submit login
N-body Toy (resium.com)
7 points by david4096 on Dec 7, 2013 | hide | past | web | favorite | 2 comments

The encoding of kinetic energy in the colour of the particle trails is innovative.

Did you encounter the effect I call "lost" momentum that occurs around very close approaches when the time quantum is constant? It manifests by particles seeming to gain kinetic energy over time until they fly away. One way of minimising it is to switch to a more precise and accurate force calculation whenever the distance between two particles becomes less than $\epsilon$.

Yes, since the particles are point-like we should expect the force between them to grow without bound if they are very near.

I find the calculation for small distances to be unpredictable, one easy way to test it is to place two particles with small gravity and a large attractive charge. Occasionally close passes cause explosive motion, while other times it hardly overcomes gravity.

Applications are open for YC Summer 2019

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact