What the simulation shows
The stage is a slice through the Earth with an earthquake at the top. The layers are drawn to scale from a standard reference model: a mantle almost 2900 km deep, a liquid outer core and a solid inner core with a radius of about 1220 km. Only the 24 km crust is drawn thicker, so that it shows. Press Play and the earthquake sends out P-waves (teal dots) and S-waves (orange squares). One second of animation is one minute of real time, so the whole event takes 26 seconds.
A race the P-waves always win
The rock in a P-wave is pushed and pulled back and forth in line with the wave, which makes it longitudinal. In an S-wave it is shaken sideways, across the wave’s path: a transverse wave. At every depth in the model the P-wave is quicker: about 5.8 km/s against 3.2 km/s near the surface, and 13.7 km/s against 7.3 km/s at the bottom of the mantle. Wherever a seismometer records both kinds, the P-wave gets there first.
Why the paths bend
Rock deeper down carries both waves faster. A wave travelling down at an angle keeps moving into quicker rock, so it refracts slightly over and over and its path curves round and back up to the surface. With Draw the paths (rays) on, you can watch these arcs build up.
The S-wave shadow zone
A liquid can resist being squashed, but its layers slide past each other freely, so it cannot carry a sideways shake. Every S-wave aimed steeply enough to reach the outer core stops there, marked with a small cross. The last S-wave to skim past the core comes up about 104° from the epicentre, and no seismometer beyond that records any S-waves. That missing band, on both sides of the planet, is the evidence for a liquid outer core, and its width fixes the radius of the core.
The P-wave shadow zone
P-waves can cross the liquid, but they slow from 13.7 km/s to about 8 km/s as they enter it and bend sharply at its edge. In the model, the last P-wave to skim past the core surfaces about 99° away, while those that pass through it come up beyond about 145°. Between the two lies the P-wave shadow zone. Real waves also spread a little way round the core into both shadows, so textbooks give the edges as about 104° and 140° (some say 103° and 142°). Those textbook figures are the ones to learn; the model's 99° and 145° are what pure rays give. From about 116° the model also shows dashed paths: faint P-waves that reached the faster inner core and were bent back up into the shadow zone.
Reading the seismometer
The trace on the right of the stage is your seismometer's record, and the chart below it plots the first arrival at every angle. The P and S curves spread apart with distance, so the S − P gap tells you how far away the earthquake happened. At 60° the gap is close to 8 minutes; at 20° it is barely more than 3. With gaps from three seismometers you can find where the earthquake struck.
Simplifications and course notes
The earthquake starts at the surface, the upper mantle's layers are smoothed into one curve, and only direct rays are drawn: no surface waves, reflections or conversions between P and S. The size and shape of each wiggle on the trace are not to scale.
AQA GCSE Physics covers seismic waves in 4.6.1.5, for Higher tier GCSE Physics only. The exact shadow-zone angles and finding distance from the S − P gap go beyond the specification. Cambridge IGCSE and Punjab Class 10 use P-waves and S-waves as examples of longitudinal and transverse waves only. To compare the two kinds of wave on a simple chain of particles, try the simulation of waves on a chain of particles, and for refraction at a single boundary see the refraction simulation.