- #1
AussieDave
- 47
- 0
Hello,
I have a little three-body (well n-body but let's just worry about 3 now) simulator. I input six Keplerian orbital elements (period P, eccentricity E, inclination I, longitude of the ascending node W, argument of periapse w and initial true anomaly f). They then get converted to Cartesian coordinates and integrated using a simple RK4.
A problem, however, is the plane with which the angles are measured with respect to. I also have code that converts from Cartesian back to orbital elements, so I can see how they progress over time. This seems to be with respect to the invariable plane though, which is the plane of the total angular momentum of the system (and due to conservation of angular momentum it will not change).
When comparing my results to papers, I see I am using the invariable plane as the reference. I am able to successfully go from orbital elements -> Cartesian -> orbital elements and recover them, which makes me believe I am both inputting and outputting the orbital elements with respect to the invariable plane.
What I want though is to use the plane of the sky, which is how orbital elements are defined in exoplanet papers since we measure the orbits...in the sky. I think it would be just a rotation between the two but I am not sure what it is exactly and my tests so far have failed. I have also looked a fair bit online but not seen what the transformation is. Quite possibly it's simple and I just made an error, but I am not sure.
Kind regards in advance,
Dave
I have a little three-body (well n-body but let's just worry about 3 now) simulator. I input six Keplerian orbital elements (period P, eccentricity E, inclination I, longitude of the ascending node W, argument of periapse w and initial true anomaly f). They then get converted to Cartesian coordinates and integrated using a simple RK4.
A problem, however, is the plane with which the angles are measured with respect to. I also have code that converts from Cartesian back to orbital elements, so I can see how they progress over time. This seems to be with respect to the invariable plane though, which is the plane of the total angular momentum of the system (and due to conservation of angular momentum it will not change).
When comparing my results to papers, I see I am using the invariable plane as the reference. I am able to successfully go from orbital elements -> Cartesian -> orbital elements and recover them, which makes me believe I am both inputting and outputting the orbital elements with respect to the invariable plane.
What I want though is to use the plane of the sky, which is how orbital elements are defined in exoplanet papers since we measure the orbits...in the sky. I think it would be just a rotation between the two but I am not sure what it is exactly and my tests so far have failed. I have also looked a fair bit online but not seen what the transformation is. Quite possibly it's simple and I just made an error, but I am not sure.
Kind regards in advance,
Dave