Skip to content

chindesaurus/BarnesHut-N-Body

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Barnes-Hut N-Body Simulation

Reads in a universe of N bodies from stdin, and performs an
N-Body simulation in O(N log N) using the Barnes-Hut algorithm.

Dependencies: BHTree.java Body.java Quad.java StdDraw.java
Input files: ./inputs/*.txt
Compilation: javac NBodyBH.java
Sample Execution: java NBodyBH < inputs/galaxy3.txt

screenshot

About

an O(N log N) N-Body simulation using the Barnes-Hut algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages