<< CL_fo_thirdBodyAcc Models CL_fo_zonHarmAcc >>

CelestLab >> Models > CL_fo_thirdBodyPot

CL_fo_thirdBodyPot

Potential due to gravity (third body)

Calling Sequence

[pot] = CL_fo_thirdBodyPot(pos, pos_b, mu_b)

Description

Parameters

pos:

Position vector (from central body) [m]. (3xN or 3x1)

pos_b:

Position vector of third body (from central body) [m]. (3xN or 3x1)

mu_b:

Gravitational constant of third body [m^3/s^2]. (1x1)

pot:

Potential [m^2/s^2]. (1xN)

Authors

See also

Examples

pos = [7000.e3; 0; 0];
pos_sun = CL_eph_sun(CL_dat_cal2cjd(2000,3,21));
mu_sun = CL_dataGet("body.Sun.mu");
CL_fo_thirdBodyPot(pos, pos_sun, mu_sun)

Report an issue
<< CL_fo_thirdBodyAcc Models CL_fo_zonHarmAcc >>