Science Lab · Astronomy & Physics

Orbit Lab

Fire a cannonball so fast that it falls all the way around the world. Throw satellites into orbit, find the one spot where a satellite hangs over Earth, fly to the Moon, and steal a little speed from a planet. Every path comes from one rule, Newton’s law of gravity, with real masses and distances.

Scene

km
km/s

km
km/s
°
km/s
°
km
km/s

Live numbers

Missions

    What you’re seeing

    Cannon. A cannon on a mountain fires sideways. Isaac Newton drew this picture to explain orbits, with a mountain far taller than any real one. Here the mountain is drawn to scale (500 km tall to start with; Mount Everest is under 9 km), and there is no air. A slow ball lands nearby. A faster one lands farther away, because the ground curves away beneath it. Fast enough, and the ground curves away as fast as the ball falls: it never lands.

    Earth orbit. Place a satellite and throw it. The green line is where it has been. The dashed gold line is the orbit it is on right now, worked out from its position and speed. The pink dot marks the lowest point, the blue dot the highest. Earth is seen from above the North Pole and spins once per sidereal day; the gold dot on Earth is one spot on the equator.

    To the Moon. The real Earth and Moon, 384,400 km apart, circling their shared center of mass. You start 200 km up. One push from the engine stretches your orbit out to the Moon’s distance. The dashed line shows where a burn would take you, and the close-up shows the burn point.

    Slingshot. The Sun, Mercury, Venus, Earth and Mars on their real-sized orbits. A spacecraft swings past a planet. The close-up shows the flyby as the planet sees it. The chart compares the speed measured from the Sun with the speed measured from the planet.

    Arrows. Green is velocity, the way the craft is moving. Pink is gravity. Gravity always points at the body pulling hardest, never along the path, and that is why the path bends.

    The science

    One law for everything

    Newton’s law of gravity says every mass pulls every other mass. For a small craft at distance r from the center of a planet, the pull gives it an acceleration

    g = GM / r²

    GM is the planet’s mass times the gravitational constant. Space agencies measure GM very precisely by tracking satellites. For Earth it is 3.986 004 418 × 10¹⁴ m³/s². At the surface (mean radius 6,371 km) that gives g = 9.82 m/s². At 400 km up it is still 8.69 m/s².

    Falling around the world

    To go in a circle, the craft must turn its path toward the center by exactly as much as gravity pulls. That happens at one speed:

    vcircle = √(GM / r)   and   T = 2πr / v

    At 400 km up: 7.67 km/s, once around in 92.4 minutes. Slower, and the orbit is an ellipse that dips lower. Too slow, and it hits the ground.

    Escape speed and energy

    The energy per kilogram of a craft is its kinetic energy plus its (negative) gravitational energy:

    ε = v²/2 − GM/r = −GM / (2a)

    While ε is negative the craft is trapped on an ellipse with semi-major axis a. At ε = 0 it escapes. The speed that makes ε = 0 is vescape = √(2GM/r): 11.19 km/s at Earth’s surface, √2 times the circle speed.

    Kepler’s three laws

    Johannes Kepler worked out these laws from careful observations of the planets, decades before Newton explained them. Newton showed that all three follow from his law of gravity, and they hold for anything orbiting Earth too.

    1. Orbits are ellipses, with the planet’s center at one focus.
    2. A line from the planet to the craft sweeps out equal areas in equal times. Near the planet the craft moves fast; far away it moves slowly.
    3. The period depends only on the size of the orbit: T² = (4π² / GM) · a³

    Geostationary orbit

    Earth spins once in a sidereal day: 23 h 56 min 4 s, or 86,164 s. Put that period into Kepler’s third law and you get one orbit radius:

    r = (GM T² / 4π²)1/3 = 42,164 km

    That is 35,786 km above the equator. A satellite there, going the same way Earth spins, stays over one spot. Weather and TV satellites use it.

    The slingshot

    Seen from the planet, the spacecraft leaves exactly as fast as it came. Only its direction changes, by a turn angle δ that grows when it passes closer or slower:

    sin(δ/2) = 1 / (1 + rp v∞² / GM)

    Seen from the Sun, you add the planet’s own velocity (35 km/s for Venus). If the turn swings the craft’s velocity toward the way the planet is moving (passing behind it), the sum gets longer: the craft speeds up. Passing in front does the opposite. The planet loses or gains the same momentum, but it is so heavy that its change is far too small to measure.

    Circular orbits around Earth, from the formulas above (heights above Earth’s mean radius, 6,371 km).
    OrbitHeightSpeedOnce around
    Low Earth orbit400 km7.67 km/s92.4 min
    GPS satellitesabout 20,200 km3.87 km/s11 h 58 min
    Geostationary35,786 km above the equator3.07 km/s23 h 56 min
    The Moon (measured)384,400 km center to center1.02 km/s27.3 days

    Try this

    Newton’s ladder of shots. In the Cannon scene, fire at 3, 6, 7, 7.6, 9 and 10 km/s from the 500 km mountain. Each shot keeps its own color. Which one comes back to the mountain? Which one never comes back?
    Same start, different orbits. In Earth orbit, launch level from 400 km at 7.67, 8.5, 9.5 and 10.5 km/s. The lowest point stays where you launched, while the highest point runs farther and farther out. Read the period each time.
    Straight up doesn’t work. Aim the arrow straight up (90°) at 7.67 km/s. The satellite climbs and falls straight back. Orbit is about going sideways fast, not just getting high.
    Equal areas. Turn on the slices and launch at about 9.8 km/s. Each slice takes one twelfth of the orbit. The slices near Earth are short and fat, the far ones long and thin, and the numbers on them match.
    Kepler’s third law. Fly circular orbits at 400 km, 8,000 km and 35,786 km and watch the blue ring on the chart slide along the gold line. Doubling the size of an orbit makes its period 2.83 times as long (21.5).
    A small change, far away. In To the Moon, change the burn by just 0.02 km/s and watch the dashed path move near the Moon. Then turn on the rotating view, which keeps the Earth–Moon line still.
    Closer means stronger. In Slingshot, pass behind Venus at 300 km and at 30,000 km, then try a slower approach. A closer or slower pass turns the craft more and changes its speed from the Sun more.

    A common mistake: “There’s no gravity in space”

    Astronauts float inside their station, so it is easy to think gravity has switched off up there. It hasn’t. At 400 km up, gravity is 88% as strong as on the ground (8.69 m/s² instead of 9.82). If it were gone, the station would fly off in a straight line.

    Astronauts float because they and their station are falling together, at the same rate. Nothing pushes them against the floor, so they feel weightless. The station falls around Earth just like the cannonball that never lands. In the sim, turn on the arrows: the pink gravity arrow never disappears.

    See it at home. Poke a small hole near the bottom of a paper cup, cover it with a finger and fill the cup with water. Outside or over a sink, let go of the hole: water pours out. Now drop the whole cup. While it falls, the water stops pouring, because the water and the cup fall together. That is what astronauts feel all the time.

    A second mistake is that getting to orbit is mostly about going up. Lifting a kilogram to 400 km takes about 3.7 MJ of energy, but giving it 7.67 km/s of sideways speed takes about 29.4 MJ, eight times as much. That is why rockets turn sideways soon after launch.

    How the simulation works

    The model. Bodies are perfect spheres that pull like points. The spacecraft is so light that it does not pull back. In the Cannon and Earth orbit scenes Earth stands still. In To the Moon, Earth and Moon go around their shared center of mass on circles, 384,400 km apart; that gives the Moon a period of 27.29 days, close to the real 27.32. In Slingshot the Sun stands still and the planets move on circles at their average distances. Everything happens in one flat plane.

    What’s left out, and why. Air (so the cannon works at all), the boost from Earth’s spin at launch, Earth’s slightly flattened shape, the Sun’s pull in the Earth–Moon scene, the tilt and stretch of the real Moon’s orbit, and the planets’ pulls on one another. These change real missions a little but would hide the main ideas. Heights are measured from Earth’s mean radius, 6,371 km, so they can differ by a few kilometers from figures measured above the equator.

    The math. Each moment, the program adds up the pull of every body and moves the craft with the velocity Verlet method (also called leapfrog): half a kick from gravity, a drift, then another half kick. This method keeps energy from creeping up or down over thousands of orbits. Steps shrink near a body, to 1/200 of its free-fall time scale √(r³/GM), and each step size is chosen the same way forwards and backwards. When the craft crosses a surface, the program finds the exact crossing point. Time speeds up to what you choose, but slows near a planet so you can watch a close pass.

    How it was checked. The model was tested against the formulas on this page:

    • Circle speed at 400 km: 7.6726 km/s; the radius stayed within 82 m over 10 orbits. Measured period 5,544.90 s vs 5,544.86 s from Kepler’s law.
    • Energy after 1,000 orbits (eccentricity 0.5): off by 6 parts in a million, with no steady drift. At eccentricity 0.9: 2 parts in 100,000.
    • Escape speed from the surface: 11.186 km/s. A shot straight up at 0.99 of it rose to 319,682 km; energy says 320,151 km, the same as a launch-speed error of 0.16 m/s.
    • Geostationary radius 42,164.17 km; measured period 86,164.8 s vs 86,164.1 s.
    • Equal areas: twelve slices of an orbit with eccentricity 0.7 agreed to 1 part in 10¹⁴.
    • Cannon at 6 km/s from 500 km: landed 3,263.48 km away vs 3,263.50 km from the exact ellipse, after 557.68 s (exact: 557.68 s).
    • Earth–Moon: the Jacobi constant, which stays fixed in this kind of system, changed by under 5 parts in a million during a 10-day trip.
    • Venus flyby at 5 km/s: closest approach within 1.5 km of the target; speed from Venus 5.112 km/s in and 5.101 km/s out at the edge of its sphere of influence (the Sun tugs a little there); turn angle 72.2° vs 72.2° from the formula.

    Sources

    @teddyrookbook GitHub