A Python wrapper for ivlam
Project description
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94c7b574733a423ac2d773d74855388b9e50a05945960a555843e9d0f9d62d43
|
|
| MD5 |
dd0399cc2bddd9f7f0359a856f85d2a8
|
|
| BLAKE2b-256 |
42b278540e293ce2f948762fb3787c4569fda8126370d0f7767be187bf8fe459
|
Provenance
The following attestation bundles were made for ivlam-0.2.0.tar.gz:
Publisher:
publish.yml on pennbay/ivlam
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ivlam-0.2.0.tar.gz -
Subject digest:
94c7b574733a423ac2d773d74855388b9e50a05945960a555843e9d0f9d62d43 - Sigstore transparency entry: 232867343
- Sigstore integration time:
-
Permalink:
pennbay/ivlam@32f20b3071af65d0ac1781cdbc96741ea9055f85 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/pennbay
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@32f20b3071af65d0ac1781cdbc96741ea9055f85 -
Trigger Event:
release
-
Statement type: