Skip to main content

Solve the lambert problem for orbital mechanics

Project description

LambertProblem

LambertProblem is a package that contain methods for solving the Lambert Problem in orbital mechanics

version downloads

This package contain some methods for solve the Lambert Problem in orbital mechanics, and also have a class name Ellipse wich calculate the points of an ellipse.

The method LambertProblem solve the Lambert Equation for a value of semi mayor axis or for a value of transfer time. The method requires the distance for the focus to the two points (r1, r2) and the angle between both radio positions.

The class Ellipse create a ellipse with center in the center of coordinates and parallel to the x axis. The class is initialized with the value of semi mayor axis from the ellipse and the eccentricity or with the semi minor axis.

Space orbits gif

Download and install

If you are using PyPI installation it's as simple as:

pip install LambertProblem

You can also test the unstable version of the package with:

pip install -i https://test.pypi.org/simple/ LambertProblem

Quick start

First, import the package:

import LambertProblem 

Code examples

For creating ellipses with semi mayor value and eccentricity:

elipse = LambertProblem.Ellipse(a = 2, e = 0.3)

For creating ellipses with semi mayor value and semi minor value:

elipse = LambertProblem.Ellipse(a = 2, b = 1)

For solvin the lambert equation given a value of time:

a = LambertProblem.LambertProblem(r1 = 1, r2 = 1.5, theta = 1.309, t = 1.978)

For solvin the lambert equation given a value of time:

t1, t2 = LambertProblem.LambertProblem(r1 = 1, r2 = 1.5, theta = 1.309, a = 1.23)

Version 0.6:

  • six version of the package.

This package has been designed and written by juaniuwu (C) 2023

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

LambertProblem-0.8.tar.gz (4.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page