orbit_transfer
Impulsive orbital manoeuvres around one body (two-body, coplanar and coaxial orbits): Hohmann and bi-elliptic transfers between circular or elliptic orbits, plane change (pure, separate, or combined with the highest burn), phasing in a circular orbit; delta-v per burn from vis-viva, coast time, propellant by the rocket equation.
- Field
- Space and orbits
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 0.05 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001Hohmann 300 km to geostationary, vis-viva closed form dv1 = sqrt(GM/r1)(sqrt(2 r2/(r1+r2)) - 1), dv2 = sqrt(GM/r2)(1 - sqrt(2 r1/(r1+r2))), t = pi sqrt(a^3/GM) (textbook: about 3.89 km/s); rel 1e-6passed
dv1_m_s2425.73 ± 0.00242425.73lockedunder 0.01 % of the tolerance useddv2_m_s1466.82 ± 0.00151466.82lockedunder 0.01 % of the tolerance useddv_total_m_s3892.56 ± 0.00393892.56lockedunder 0.01 % of the tolerance usedtransfer_time_h5.27506 ± 5.3e-065.27506lockedunder 0.01 % of the tolerance usedtransfer_sma_km24421.1 ± 2.4e-0524421.1lockedunder 0.01 % of the tolerance usedr0002Tsiolkovsky rocket equation on the same Hohmann: m1 = m0 exp(-dv/(Isp g0)), Isp 300 s, m0 1000 kg, g0 = 9.80665 exact; rel 1e-6passed
final_mass_kg266.308 ± 0.00027266.308lockedunder 0.01 % of the tolerance usedpropellant_kg733.692 ± 0.00073733.692lockedunder 0.01 % of the tolerance usedexhaust_speed_m_s2941.99 ± 2.9e-092941.99lockedunder 0.01 % of the tolerance usedr0003Pure plane change 28.5 deg in 300 km circular orbit, closed form dv = 2 v sin(di/2), v = sqrt(GM/r); rel 1e-6passed
dv_plane_m_s3803.44 ± 0.00383803.44lockedunder 0.01 % of the tolerance useddv_total_m_s3803.44 ± 0.00383803.44lockedunder 0.01 % of the tolerance usedr0004Hohmann 300 km to GEO with 28.5 deg plane change combined at apoapsis, law of cosines dv = sqrt(va^2 + vc^2 - 2 va vc cos di); rel 1e-6passed
dv1_m_s2425.73 ± 0.00242425.73lockedunder 0.01 % of the tolerance useddv_plane_m_s1830.22 ± 0.00181830.22lockedunder 0.01 % of the tolerance useddv_total_m_s4255.96 ± 0.00434255.96lockedunder 0.01 % of the tolerance usedr0005Hohmann 300 km to GEO then separate 28.5 deg plane change in GEO, closed form dv1 + dv2 + 2 v_GEO sin(di/2); rel 1e-6passed
dv_total_m_s5406.23 ± 0.00545406.23lockedunder 0.01 % of the tolerance usedr0006Bi-elliptic r 7000 -> 105000 km via 210000 km (ratio 15), vis-viva closed form per burn and two half-ellipse times; Hohmann closed form for comparison; rel 1e-6passed
dv1_m_s2952.14 ± 0.0032952.14lockedunder 0.01 % of the tolerance useddv2_m_s774.959 ± 0.00077774.959lockedunder 0.01 % of the tolerance useddv3_m_s301.416 ± 0.0003301.416lockedunder 0.01 % of the tolerance useddv_total_m_s4028.52 ± 0.0044028.52lockedunder 0.01 % of the tolerance usedtransfer_time_h135.797 ± 0.00014135.797lockedunder 0.01 % of the tolerance usedhohmann_dv_m_s4046.33 ± 0.0044046.33lockedunder 0.01 % of the tolerance usedbielliptic_cheaper= truetruelockedexact matchr0007Bi-elliptic thresholds (Hoelker and Silber 1961; Vallado): 11.938765 = root of x^3 - (7+4 sqrt2) x^2 + (3+4 sqrt2) x - 1, rel 1e-6; 15.58172 textbook, rel 1e-6 (program uses a one-sided difference of 1e-6 in r)passed
ratio_bielliptic_never_below11.9388 ± 1.2e-0511.9388locked0.022 % of the tolerance usedratio_bielliptic_always_above15.5817 ± 1.6e-0515.5817locked29 % of the tolerance usedr0008Phasing in GEO, target 30 deg ahead, 1 rev: period T(1 - 30/360), a = r (11/12)^(2/3), dv = 2 |v_p - v_c| by vis-viva; rel 1e-6passed
dv_total_m_s186.455 ± 0.00019186.455lockedunder 0.01 % of the tolerance usedtransfer_time_h21.9399 ± 2.2e-0521.9399lockedunder 0.01 % of the tolerance usedphasing_other_apsis_km37411.6 ± 0.03737411.6lockedunder 0.01 % of the tolerance usedfeasible= truetruelockedexact matchr0009Same orbit to same orbit: dv 0 and time 0 exactly (abs 1e-9)passed
dv_total_m_s0 ± 1e-090lockedunder 0.01 % of the tolerance usedtransfer_time_s0 ± 1e-090lockedunder 0.01 % of the tolerance usedpropellant_kg0 ± 1e-090lockedunder 0.01 % of the tolerance used
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
manoeuvre | hohmann | hohmann: two tangential burns, orbit 1 to orbit 2; bielliptic: three burns through intermediate_km; plane_change: one burn at apoapsis of orbit 1; phasing: catch a target phase_angle_deg ahead in circular orbit 1. | |
mu_m3_s2 | m^3/s^2 | 398600441800000.0 | Gravitational parameter GM of the central body. Default: Earth (IERS 2010 / WGS 84 value). |
body_radius_km | km | 6378.137 | Radius of the central body: altitudes are measured above it, and orbits that dip below it are flagged. Default: Earth's equatorial radius (WGS 84). 0 switches the surface check off. |
given | altitude | Whether the *_km orbit inputs are altitudes above body_radius_km or radii from the centre. | |
orbit1_peri_km | km | 300 | Periapsis of the starting orbit (altitude or radius, see given). |
orbit1_apo_km | km | Apoapsis of the starting orbit; leave out for a circular orbit. | |
orbit2_peri_km | km | 35786 | Periapsis of the target orbit. Default: geostationary altitude. |
orbit2_apo_km | km | Apoapsis of the target orbit; leave out for a circular orbit. | |
intermediate_km | km | Far turning point of a bi-elliptic transfer, beyond both orbits. Given with hohmann, the bi-elliptic transfer is only compared. | |
depart_at | auto | Where on orbit 1 the transfer starts (apse lines aligned). auto takes the cheaper. | |
plane_change_deg | deg | 0 | Angle between the planes of orbit 1 and orbit 2. |
plane_change_at | combined | combined: with the burn at the largest radius; separate: a burn of its own at apoapsis of the slower orbit. | |
phase_angle_deg | deg | 0 | phasing: how far the target is ahead (positive) or behind (negative) along circular orbit 1. |
phasing_revs | 1 | 1 | phasing: whole revolutions spent in the phasing orbit. |
isp_s | s | 320 | Specific impulse of the engine (exhaust speed = isp_s * g0, g0 = 9.80665 m/s^2 exact). |
initial_mass_kg | kg | 1000 | Spacecraft mass before the first burn. |
Readings
| Name | Unit | Meaning |
|---|---|---|
manoeuvre | ||
feasible | true when no orbit or phasing orbit dips below body_radius_km | |
warnings | ||
notes | ||
dv_total_m_s | m/s | |
dv_total_km_s | km/s | |
dv1_m_s | m/s | first in-plane burn (a pure plane-change burn is not counted here) |
dv2_m_s | m/s | second in-plane burn; with a combined plane change this is the combined burn |
dv3_m_s | m/s | third in-plane burn (bi-elliptic), else null |
dv_plane_m_s | m/s | the burn that carries the plane change: the pure turn, or the whole combined burn |
burn_count | 1 | |
transfer_time_s | s | |
transfer_time_h | h | |
depart_at | ||
propellant_kg | kg | |
final_mass_kg | kg | |
mass_ratio | 1 | |
exhaust_speed_m_s | m/s | |
radius_ratio | 1 | larger over smaller semi-major axis of orbit 1 and the final orbit |
speed_initial_m_s | m/s | |
period_initial_h | h | |
period_final_h | h | |
ratio_bielliptic_never_below | 1 | circular-to-circular radius ratio below which no bi-elliptic transfer beats Hohmann (bi-parabolic limit) |
ratio_bielliptic_always_above | 1 | radius ratio above which every bi-elliptic transfer beats Hohmann |
transfer_sma_km | km | |
transfer_eccentricity | 1 | |
hohmann_dv_m_s | m/s | coplanar Hohmann total (no plane change), for comparison |
bielliptic_dv_m_s | m/s | coplanar bi-elliptic total through intermediate_km (no plane change), for comparison |
bielliptic_saving_m_s | m/s | |
bielliptic_cheaper | ||
biparabolic_dv_m_s | m/s | out to infinity and back: the limit of the bi-elliptic transfer |
phasing_other_apsis_km | km | radius of the phasing orbit's far apsis |
phasing_period_s | s | |
burns | per burn: radius_km, speed_before_m_s, speed_after_m_s, turn_deg, dv_m_s, propellant_kg, mass_after_kg | |
burns.csv | ||
trajectory.csv | ||
bielliptic_sweep.csv |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.