<< CL_ip_flybyParams Interplanetary CL_ip_insertionDv >>

CelestLab >> Interplanetary > CL_ip_flybyVectors

CL_ip_flybyVectors

Conversion between various fly-by vectors (hyperbolic orbits)

Calling Sequence

[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])

Description

Parameters

type_in:

(string) Nature of input vectors: "pv", "pvinf" or "vvinf". (1x1)

pos, vel:

Position [m] and velocity [m/s] vectors. (3xN or 3x1)

pinfva, vinfva:

Arrival impact [m] and excess velocity [m/s] vectors. (3xN or 3x1)

pinfvd, vinfvd:

Departure impact [m] and excess velocity [m/s] vectors. (3xN or 3x1)

vinfva, vindvd:

Arrival and departure excess velocity vectors [m/s]. (3xN or 3x1)

output:

(string) Name of outputs: "posp", "velp", "vinfva", "vinfvd", "pinfva" or "pinfvd". (1xP)

mu:

(optional) Gravitational constant [m^3/s^2]. Default value is %CL_mu.

par_out1, par_out2, ...:

Output vectors [m, m/s]. (3xN)

Authors

See also

Examples

// Earth fly-by - Arrival impact and excess velocity vectors (m and m/s)
// Note: the vectors are chosen perpendicular to each other.
pinfva = [15000.e3; 0; 0];
vinfva = [0; 6.e3; 3.e3];

// Position and velocity vectors at periapsis (m and m/s)
[posp, velp] = CL_ip_flybyVectors("pvinfa", pinfva, vinfva, ["posp", "velp"])

// Departure excess velocity vector from position/velocity vectors (m/s)
[vinfvd] = CL_ip_flybyVectors("pv", posp, velp, ["vinfvd"])

// Impact vector from excess velocity vectors
// Note: computed perpendicular to excess velocity vector
CL_ip_flybyVectors("vvinf", vinfva, vinfvd, ["pinfva"]) - pinfva // => 0

Report an issue
<< CL_ip_flybyParams Interplanetary CL_ip_insertionDv >>