System geometry
Every body, pair edge, barycenter, and label is generated from the active state.
Declare one, two, three, or N point masses; compile the equation of motion for each body; propagate the actual initial-value problem; and audit every invariant the assumptions permit. One mass is inertial; an isolated, unsoftened Newtonian pair reduces exactly to Kepler; and general N ≥ 3 systems are solved numerically without pretending a closed form exists.
Conservation diagnostics are meaningful for closed systems without externally fixed bodies.
001No Earth-centered assumption is required. Enter the mass, absolute initial position, and absolute initial velocity of any two bodies. The model uses their relative state to classify the orbit while retaining the inertial motion of both bodies.
Body A can move naturally with Body B, or it can be held as an explicit external constraint. Values accept ordinary scientific notation and forms such as 1.989 × 10^30.
The two-body builder feeds this general editor. Add a third body—or up to 64—then edit every mass, position, velocity, and external constraint directly.
MASS cell, enter a positive value—including 7.35e22, 7.35 × 10^22, or 7.35×10²²—then compile the edited model.Earth + satellite preset compiled| # | Name | Mass · kg · editable | x · km | y · km | z · km | vₓ · km/s | vᵧ · km/s | v_z · km/s | Fixed |
|---|
Circular, elliptic, parabolic, and hyperbolic motion are not separate force laws. They are different energy–angular-momentum regimes of the same inverse-square equation. Select an ordered pair, inspect its current osculating conic, or write a new state from first-principles orbital elements.
The secondary is described relative to the primary. For a pure two-body model, these elements define the exact Kepler orbit. In an N-body model they define the instantaneous osculating orbit at the chosen epoch; all other masses perturb it after compilation.
Construction uses p = rₚ(1+e), then rotates the perifocal state by R₃(Ω)R₁(i)R₃(ω). For two free masses, the pair barycenter and total momentum are preserved exactly.
ε = v²/2 − μ/r determines bound versus escape; e⃗ = (v×h)/μ − r̂ fixes conic shape; h = r×v fixes its plane. Circular requires e ≈ 0 and radial velocity ≈ 0—not a special animation preset.The generator expands the acceleration of each declared body across every other body. A closed analytic solution is claimed only where one exists; otherwise the equation is propagated numerically and audited.
Each RHS evaluation computes all N(N−1)/2 unordered pairs. With ε = 0, acceleration is exactly G m_j Δr / |Δr|³.
Second-order, symmetric, time-reversible, symplectic kick–drift–kick splitting. Continuous Run advances only whole declared steps; an explicit time seek may use one final shortened step.
A symmetric composition of second-order symplectic maps with Yoshida coefficients. Continuous Run uses a literal fixed step and reports the last accepted h.
Embedded adaptive Runge–Kutta. Rejected steps do not advance time. Accurate locally, but not symplectic.
Classical fourth-order fixed-step propagation. Useful as a familiar reference, not a structure-preserving long-horizon default.
One body is integrated exactly. An unsoftened free pair—or one moving body about one externally fixed primary—uses universal Kepler variables. Every other compiled model exposes a continuous cubic-Hermite position function on accepted solver intervals.
Every body, pair edge, barycenter, and label is generated from the active state.
Every glyph evaluates the same direct-summation acceleration law at a massless test point.
Solid fading paths are accepted numerical states. The dashed two-body conic, when present, is independently generated from the exact universal-variable position solution.
Residuals are recomputed from the current state and normalized by characteristic scales. Barycenter error is measured against its expected inertial worldline—not against a falsely stationary origin.
The point-mass law is singular at zero separation. Softening changes the model; it is never enabled silently.
No post-Newtonian terms, radiation, finite radii, mergers, regularization, tree code, or close-encounter controller.