Structs§
- Orbital
Elements - Classical Keplerian orbital elements.
- State
Vector - Cartesian state vector in an inertial frame.
Functions§
- brachistochrone_
accel - Required constant acceleration for a brachistochrone (flip-at-midpoint) transfer.
- brachistochrone_
dv - ΔV for a brachistochrone transfer (constant thrust, flip at midpoint).
- brachistochrone_
max_ distance - Maximum reachable distance for a brachistochrone transfer at given acceleration and time.
- brachistochrone_
time - Transfer time for a brachistochrone transfer given distance and constant acceleration.
- elements_
to_ state_ vector - Convert classical Keplerian orbital elements to a Cartesian state vector.
- exhaust_
velocity - Convert specific impulse (seconds) to exhaust velocity (km/s).
- hohmann_
transfer_ dv - Calculate ΔV for a Hohmann transfer between two circular orbits.
- initial_
mass - Initial (pre-burn) mass (kg) given dry mass and ΔV.
- jet_
power - Jet power (W) for a given thrust (N) and exhaust velocity (km/s).
- mass_
flow_ rate - Mass flow rate (kg/s) for a given thrust (N) and exhaust velocity (km/s).
- mass_
ratio - Tsiolkovsky mass ratio: m₀/m_f = exp(ΔV / vₑ).
- oberth_
dv_ gain - Effective velocity change from a burn performed at periapsis of a hyperbolic flyby.
- oberth_
efficiency - Fractional Oberth efficiency: (Δv_inf / burn_dv) - 1.
- orbital_
period - Orbital period for an elliptical orbit: T = 2π * sqrt(a³/μ)
- plane_
change_ dv - Compute the out-of-plane ΔV required for a simple plane change maneuver.
- propellant_
fraction - Propellant mass fraction: 1 - 1/mass_ratio = 1 - exp(-ΔV/vₑ).
- required_
propellant_ mass - Required propellant mass (kg) given dry (post-burn) mass and ΔV.
- specific_
angular_ momentum - Specific angular momentum magnitude for an elliptical orbit: h = sqrt(μ * a * (1 - e²))
- specific_
energy - Specific orbital energy: ε = -μ/(2a)
- vis_
viva - Vis-viva equation: v = sqrt(μ * (2/r - 1/a))