(February 7, 2020 at 1:16 pm)BrianSoddingBoru4 Wrote:(February 7, 2020 at 12:29 pm)AtlasS33 Wrote: Very...very encouraging..*muffled cough*
It wasn’t meant to be encouraging. All you’ve got is differently coloured rings. The orbits are circular, the perspective is all wrong. It doesn’t have any real educational value. If you hadn’t told us what it was supposed to be, we wouldn’t know.
Kinda pretty, though.
Boru
Quote:References
http://www.scholarpedia.org/article/N-body_simulationsThis survey, by Dr. Michele Trenti and Dr. Piet Hut, describes how the serious scientific N-body simulators work, using trees to approximate the attraction at great distances. Such programs are able to run in O(N log(N)) time.
http://ssd.jpl.nasa.gov/horizons.cgiNASA’s Jet Propulsion Laboratory provides a system called HORIZONS that returns accurate positions and velocities for objects within the solar system. In the example code, the values used are only rough approximations; the orbital distances and planet velocities are set to the mean distances and their relative positions don’t correspond to any actual point in time – but they produce reasonable output.
Github source:
https://github.com/akuchling/50-examples...ravity.rst