Skip to content

swrup/orbite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orbite

Barnes–Hut simulation to study the formation and evolution of self-gravitating systems.

Configuration file

A configuration file is used to specify all the parameters of the simulation. Simulation data will be written to the folder defined in the configuration file. See conf.ini for an example. It provides sensible default parameters to obtain an accurate simulation of a globular cluster's collapse.

Run

Install Rust: https://www.rust-lang.org/tools/install

Use Cargo to build and run:

cargo run --release conf.ini

Visualisation and data analysis

Plot energy, virial, density...:

python ./scripts/plot.py <simulation-folder>

Analyse orbits:

python ./scripts/periode.py <simulation-folder>

Render a video of the simulation (use gnuplot + ffmpeg):

./scripts/gnuplot.sh <simulation-folder>

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published