Reference · Journey mode: transfers, launch windows and flip-and-burn trips
hohmannfunction
The Hohmann transfer between two circular orbits about one body: its half-ellipse, its time and the two speed changes.
Import it
import { hohmann } from "@johnmorrisdotca/uchusen-rockets/journey";
Definition
function hohmann(muKm3s2: number, r1Km: number, r2Km: number): { a: number; seconds: number; dv1: number; dv2: number; }
Parameters
| Name | Type | Description |
|---|---|---|
muKm3s2 | number | The central body's gravitational parameter, km^3/s^2. |
r1Km | number | The starting radius, km. |
r2Km | number | The final radius, km. |
Returns
{ a: number; seconds: number; dv1: number; dv2: number; }
The semi-major axis (km), the flight time (seconds), the speed change at the start and at the end (km/s, both positive).
Examples
import { GM_KM3_S2, hohmann } from "@johnmorrisdotca/uchusen-rockets/journey";
const mars = hohmann(GM_KM3_S2.sun!, 149_597_870.7, 1.52371034 * 149_597_870.7);
console.log((mars.seconds / 86400).toFixed(1), mars.dv1.toFixed(2), mars.dv2.toFixed(2));258.9 2.94 2.65What it prints (run when this page was built)