Skip to content

A tool to visualise the stability of 3-body orbits

License

Notifications You must be signed in to change notification settings

0x365/orbit-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orbit View

About

A tool to visualise the stability of 3-body orbits.

The stability is given as standard distribution of the euclidean distance from the first orbit over all other orbits. The period of the first orbit is calculated by looking at the euclidean distance from the intial positions of the 3-bodys and using scipy.signal.find_peaks to identify close contacts with the intial positions.

Calculating the period and stability for all the 200x200 orbits in the grid is computationally expensive and is done with a different repository and is therefore not shown here currently.

This is just a tool to visualise and shouldn't be used as an official way to calculate orbit stability or orbit periods.

Map of standard distribution of energy of each orbit

Map of Correlation between FFT of Neighbouring Orbits

Setup

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Run

python main.py

Then open localhost:8000 in the browser of your choice.

Then just click on the plot to view the orbit at that specific cell. You can switch between energy standard distribution and neighbourhood fft correlation with the buttons at the bottom of the page.

To change between line and triangular initial configuration change orbit type in the main file:

########### SETUP ###########

# Max positive and negative velocities on plot
MAX_V = 1.5
# Type of starting configuration
ORBIT_TYPE = "triangle"     # "triangle" or "line"

About

A tool to visualise the stability of 3-body orbits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages