College Physics ›› 2025, Vol. 44 ›› Issue (5): 68-.doi: 10.16854/j.cnki.1000-0712.240295

Previous Articles     Next Articles

Design of celestial motion simulation based on Python

WANG Yichen1, WANGXinyi1, LiYing1, LIUYuying2, LIChunyan2, #br# ZHAO Zhichao2, WANG Wenjie2#br#   

  1. 1. College of Information and Electrical Engineering, China Agricultural University, Beijing 100083, China;
    2. College of Science, China Agricultural University, Beijing 100083, China
  • Received:2024-06-24 Revised:2024-11-20 Online:2025-07-01 Published:2025-07-28

Abstract: Celestial motion is a core research area in astrophysics. Utilizing fundamental laws and formulas from classical mechanics, such as the law of universal gravitation and the momentum theorem, we design and develop a celestial motion simulation system. This is achieved using advanced programming language Python, along with visualization libraries Mayavi, Matplotlib, and Vhmap. Through this system, we vividly simulate orbital transfer problems and the dynamic behaviors of binary and triple star systems, providing an intuitive representation of celestial motion trajectories.

Key words: simulation design, celestial motion, visualization, numerical simulation, Python, Mayavi