/Barnes-Hut

Barnes-Hut Algorithm for the simulation of a galactic disc

Primary LanguagePython

Barnes-Hut Algorithm for the simulation of a galactic disc

Autores: Ochoa J. and Narváez J. (April 2022)

Modular code in Python that implements the Barnes-Hut algorithm and a simplectic integrator for evolving a toy model of a spiral galaxy. It uses inverse transform sampling to generate random particles that follow the surface brightness distribution found in real galaxies.

References

  1. Barnes-Hut Galaxy Simulator assignment. https://www.cs.princeton.edu/courses/archive/fall03/cs126/assignments/barnes-hut.html
  2. The Barnes-Hut Galaxy Simulator. https://beltoforion.de/en/barnes-hut-galaxy-simulator/
  3. Rendering a Galaxy with the density wave theory https://beltoforion.de/en/spiral_galaxy_renderer/index.php/

Copy of: ObservatorioAstronomicoNacional / ejercicios04-04-narvaez_ochoa