An open API service indexing awesome lists of open source software.

https://github.com/mrvplusone/galaxysimulation

A demonstration of Barnes–Hut's algorithm for n-body simulations
https://github.com/mrvplusone/galaxysimulation

Last synced: about 1 year ago
JSON representation

A demonstration of Barnes–Hut's algorithm for n-body simulations

Awesome Lists containing this project

README

          

# Galaxy Simulation

#### A demonstration of Barnes–Hut's algorithm for n-body simulations

#### [see introduction here](https://mrvplusone.github.io/gallery-galaxySimulation.html)

#### Main features:

* A flexible displaying system: watch the simulation result as an animation, and you can move the viewport by dragging your mouse, zoom in or out by scrolling middle button.
* A 'show grids' mode, in which you can see the inner data structure (red grids) the algorithm is using, during the simulation.
* Clicking any dot will displaying the approximation used (green grids) to calculate the total force exerted on it.

* Multi-threading support and calculating on the fly. You don't need to wait until all the calculation has been finished to watch the result.

#### Project is in Intellij IDEA format, but feel free to use any other IDE you prefer

#### Library Dependencies

* scala-library

* scala-swing_2.11-1.0.1