N-Body System Simulation Wiki Article.
Directed Force Formula between two planets:
Position Update Equation:
Generate animation parameters:
python3 .\main.py --initial "circle" --n_planets 10 --t 2500 --dt 0.02 --trace --trace_len 1700 --save --skip 10
Generate animation parameters:
python3 .\main.py --initial "spiral" --dt 0.2 --t 1200 --skip 2 --trace --save --skip 3
python3 .\main.py --initial "uniform" --n_planets 25 --dt 0.2 --t 1200 --skip 3 --save