Skip to content

A project I made during my undergraduate years of the gravitational interaction that Neptune and Jupiter have on the Sun that showcased a wobbling behaviour.

Notifications You must be signed in to change notification settings

Gitavan/Sun-Wobble-Due-To-Neptune-And-Jupiter

Repository files navigation

Sun-Wobble-Due-To-Neptune-And-Jupiter

A project I made during my undergraduate years on the gravitational interaction that Neptune and Jupiter have on the Sun showcased a wobbling behaviour.

The code is separated into 3 tasks:

Task 1

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.

Task 2

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.

Task 3

Plotted only the Sun Coordinates in comparison to its centre of mass. Generated a GIF showcasing the plot path.

Files

  • Computational Assignment - Sun's Wobble.ipynb: The main code
  • SunJupSat.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.

Usage

Simply run Computational Assignment - Sun's Wobble.ipynb and you are good to go.

About

A project I made during my undergraduate years of the gravitational interaction that Neptune and Jupiter have on the Sun that showcased a wobbling behaviour.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published