Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Ripple tank

A virtual ripple tank: make waves, add gaps and walls, and watch interference, diffraction, reflection and refraction. Plus real water-wave speeds.

How to use

  1. Pick an experiment. The waves start moving at once: light bands are crests, dark bands are troughs.
  2. Change the wave period to make longer or shorter waves. Longer waves spread more after a gap.
  3. Choose Add a source and click the water to drop in more vibrating points, or Draw a wall and drag to build barriers and gaps.
  4. Calm the water keeps your walls and sources and starts the waves again. Empty tank clears everything.
  5. The second tab works out how fast real water waves travel for a frequency and depth you type.

Keyboard and touch

TabMove between tabs, lists, sliders and buttons
Arrow keys on a sliderChange the period or brightness by one step
Tap or drag on the tankAdd a source, draw a wall or erase (as chosen in the list)
Enter in a boxWork out the wave speed

Tips

  • With two sources, look for the calm lines that fan out between them: there a crest from one source always meets a trough from the other.
  • Make the gap narrower than one wavelength and the waves leave it as half circles. A wide gap lets a straight beam through.
  • In shallow water the waves slow down and their wavelength shrinks. When they hit the slanted edge at an angle they bend: that is refraction, the same thing a glass lens does to light.
  • The lens experiment has a lens-shaped shallow patch. Watch the straight waves come out curved and meet at a focus.
  • Real ripples about 1.7 cm long are the slowest water waves of all, about 23 cm/s. Shorter ones are pulled by surface tension, longer ones by gravity.

About this lab

The tank is a grid of 200 by 125 cells. Each step every cell moves by the 2D wave equation in its finite difference form: the new height is twice the present height, minus the last height, plus c² times the difference between the cell and its four neighbours. Here c² is 0.25 in deep water and 0.0625 in shallow water, so shallow waves move at half the speed. Walls hold the water at rest, so waves reflect from them. A soft sponge band along the edges damps the waves so the tank behaves as if it were much larger. Sources move up and down as a sine wave. This is a teaching model: real tanks also lose energy and have waves of many lengths at once.

The speed tab solves the water-wave dispersion relation ω² = (g k + σ k³ / ρ) tanh(k h) for the wavenumber k, with g = 9.80665 m/s², surface tension σ = 0.0728 N/m and density ρ = 1000 kg/m³. The wave speed is ω / k and the group speed is dω/dk. In water much shallower than a wavelength the speed is close to √(g h); in deep water it does not depend on the depth at all. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product