Invntr
Source

All instruments

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

Admission replayorbit_transfer 0.1.0 · files 0593df6b5e03…de15
  1. 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 used
    dv2_m_s1466.82 ± 0.00151466.82lockedunder 0.01 % of the tolerance used
    dv_total_m_s3892.56 ± 0.00393892.56lockedunder 0.01 % of the tolerance used
    transfer_time_h5.27506 ± 5.3e-065.27506lockedunder 0.01 % of the tolerance used
    transfer_sma_km24421.1 ± 2.4e-0524421.1lockedunder 0.01 % of the tolerance used
  2. r0002Tsiolkovsky 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 used
    propellant_kg733.692 ± 0.00073733.692lockedunder 0.01 % of the tolerance used
    exhaust_speed_m_s2941.99 ± 2.9e-092941.99lockedunder 0.01 % of the tolerance used
  3. r0003Pure 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 used
    dv_total_m_s3803.44 ± 0.00383803.44lockedunder 0.01 % of the tolerance used
  4. r0004Hohmann 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 used
    dv_plane_m_s1830.22 ± 0.00181830.22lockedunder 0.01 % of the tolerance used
    dv_total_m_s4255.96 ± 0.00434255.96lockedunder 0.01 % of the tolerance used
  5. r0005Hohmann 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 used
  6. r0006Bi-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 used
    dv2_m_s774.959 ± 0.00077774.959lockedunder 0.01 % of the tolerance used
    dv3_m_s301.416 ± 0.0003301.416lockedunder 0.01 % of the tolerance used
    dv_total_m_s4028.52 ± 0.0044028.52lockedunder 0.01 % of the tolerance used
    transfer_time_h135.797 ± 0.00014135.797lockedunder 0.01 % of the tolerance used
    hohmann_dv_m_s4046.33 ± 0.0044046.33lockedunder 0.01 % of the tolerance used
    bielliptic_cheaper= truetruelockedexact match
  7. r0007Bi-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 used
    ratio_bielliptic_always_above15.5817 ± 1.6e-0515.5817locked29 % of the tolerance used
  8. r0008Phasing 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 used
    transfer_time_h21.9399 ± 2.2e-0521.9399lockedunder 0.01 % of the tolerance used
    phasing_other_apsis_km37411.6 ± 0.03737411.6lockedunder 0.01 % of the tolerance used
    feasible= truetruelockedexact match
  9. r0009Same 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 used
    transfer_time_s0 ± 1e-090lockedunder 0.01 % of the tolerance used
    propellant_kg0 ± 1e-090lockedunder 0.01 % of the tolerance used
9 of 9 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

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

NameUnitDefaultMeaning
manoeuvrehohmannhohmann: 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_s2m^3/s^2398600441800000.0Gravitational parameter GM of the central body. Default: Earth (IERS 2010 / WGS 84 value).
body_radius_kmkm6378.137Radius 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.
givenaltitudeWhether the *_km orbit inputs are altitudes above body_radius_km or radii from the centre.
orbit1_peri_kmkm300Periapsis of the starting orbit (altitude or radius, see given).
orbit1_apo_kmkmApoapsis of the starting orbit; leave out for a circular orbit.
orbit2_peri_kmkm35786Periapsis of the target orbit. Default: geostationary altitude.
orbit2_apo_kmkmApoapsis of the target orbit; leave out for a circular orbit.
intermediate_kmkmFar turning point of a bi-elliptic transfer, beyond both orbits. Given with hohmann, the bi-elliptic transfer is only compared.
depart_atautoWhere on orbit 1 the transfer starts (apse lines aligned). auto takes the cheaper.
plane_change_degdeg0Angle between the planes of orbit 1 and orbit 2.
plane_change_atcombinedcombined: with the burn at the largest radius; separate: a burn of its own at apoapsis of the slower orbit.
phase_angle_degdeg0phasing: how far the target is ahead (positive) or behind (negative) along circular orbit 1.
phasing_revs11phasing: whole revolutions spent in the phasing orbit.
isp_ss320Specific impulse of the engine (exhaust speed = isp_s * g0, g0 = 9.80665 m/s^2 exact).
initial_mass_kgkg1000Spacecraft mass before the first burn.

Readings

NameUnitMeaning
manoeuvre
feasibletrue when no orbit or phasing orbit dips below body_radius_km
warnings
notes
dv_total_m_sm/s
dv_total_km_skm/s
dv1_m_sm/sfirst in-plane burn (a pure plane-change burn is not counted here)
dv2_m_sm/ssecond in-plane burn; with a combined plane change this is the combined burn
dv3_m_sm/sthird in-plane burn (bi-elliptic), else null
dv_plane_m_sm/sthe burn that carries the plane change: the pure turn, or the whole combined burn
burn_count1
transfer_time_ss
transfer_time_hh
depart_at
propellant_kgkg
final_mass_kgkg
mass_ratio1
exhaust_speed_m_sm/s
radius_ratio1larger over smaller semi-major axis of orbit 1 and the final orbit
speed_initial_m_sm/s
period_initial_hh
period_final_hh
ratio_bielliptic_never_below1circular-to-circular radius ratio below which no bi-elliptic transfer beats Hohmann (bi-parabolic limit)
ratio_bielliptic_always_above1radius ratio above which every bi-elliptic transfer beats Hohmann
transfer_sma_kmkm
transfer_eccentricity1
hohmann_dv_m_sm/scoplanar Hohmann total (no plane change), for comparison
bielliptic_dv_m_sm/scoplanar bi-elliptic total through intermediate_km (no plane change), for comparison
bielliptic_saving_m_sm/s
bielliptic_cheaper
biparabolic_dv_m_sm/sout to infinity and back: the limit of the bi-elliptic transfer
phasing_other_apsis_kmkmradius of the phasing orbit's far apsis
phasing_period_ss
burnsper 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.

Terminal
MCP call