Skip to content

Implementation of a Runge-Kutta 4 integrator for planetary orbits using only numpy.

License

Notifications You must be signed in to change notification settings

pablonavarrob/RK4-orbital-integrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RK4 Integrator

Implementation of a Runge-Kutta 4 integrator for planetary orbits using only numpy. Shows improved stability over other methods when integrating for longer periods of time and it can also handle the precession of Mercury's orbit.

The code takes a state vector and derives it for the integrator. There are two versions: an easy one, which utilizes for-loops, and a more complex one, which uses fancy indexing and masking for improved efficiency.

Results

Inner Solar System 3D



Outer Solar System 3D



About

Implementation of a Runge-Kutta 4 integrator for planetary orbits using only numpy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages