Celestial dynamics -------------------- * **Topic:** dynamics, conservation laws * **Task A:** 1. Run the simulation (a planet orbiting a star) using the Euler algorithm. Study the trajectory. Is the orbit stable? Does changing the time step :math:`\Delta t` affect this? 2. Study the momentum and energy during the run. Are they conserved? * **Task B:** 1. Implement the leapforg or standard velocity Verlet algorithm. 2. Run the simulation with Verlet using different :math:`\Delta t`. Compare the results to Euler. * **Template:** `dynamics.py `_ * **Data:** `orbit.txt `_ * **Further reading:** - https://en.wikipedia.org/wiki/Verlet_integration - https://en.wikipedia.org/wiki/Leapfrog_integration - https://en.wikipedia.org/wiki/Molecular_dynamics dynamics.py ################# .. automodule:: dynamics :members: :undoc-members: