HP Forums
classical orbital elements of a hyperbolic flyby orbit - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: classical orbital elements of a hyperbolic flyby orbit (/thread-19205.html)



classical orbital elements of a hyperbolic flyby orbit - cdeaglejr - 11-25-2022 06:52 PM

This HP Prime program demonstrates how to interact with the fbhyper subroutine which calculates the classical orbital elements of a hyperbolic flyby orbit.

The user provides the x, y and z components of both the incoming and outgoing v-infinity velocity vectors along with the periapsis radius of the flyby orbit and gravitational constant of the flyby planet with statements like the following

// gravitational constant of the flyby planet (kilometers^3/seconds^2)

LOCAL mu := 324858.599;

// incoming v-infinity vector (kilometers/second)

vinfi(1) := 2.675356842744762;
vinfi(2) := -0.067571880627955;
vinfi(3) := 7.018676936018188;

// outgoing v-infinity vector (kilometers/second)

vinfo(1) := 4.415208588753238;
vinfo(2) := 5.192058899284808;
vinfo(3) := 3.157910646786967;

// periapsis radius of the flyby trajectory (kilometers)

rp := 7051.910939;

The source code and documentation for this program can be downloaded from

https://www.dropbox.com/s/qet7k0dv2qkrhbd/demo_fbhyper.zip?dl=0