https://github.com/cadojo/astrodynamicalcalculations.jl
Common calculations within orbital mechanics and astrodynamics.
https://github.com/cadojo/astrodynamicalcalculations.jl
Last synced: 12 days ago
JSON representation
Common calculations within orbital mechanics and astrodynamics.
- Host: GitHub
- URL: https://github.com/cadojo/astrodynamicalcalculations.jl
- Owner: cadojo
- License: mit
- Archived: true
- Created: 2023-08-31T02:48:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-06T15:56:15.000Z (8 months ago)
- Last Synced: 2025-03-06T08:58:03.701Z (3 months ago)
- Language: Julia
- Size: 271 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!IMPORTANT]
> This project has been **moved** to [`JuliaAstro/EphemerisSources.jl`](https://github.com/JuliaAstro/EphemerisSources.jl).
> The package name and UUID have not changed.[](https://github.com/cadojo/AstrodynamicalCalculations.jl/actions?query=workflow%3ATests)
[](https://cadojo.github.io/AstrodynamicalCalculations.jl)# `AstrodynamicalCalculations.jl`
_Common calculations relating to orbital mechanics and astrodynamics._
## Installation
```julia
pkg> add AstrodynamicalCalculations
```## Overview
Almost all of the equations used in your (my) first-year graduate astrodynamics coursework,
in Julia! This package includes equations which are valid within the Restricted Two Body
Problem (R2BP), and the Circular Restricted Three Body Problem (CR3BP). Each function's
docstring clearly labels the models in which the underlying equations are valid. Iterative
solvers, including Kepler's prediction algorithm, and the universal Lambert solver, are
also provided.Two newer Lambert solver implementations (Lancaster / Blanchard, and
Oldenhuis) are also provided, but they are currently not working. Something seems to have
not transferred well while porting the code from MATLAB to Julia. I hope to work on this
more in 2024.## Getting Stated
Please refer to the [documentation](https://cadojo.github.io/AstrodynamicalCalculations.jl)
for more detailed instructions, and usage examples.```julia
julia> r = [0.0, 11681.0, 0.0]; # kmjulia> v = [5.134, 4.226, 2.787]; # km/s
julia> μ = 398600.4354360959; # km³ s⁻²
julia> e, a, i, Ω, ω, ν = cartesian_to_keplerian(r, v, μ)
(0.723452708202361, 24509.265399338536, 2.6442542356744734, 1.5707963267948966, 4.712449617676915, 1.5707356895026707)julia> T = orbital_period(a, μ)
38186.19850882009julia> rₙ, vₙ = kepler(r, v, μ, 2.5T)
([36872.96963754877, -2574.241491333036, 20016.549742861007], [-0.3141726028666592, -1.6044679459972122, -0.17054909314167882])
```