hannorein / rebound

💫 An open-source multi-purpose N-body code.
https://rebound.readthedocs.io/
GNU General Public License v3.0
849 stars 219 forks source link

reference time for orbital elements #610

Closed PS-OnGit closed 1 year ago

PS-OnGit commented 2 years ago

Hello, I am using rebound for some n-planet simulations with dynamic interactions, and was wondering if it is possible to get the orbital elements for a specific reference time, or if they are always updated to the current time-step?

hannorein commented 2 years ago

The orbital elements are always instantaneous, calculated from the current cartesian coordinates. If you want to get orbital elements at a specific time, you need to integrate to that time first.