Skip to content

FloLangenfeld/Python-solar-system

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulating the solar system with under 100 lines of code in Python

This is a Python program I wrote attempting to simulate a quite realistic solar system with minimal lines of code.

solar_system_6in_150dpi

Author

Chong-Chong He (che1234 @ umd.edu)

Modules required

numpy, matplotlib, datetime

Optional: astroquery (to retrieve planets data from nasa.org and generate initial condition)

How to run

With the required modules installed, simply run the program, e.g. in UNIX command line, with

python solar_system.py

Modify sim_duration in the beginning of the code to change the duration of the simulation.

To make a different initial condition, modify and run get_initial_condition.py.

References

[JPL HORIZONS on-line solar system database][https://docs.astropy.org/en/stable/coordinates/solarsystem.html]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.3%
  • Makefile 1.7%