Lambert class#
- class pykep.lambert_problem(r0=[1, 0, 0], r1=[0, 1, 0], tof=pi / 2, mu=1., cw=False, max_revs=0)#
- Args:
r0 (1D array-like): Cartesian components of the first position vector [xs, ys, zs]. Defaults to [1,0,0].
r1 (1D array-like): Cartesian components of the second position vector [xf, yf, zf]. Defaults tot [0,1,0].
tof (
float
): time of flight. Defaults to \(\frac{\pi}{2}\).mu (
float
): gravitational parameter. Defaults to 1.cw (
bool
): True for retrograde motion (clockwise). Defaults to False.max_revs (
float
): Maximum number of multiple revolutions to be computed. Defaults to 0.
Note
Units need to be consistent. The multirev Lambert’s problem will be solved upon construction and its solution stored in data members.
- Examples:
>>> import pykep as pk >>> import numpy as np >>> r0 = [1,0,0] >>> r1 = [0,1,0] >>> tof = np.pi/2 >>> mu = 1. >>> lp = pk.lambert_problem(r0, r1, tof, mu) >>> lp.v0[0] [-4.1028493158958256e-16, 1.0000000000000002, 0.0]
- property Nmax#
The maximum number of iterations allowed.
- property iters#
The number of iterations made.
- property mu#
The gravitational parameter of the attracting body.
- property r0#
The first point.
- property r1#
The second point.
- property tof#
The time of flight between the two points.
- property v0#
The velocity at the first point.
- property v1#
The velocity at the second point.
- property x#
The Battin variable x along the time of flight curves.