User Guide¶
Using a Solver¶
Each Lambert’s problem algorithm in lamberthub is a Python function with
the same interface:
from lamberthub import authorYYYY
v1, v2 = authorYYYY(
mu, r1, r2, tof, M=0, is_prograde=True, is_low_path=True, # Type of solution
maxiter=35, atol=1e-5, rtol=1e-7, full_output=False # Iteration config
)
Replace authorYYYY with the solver author’s surname and its publication
year. For example, import the Izzo solver as izzo2015. The
lamberthub.ALL_SOLVERS list contains every available solver.
Parameters¶
Parameter |
Type |
Description |
|---|---|---|
|
|
Gravitational parameter, which is the mass of the attracting body multiplied by the gravitational constant. |
|
|
Initial position vector. |
|
|
Final position vector. |
|
|
Time of flight between the initial and final position vectors. |
|
|
Number of revolutions. A value of zero, the default, selects a direct transfer. |
|
|
Controls the inclination of the final orbit. |
|
|
Selects the path when more than two solutions are available. Neither path has an advantage unless the mission has specific constraints. |
|
|
Maximum number of iterations allowed when computing the solution. |
|
|
Absolute tolerance for the iterative method. |
|
|
Relative tolerance for the iterative method. |
|
|
Returns iteration details when set to |
Returns¶
Return |
Type |
Description |
|---|---|---|
|
|
Initial velocity vector. |
|
|
Final velocity vector. |
|
|
Number of iterations. This value is returned only when |
|
|
Time per iteration. This value is returned only when |