Skip to content

Implementation of the BarnesHut algorithm in Julia, with benchmark comparisons with the brute force algorithm.

Notifications You must be signed in to change notification settings

PietroDomi/BarnesHut.jl

Repository files navigation

BarnesHut.jl

Implementation of the BarnesHut algorithm in Julia for solving the N-body problem, along with benchmark comparisons with the brute force algorithm.

This is a Julia project I created for the course 20602 - Computer Science (Algorithms) at UniBocconi, under prof. Feinauer and prof. Pittorino.

To know more about the algorithm:

Repo structure

The main module and functions are under the folder src/.

There are a bunch of scripts ready to run in examples/.

Quick start

Clone the repository first, then access the folder:

> cd BarnesHut.jl

> julia --project=.

# Go to pkg to download necessary packages
(BarnesHut) pkg> instantiate

# (Optional) Test the package 
(BarnesHut) pkg> test

Next, you can run any of the examples by typing in the REPL

julia> include("examples/YOUREXAMPLE.jl")

Simulations

Galaxy clash

movie

Credits

Pietro Dominietto (pietro.dominietto@studbocconi.it)

About

Implementation of the BarnesHut algorithm in Julia, with benchmark comparisons with the brute force algorithm.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published