<< CL_ip_escapeDv Interplanetary CL_ip_flybyVectors >>

CelestLab >> Interplanetary > CL_ip_flybyParams

CL_ip_flybyParams

Conversion between various fly-by parameters (hyperbolic orbits)

Calling Sequence

[par_out1, par_out2, ...] = CL_ip_flybyParams(type_par1, par1, type_par2, par2, output [, mu])

Description

Parameters

type_par1:

(string) Type of 1st input parameter. Only "vinf" accepted. (1x1)

par1:

Value of 1st input parameter [m, m/s, rad]. (1xN or 1x1)

type_par2:

(string) Type of 2nd input parameter: "rp", "dinf" or "turnang". (1x1)

par2:

Value of 2nd input parameter [m, m/s, rad]. (1xN or 1x1)

output:

(string) Names of the desired output parameters: "vinf", "rp", "dinf", "turnang", "vp" or "dv". (1xP)

mu:

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

par_out1, par_out2, ...:

Values of the output parameters [m, m/s, rad]. (1xN)

Authors

See also

Bibliography

Examples

// Periapsis radius (m) and hyperbolic excess velocity (m/s)
rp = 8.e6;
vinf = 3.e3;

// Flyby turn-angle (default value for "mu")
turnang = CL_ip_flybyParams("vinf", vinf, "rp", rp, "turnang")

// Check results
CL_ip_flybyParams("vinf", vinf, "turnang", turnang, "rp") - rp  // => 0

Report an issue
<< CL_ip_escapeDv Interplanetary CL_ip_flybyVectors >>