andersmarkendahl / go-star-sim

Star system simulation in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-star-sim

Star system simulation in Go

Comparing different calculation methods with and without goroutines.

Star Simulator Screenshot

Dependencies

Ubuntu:

sudo apt install golang-go xserver-xorg-dev xorg-dev

Build

go install ./cmd/star-calc/
go install ./cmd/star-sim/

or

go build ./cmd/star-calc/
go build ./cmd/star-sim/

Run

Example (direct path):

./star-calc -stars 1000 -steps 500 -file /tmp/simdata
./star-sim -file /tmp/simdata
./star-calc -model BarnesHutGR -stars 1000 -steps 500 -file /tmp/simdata2
./star-sim -file /tmp/simdata2

Measurement

Star Simulator Screenshot

About

Star system simulation in Go

License:MIT License


Languages

Language:Go 100.0%