You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parameterize with $q$ instead of $a$ (probably this is why the EllipticalOrbit class stores pericenterDistance instead of semimajorAxis, which currently leads to extra division operations - probably makes sense to have ParabolicOrbit as a separate class and use semimajorAxis for elliptical/hyperbolic orbits. Add support for MeanMotion instead of Period (also useful for hyperbolic orbits)
Some notes from investigating how to do this...
Parameterize with$q$ instead of $a$ (probably this is why the
EllipticalOrbit
class storespericenterDistance
instead ofsemimajorAxis
, which currently leads to extra division operations - probably makes sense to haveParabolicOrbit
as a separate class and usesemimajorAxis
for elliptical/hyperbolic orbits. Add support forMeanMotion
instead ofPeriod
(also useful for hyperbolic orbits)From https://www.bogan.ca/orbits/kepler/orbteqtn.html
Derived calculations:
Go from$M$ to $D$ by solving cubic:
Conversion to Cartesians:
Velocities:
(check above derivations)
The text was updated successfully, but these errors were encountered: