Categorygithub.com/Aoana/go-star-sim
repository
0.0.0-20211127142147-03ab72794a51
Repository: https://github.com/aoana/go-star-sim.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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