<< CL_ip_insertionDv Interplanetary Math >>

CelestLab >> Interplanetary > CL_ip_sphereInfluence

CL_ip_sphereInfluence

Radius of sphere of influence

Calling Sequence

rsoi1 = CL_ip_sphereInfluence(mu1,mu2,dist)

Description

Parameters

mu1:

Gravitational constant of body 1 (lightest) [km^3/s^2] (1xN or 1x1)

mu2:

Gravitational constant of body 2 (heaviest) [km^3/s^2] (1xN or 1x1)

dist:

Distance between the two bodies [m] (1xN or 1x1)

rsoi1:

Radius of sphere of influence around body 1 [m] (1xN)

Authors

Bibliography

Examples

// Example 1: Sphere of influence of the Earth
mu1 = CL_dataGet("body.Earth.mu");
mu2 = CL_dataGet("body.Sun.mu");
dist = 1 * CL_dataGet("au");

rsoi1 = CL_ip_sphereInfluence(mu1,mu2,dist)

// Example 2: Sphere of influence of all planets in the Solar system
bodies = CL_dataGet("body");
mu1 = [bodies.Mercury.mu, bodies.Venus.mu, bodies.Earth.mu,..
bodies.Mars.mu, bodies.Jupiter.mu, bodies.Saturn.mu,..
bodies.Uranus.mu, bodies.Neptune.mu];
mu2 = bodies.Sun.mu;
dist = [0.39, 0.73, 1, 1.52, 5.2, 9.5, 19.2, 30.7] * CL_dataGet("au");

rsoi1 = CL_ip_sphereInfluence(mu1,mu2,dist)

Report an issue
<< CL_ip_insertionDv Interplanetary Math >>