https://github.com/swrup/orbite
https://github.com/swrup/orbite
physics-simulation simulation
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/swrup/orbite
- Owner: swrup
- License: gpl-3.0
- Created: 2019-09-03T10:12:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-05-22T01:50:54.000Z (9 months ago)
- Last Synced: 2025-05-22T02:38:46.794Z (9 months ago)
- Topics: physics-simulation, simulation
- Language: Rust
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```sh
cargo run --release conf.ini
```
## Visualisation and data analysis
Plot energy, virial, density...:
```sh
python ./scripts/plot.py
```
Analyse orbits:
```sh
python ./scripts/periode.py
```
Render a video of the simulation (use gnuplot + ffmpeg):
```sh
./scripts/gnuplot.sh
```