Project: Math and Science
Views: 27Visibility: Unlisted (only visible to those who know the link)
Image: ubuntu2004Kernel: Python 3 (system-wide)
Orbital Motion Model
Goals:
Use simple linear approximation to plot the orbits of bodies subject to gravitational force.
Object oriented programming methods
including matplotlib
Although this worksheet uses 3D vectors, it all works in 2D as well.
Use physically reasonable physical parameters for solar system.
The model is an iterative function, where each and are determined from the previous , , and the calculated .
The method is linear approximation, using kinematics equations for and , and Newton's Universal Gravitation inverse square law for .
The vectors are represented in Python using NumPy arrays. NumPy is preferred for ease of manipulation as well as plotting via matplotlib.
In [1]:
In [2]:
In [3]:
In [4]:
In [5]:
In [6]:
In [0]: