Skip to content

tardisman5197/barnes-hut-sim

Repository files navigation

Barnes Hut Simulator

A Go implementation of a Barnes–Hut simulation, it allows you to start a server which has an HTTP API which allows you to create and run multiple simulations.

Server

The server resides at /cmd/server/main.go

Server Api

Create new Sim

POST /simulation/new

This request should return a simID

Start Sim

GET /simulation/start/simID/steps

  • simID: the ID of the sim you want to start
  • steps: the number of steps you want the sim to run for

Sim Status

GET /simulation/status/SimID

  • simID: the ID of the sim you want the status for

Sim Results

GET /simulation/results/SimID

  • simID: the ID of the sim you want results for

Sim Remove

GET /simulation/remove/SimID

  • simID: the ID of the sim you want to remove

Code Examples

Some examples can be found in /cmd/examples

Github Stats

About

A Go implementation of a Barnes–Hut simulation.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages