Skip to main content

A Python wrapper for ivlam

Project description

pypi License: GPL v3

Python Wrapper for ivlam

This is a python wrapper of the Fortran code of Russell's Lambert Solver.

Install

pip install ivlam

Usage

Initialize

from ivlam import *

infoload = ivlam.initialize(-1)
if(infoload!=0):
    print('Error in ivlam_initialize')

Solve the Problem

r1vec=np.array([1.0,2.0,3.0])  
r2vec=np.array([2.0,-3.0,-4.0])
tof=450.0

prograde=True
direction=ivlam.getdirection(prograde,r1vec,r2vec)

dimensionV=10
v1vec,v2vec,uptonhave,inforeturnstatusn,infohalfrevstatus = ivlam.thrun(r1vec,r2vec,tof,direction,dimensionV,dimensionV)
if(inforeturnstatusn!=0):
    print('Error in ivlam_thrun')
if(infohalfrevstatus!=0):
    print('This example is very close to the nPi transfer')
print(v1vec[:,dimensionV-uptonhave:dimensionV+uptonhave+1])
print(v2vec[:,dimensionV-uptonhave:dimensionV+uptonhave+1])

License

GNU General Public License v3 or later (GPLv3+)

Reference

[1] Russell, Ryan P., "On the Solution to Every Lambert Problem," Celestial Mechanics and Dynamical Astronomy, Vol. 131, Article 50, 2019, pp. 1-33, https://dx.doi.org/10.1007/s10569-019-9927-z

[2] Russell, Ryan P., "Complete Lambert Solver Including Second-Order Sensitivities," Journal of Guidance, Control, and Dynamics, accepted 2021, https://doi.org/10.2514/1.G006089

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

ivlam-0.2.0.tar.gz (908.4 kB view details)

Uploaded Source

File details

Details for the file ivlam-0.2.0.tar.gz.

File metadata

  • Download URL: ivlam-0.2.0.tar.gz
  • Upload date:
  • Size: 908.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ivlam-0.2.0.tar.gz
Algorithm Hash digest
SHA256 94c7b574733a423ac2d773d74855388b9e50a05945960a555843e9d0f9d62d43
MD5 dd0399cc2bddd9f7f0359a856f85d2a8
BLAKE2b-256 42b278540e293ce2f948762fb3787c4569fda8126370d0f7767be187bf8fe459

See more details on using hashes here.

Provenance

The following attestation bundles were made for ivlam-0.2.0.tar.gz:

Publisher: publish.yml on pennbay/ivlam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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