Skip to content
This repository was archived by the owner on Oct 14, 2023. It is now read-only.
This repository was archived by the owner on Oct 14, 2023. It is now read-only.

Lambert Izzo fails to converge under certain conditions, while Vallado works #1362

@MLopez-Ibanez

Description

@MLopez-Ibanez

🐞 Problem

A Lambert maneuver between two orbits fails to converge but it is unclear what is wrong.

The error seems very fickle and trying to manually recreate the orbits seems to avoid the issue, so I saved the orbits and the error to a pickle file. The error can be reproduced with this short code:

from poliastro.maneuver import Maneuver
from poliastro.bodies import Body
from poliastro.twobody import Orbit
from astropy import units as u
import pickle
import gzip
def from_pickle(filename):
    with gzip.open(filename, 'rb') as f:     
        return pickle.load(f)
        
db = from_pickle("two_shot_transfer_proposalj6y1by8g.pkl.gz")
from_orbit = db['from_orbit']
to_orbit = db['to_orbit']
e = db['e']

MU = 1.32712440018e11 # km^3/s^2

Sun = Body(
        parent=None,
        k = MU * u.km ** 3 / u.s ** 2,
        name="Sun")

man = Maneuver.lambert(from_orbit, to_orbit)

And this pickle file:

two_shot_transfer_proposalj6y1by8g.pkl.gz

Relevant packages:

# Paste your output here:
astropy==4.3.1
astroquery==0.4.3
numba==0.54.1
numpy==1.20.0
pandas==1.2.4
scipy==1.7.1
joblib==1.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions