Reference · Journey mode: transfers, launch windows and flip-and-burn trips
flipAndBurnfunction
A trip of constant acceleration with a turn round in the middle: burn to the halfway point, coast while the craft turns end for end, burn the same acceleration to stop. The relativistic constant-proper-acceleration answer, which is 2 sqrt(d / a) for slow trips.
Import it
import { flipAndBurn } from "@johnmorrisdotca/uchusen-rockets/journey";
Definition
function flipAndBurn(distanceM: number, a: number, flipSeconds: number): { burnSeconds: number; peakSpeed: number; gamma: number; properSeconds: number; frameSeconds: number; rapidity: number; }
Parameters
| Name | Type | Description |
|---|---|---|
distanceM | number | The distance between the two ends, in the frame in which both are at rest, metres. |
a | number | The proper acceleration, m/s^2. |
flipSeconds | number | How long the turn takes, during which the craft coasts at its peak speed. 0 for the textbook flip. |
Returns
{ burnSeconds: number; peakSpeed: number; gamma: number; properSeconds: number; frameSeconds: number; rapidity: number; }
How long each burn lasts in the frame's time, the peak speed, the Lorentz factor then, the time on board and in the frame, and the rapidity at the flip.
Examples
import { flipAndBurn, G0, LY_M } from "@johnmorrisdotca/uchusen-rockets/journey";
const trip = flipAndBurn(4.37 * LY_M, G0, 0);
console.log((trip.properSeconds / 31_557_600).toFixed(1), (trip.peakSpeed / 299_792_458).toFixed(3));3.6 0.952What it prints (run when this page was built)