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
- Host: GitHub
- URL: https://github.com/mrvplusone/galaxysimulation
- Owner: MrVPlusOne
- Created: 2016-10-07T16:18:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-07T16:22:47.000Z (over 9 years ago)
- Last Synced: 2025-02-08T19:11:50.386Z (over 1 year ago)
- Language: Scala
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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