Presets
Playback
Parameters
Model checks
The science
Two bodies, one ellipse
Two stars of masses m1 and m2 orbit their common centre of mass. Their separation follows a single Kepler ellipse of semi-major axis a with period P2 = 4π2 a3 / (G (m1+m2)); in solar masses, years and AU this is P = √(a3/M). Each star moves on a similar ellipse with size scaled by the other star's mass fraction, so v1 = vrel m2/M and v2 = vrel m1/M.
Speed and the radial-velocity curve
The relative speed obeys the vis-viva equation v2 = G M (2/r - 1/a): fastest at periapsis, slowest at apoapsis. A spectrograph only sees the line-of-sight component, vr = K [cos(ν+ω) + e cos ω], with semi-amplitude K = (mother/M) √(G M / (a (1-e2))) sin i. That is how masses of real binaries are measured.
Honest simplifications: point masses, Newtonian gravity, no tides, mass transfer or relativity; the top-down view is face-on and the inclination slider only affects the velocity curves.
What to try
- Choose Equal twins and then Giant + dwarf: the lighter star always has the bigger orbit and speed.
- Choose Highly eccentric and watch the stars rush through periapsis while the shaded wedge keeps the same area.
- Lower the inclination: the radial-velocity amplitude shrinks with sin i, the real orbit does not.
- Double the semi-major axis: the period grows by 21.5.