Delta V required to change the line of apsides
[dv,anv] = CL_man_apsidesLine(ai,ei,pomi,pomf [,posman,mu])
Computes the velocity increment needed to modify the line of apsides.
The maneuver consists in making the orbit rotate in the orbit plane. Thus, only the argument of periapsis is changed; the semi major axis or the eccentricity are not.
The output argument dv is the velocity increment expressed in spherical coordinates in the QSW local frame:
dv = [lambda;phi;dv] (lambda: in-plane angle (pi = towards planet and pi/2 ~ along velocity), phi: out-of-plane angle, positive towards the angular momentum vector (the angular momentum vector is perpendicular to the orbit plane and oriented according to the right hand rule), dv: norm of delta-V).
anv is the true anomaly at the position of maneuver.
posman can be used to define where the maneuver takes place: 0->close to periapsis, 1->close to apoapsis, default is 0)
Initial semi major axis [m] (1xN)
Initial eccentricity (1xN)
Initial argument of periapsis [rad] (1xN)
Final argument of periapsis [rad] (1xN)
(optional) Flag specifying the maneuver location (0->close to periapsis, 1->close to apoapsis, default is 0) (1xN)
(optional) Gravitational constant. [m^3/s^2] (default value is %CL_mu)
Delta-V in spherical coordinates in the QSW frame [lambda;phi;|dv|] [rad,rad,m/s] (3xN)
True anomaly at the position of maneuver [rad] (1xN)
CNES - DCT/SB