What is it about?
The planet is attracted only by the star’s gravitational force . The simulation does not know about ellipses: it computes acceleration, velocity and position in tiny time steps. Still, exactly Kepler’s orbits appear.
- First law: planets move on ellipses with the Sun at one focus . For every point (: semi-major axis, : focal distance, : eccentricity). Closest point: perihelion , farthest point: aphelion .
- Second law: the line Sun–planet sweeps out equal areas in equal times, so (conservation of angular momentum).
- Third law: for all planets of the same star
With the circular speed (perpendicular start) the orbit is a circle; from the escape speed on it is open (parabola, hyperbola). At 1 AU: , . The total energy is negative for bound orbits.
Try it
- Press Start and compare the speed at perihelion and aphelion. After one orbit the ellipse is divided into areas swept in equal times – compare the bars.
- Drag the arrow tip across the rings and : circle · hyperbola
- Watch : string construction
- Measure several orbits in the table: Kepler’s third law · two solar masses
Tasks
Task 1: Earth’s orbit
Find the circular speed at from the Sun () and the period. Load task
Show solution
, .
Task 2: Perihelion and aphelion
, , . Find , and . Load task
Show solution
, , (the simulation uses and shows ).
Task 3: Mars
Mars has . Find its period (Earth: , year). Load task
Show solution
years years. Compare with the table
Ideas for the classroom
- Use: gravitation and Kepler’s laws in upper secondary school (grades 11–13), from guessing a law to checking it with the table and the log–log graph.
- Model: point masses, , only the star’s gravity; leapfrog (Verlet) integration with a fixed time step (energy conserved to better than , angular momentum exactly). Star and planet are not to scale. Planet data: rounded mean orbital elements (JPL, E. M. Standish).
- Common stumbling blocks: the Sun is at a focus, not at the centre; real planetary orbits are almost circles; the period does not depend on the planet’s mass; the escape speed does not depend on the direction.