1

I have written a simple numerical integration code to calculate the orbits of two planetary bodies orbiting a star, in order to calculate the transit-timing variation for one body due to the gravitational perturbations of the other. I am stuck on two issues:

(1) I want to be able to check my numerical code for the one-body case by deriving an analytical expression for $x(t)$ and $y(t)$, or equivalently $\theta(t)$ and $r(t)$, as an initial value problem using initial positions and velocities. I can find plenty of derivations online for $r(\theta)$, but none that explicitly solve for position as a function of time. My understanding is that this should be possible, but I can't find any references that work it out. I am ok assuming the unperturbed orbit is elliptical and stable, but hopefully not necessarily circular. How would I go about doing this? Note: I have seen the answers to this question, which state that there are analytic solutions but they are elliptic functions. However, none of the answers show how to derive this, or whether there might be nicer solutions under certain simplifications/assumptions.

(2) I would also like to be able to check that the values I calculate for the transit-timing variations are reasonable. It seems like this is a very involved calculation (ie. as discussed in this paper). Is there any simplified calculation that could be made (perhaps making some restrictive assumptions on the orbital configuration) that would allow me to check my numerical results analytically?

  • Wikipedia has Kepler’s method with which you can compute position vs. time to arbitrary precision without integrating. – Ghoster Nov 18 '22 at 20:28
  • Also related: https://physics.stackexchange.com/q/99094/25301 – Kyle Kanos Nov 18 '22 at 20:28
  • to clarify, I am looking for something that can be solved as an initial value problem (ie. I specify the initial location and velocity vectors of the planet, write down the differential equations for acceleration, and go from there), rather than something that depends on knowing (and having well-defined) orbital parameters like eccentricity from the start – Random_Astro_Student Nov 18 '22 at 20:29
  • 1
    simple numerical integration code Does your code produce a closed orbit? Does it conserve energy? Simple codes often do neither. – Ghoster Nov 18 '22 at 20:32
  • The eccentricity can be calculated from the initial position and velocity vectors. – Ghoster Nov 18 '22 at 20:39
  • 1
    Clarifications belong in the question, not in a comment. Questions are editable. – Ghoster Nov 18 '22 at 20:40
  • Originally posted at https://space.stackexchange.com/q/61009/ But it was suggested there that it would be better on another site. – PM 2Ring Nov 18 '22 at 21:13
  • This answer says “You can’t get $r(t)$ or $t(r)$ as a simple formula but you can get a nice, complete, analytic parameterized solution $r(E)$, $\theta(E)$, $t(E)$ where the parameter $E$ along the orbit is called the eccentric anomaly.” – Ghoster Nov 18 '22 at 21:23
  • 1
    The solution involves an elliptic integral, of which a simplification can be for special cases, like near-circular orbits. – John Alexiou Nov 18 '22 at 21:50

0 Answers0