Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Position of a Body on a Hyperbolic/Parabolic Orbit with Respect to Time

  1. Dec 29, 2011 #1
    .. Using Keplerian Elements

    Hi. Disclaimer: this is the first foray into orbits I've ever taken. I only did mechanics in university and haven't really touched it sincew.

    I'm busy coding a simulation of a solar system. I've managed to code a routine to calculate the position of a body along an elliptic orbit, using a wikipedia article, but the code breaks down when the eccentricity of the orbit approaches or passes 1.0. Specifically, the true anomaly goes to π and the radius goes to ∞ pretty much immediately when the eccentricity is 1.0; when the eccentricity is >1.0, the true anomaly goes to ∞ too.

    So, I'm looking for a little help with an algorithm to calculate points on a parabolic orbit, or on a hyperbolic orbit, using the same parameters like semimajor axis and eccentricity. From what I can see, mean/eccentric/true anomalies don't make sense for parabolic and hyperbolic orbits.

    I'll take whatever help you can lend, and I don't need anyone to code me a solution, but I'm specifically looking to calculate the coordinates of a point on the orbit with respect to time.

    Thanks for your help!

    If you're curious, here's the code:
    Code (Text):

    float meanAnomaly=(2.0f*pi*age)/(period)+meanAnomalyAtEpoch,
          eccentricAnomaly=solveForEccentricAnomaly(meanAnomaly, eccentricity),
    where solveForEccenticAnomaly solves M=E-e*sin(E).
  2. jcsd
  3. Dec 29, 2011 #2

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    That's the source of your problem. That is Kepler's equation for an elliptical orbit. It isn't valid for hyperbolic orbits (e>1) or for orbits with e=1 (parabolic orbits, plus three kinds of degenerate orbits (angular momentum=0)).

    The solutions for parabolic and hyperbolic orbits can be found in a number of references:
    - Vallado & McClain, Fundamentals of astrodynamics and applications
    - Battin, An introduction to the mathematics and methods of astrodynamics
    - Astrodynamics, MIT Open CourseWare, http://ocw.mit.edu/courses/aeronautics-and-astronautics/16-346-astrodynamics-fall-2008/
  4. Dec 29, 2011 #3
    Phew, that's a little beyond me. However, I know that it's certainly possible to plot a parabola/hyperbola in polar coordinates (or at least wikipedia says we can):


    Can I consider θ to be a true anomaly, and if so, is it possible to calculate θ from time t given parameters similar to Keplerian elements, like semimajor axis, focus distance, or period?
  5. Dec 30, 2011 #4

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    You can't use [itex]r=a(e^2-1)/(1+e\cos\theta)[/itex] for a parabola. You can use [itex]r=p/(1+e\cos\theta)[/itex] where p is the semi latus rectum as a general rule. This is valid for everything but the degenerate cases with zero angular momentum.

    Kepler's equation does generalize to parabolic and hyperbolic orbits. For parabolae you need to use Barker's equation. For hyperbolae you need to use the hyperbolic anomaly. The hyperbolic equivalent of Kepler's equation is [itex]M=e\sinh H - H[/itex].

    For more, and for derivations, I suggest you see the references I supplied in my previous post.
  6. Dec 30, 2011 #5
    Thanks. That doesn't really answer my question, but it's certainly a start. I can get the hyperbolic anomaly from the above formula; can I go from that to a true anomaly, and in the above formula, is M the same as for elliptical orbits? And does Barker's Equation also give a "parabolic anomaly" from a mean anomaly?
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook