A project I made during my undergraduate years on the gravitational interaction that Neptune and Jupiter have on the Sun showcased a wobbling behaviour.
Initialised the mass, XY coordinates and velocity of the Sun, Jupiter and Saturn. Calculate the XY coordinates of Jupiter and Saturn using the gravitational attraction force. Plotted the XY coordinates of Jupiter and Saturn if the Sun was at a fixed point and shown as a GIF.
Similar to Task 1, but now the XY coordinates of the sun were calculated by the attraction forces exerted by Jupiter and Saturn. The result is showcased as a plot and GIF.
Plotted only the Sun Coordinates in comparison to its centre of mass. Generated a GIF showcasing the plot path.
Computational Assignment - Sun's Wobble.ipynb
: The main codeSunJupSat.gif
: GIF image demonstrated the output of Task 1.SunForce.gif
: GIF image demonstrated the output of Task 2.SunWobble.gif
: GIF image demonstrated the output of Task 3.
Simply run Computational Assignment - Sun's Wobble.ipynb
and you are good to go.