Conversion between various fly-by vectors (hyperbolic orbits)
[par_out1, par_out2, ...] = CL_ip_flybyVectors(type_in, vect1, vect2, output [, mu]) [par_out1, par_out2, ...] = CL_ip_flybyVectors("pv", pos, vel, output [, mu]) [par_out1, par_out2, ...] = CL_ip_flybyVectors("pvinfa", pinfva, vinfva, output [, mu]) [par_out1, par_out2, ...] = CL_ip_flybyVectors("pvinfd", pinfvd, vinfvd, output [, mu]) [par_out1, par_out2, ...] = CL_ip_flybyVectors("vvinf", vinfva, vinfvd, output [, mu])
Given two vectors characterizing a fly-by, computes other ones.
The argument type_in describes the nature of the input vectors:
- pv: Position and velocity on the hyperbola (pos and vel) - any anomaly
- pvinfa: Arrival impact and excess velocity vectors (pinfva and vinfva)
- pvinfd: Departure impact and excess velocity vectors (pinfvd and vinfvd)
- vvinf: Arrival and departure excess velocity vectors (vinfva and vinfvd)
The quantities that can be computed are given in output and can be:
- posp: Position vector at periapsis
- velp: Velocity vector at periapsis
- vinfva: Arrival excess velocity vector
- vinfvd: Departure excess velocity vector
- pinfva: Arrival impact vector (perpendicular to excess velocity vector)
- pinfvd: Departure impact vector (perpendicular to excess velocity vector)
The output vectors are given in the same frame as the input vectors.
Notes:
1) Input impact vector (case type_in = pvinf):
The impact vector pinfva does not need to be perpendicular to the excess velocity vector (vinfva). pinfva can be any vector from the body center to a point M on the arrival aymptote.
2) Input departure excess velocity vector (case type_in = vvinf):
It is not checked whether the norm of vinfva is identical to the norm of the departure excess velocity vector (vinfvd). The norm of vinfvd is actually not used.
(string) Nature of input vectors: "pv", "pvinf" or "vvinf". (1x1)
Position [m] and velocity [m/s] vectors. (3xN or 3x1)
Arrival impact [m] and excess velocity [m/s] vectors. (3xN or 3x1)
Departure impact [m] and excess velocity [m/s] vectors. (3xN or 3x1)
Arrival and departure excess velocity vectors [m/s]. (3xN or 3x1)
(string) Name of outputs: "posp", "velp", "vinfva", "vinfvd", "pinfva" or "pinfvd". (1xP)
(optional) Gravitational constant [m^3/s^2]. Default value is %CL_mu.
Output vectors [m, m/s]. (3xN)
CNES - DCT/SB