B-plane and hyperbolic routines.
Compute the hyperbolic turning angle from the eccentricity.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | e |
eccentricity [--] |
turning angle [rad]
Convert V-infinity magnitude to energy.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | vinfmag |
vector magnitude [km/s] |
two-body orbital energy [km^2/s^2]
Compute B-plane parameters from position and velocity.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | mu |
central body grav parameter |
||
real(kind=wp), | intent(in), | dimension(6) | :: | rv |
state vector (km,km/s) |
|
real(kind=wp), | intent(out), | dimension(3) | :: | vinfvec |
incoming V-infinity vector (km/s) |
|
real(kind=wp), | intent(out) | :: | bmag |
magnitude of B vector (km) |
||
real(kind=wp), | intent(out) | :: | theta |
aim point orientation [rad] |
||
real(kind=wp), | intent(out) | :: | BdotT |
(km) |
||
real(kind=wp), | intent(out) | :: | BdotR |
(km) |
||
logical, | intent(out) | :: | status_ok |
false if there were errors (non-hyperbolic or degenerate state) |
Compute B-plane parameters from position and velocity -- alternate version.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | mu |
central body grav parameter |
||
real(kind=wp), | intent(in), | dimension(6) | :: | state |
state vector (km,km/s) |
|
real(kind=wp), | intent(out) | :: | bdotr |
(km) |
||
real(kind=wp), | intent(out) | :: | bdott |
(km) |
||
real(kind=wp), | intent(out) | :: | bmag |
magnitude of B vector (km) |
||
real(kind=wp), | intent(out) | :: | theta |
aim point orientation [rad] |
||
integer, | intent(out) | :: | istat |
status flag: |
Compute the incoming and/or outgoing v-infinity vectors, given the position and velocity of a hyperbola.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | mu |
central body gravitational parameter |
||
real(kind=wp), | intent(in), | dimension(6) | :: | rv |
position,velocity vector |
|
real(kind=wp), | intent(out), | optional, | dimension(3) | :: | vinfin |
incoming v-infinity vector |
real(kind=wp), | intent(out), | optional, | dimension(3) | :: | vinfout |
outgoing v-infinity vector |
Unit test for bplane_module.