RazerM / orbital

High level orbital mechanics package.
MIT License
91 stars 35 forks source link

How to generate an animation for a Hohmann Transfer #9

Open OrbitalMechanic opened 6 years ago

OrbitalMechanic commented 6 years ago

I'm running OrbitalPy ver. 0.7.0 on a Mac Pro (desktop, Late 2012) running Mac OS X ver. 10.12.6 (Sierra) under Python 3.6.5 using the Anaconda Distribution. I'd like to generate an animation (2D and 3D) of a Hohmann transfer.

The 2D and 3D static plots came out fine. As for the animations, the results I get are animations for the initial orbit and not the actual transfer. The questions I have are: (1) does Orbitalpy support generation of Hohmann transfer animations? (2) if Orbitalpy supports animations of Hohmann transfers, then what is the procedure to make it happen?

I've attached a text file containing a copy of the program and the output static plots below. The animations stored as *.mp4 files are not included.

OrbitalPy_Hohmann.py.txt

figure_1 figure_2 figure_3 figure_4

hohmann transfer 2d view

hohmann transfer 3d view