EasyFOAMtutorials

Tutorial 8 of 19

Waves in a flume

Make regular waves at one end of a flume, absorb them at the other, and measure them on the way.

about 25 minIntermediateFree surfaceWaves

A wave flume is a long, narrow tank with a wave maker at one end. Here it is 8 m long with water 0.4 m deep. The wave maker sends waves 0.04 m high every 1.5 seconds; the far end swallows them instead of sending them back; and two gauges record the water level as the waves pass.

The flume is modelled as a thin slice, one cell thick, which keeps the run short.

What you will learn

  • fill a tank with still water to a level
  • set up a wave maker: height, period and wave theory
  • let waves leave without reflection
  • measure the waves with gauges and compare with what you asked for

Computer time: a few seconds for the mesh and a few minutes for the run.

1Open the example

Start EasyFOAM. This case is one of the examples on the start page: it comes with every setting filled in, and this tutorial walks through each of them so that you understand the case and could build it yourself.

  1. Click Waves in a flume.
Waves in a flume, step 1: Open the example

2Name the project

The project is an ordinary folder that EasyFOAM creates for you.

  1. Type a name, for example waves.
  2. Click Create project.
Waves in a flume, step 2: Name the project

3The flume

There are no shapes: the flume is the base mesh itself, 8 m long, 0.8 m high and one 5 cm cell thick. The cells are 25 mm, so a 0.04 m wave is less than two cells high: enough to carry the wave, too few for fine detail.

  1. Corner (max): 8, 0.05, 0.8.
  2. Cells: 320, 1, 32.
  3. inlet will be the wave maker, outlet the absorbing end.
  4. Front and back are empty: a two-dimensional case.
  5. Click Mesh in the toolbar (or press F5).
Waves in a flume, step 3: The flume

4Still water

The physics is free-surface flow without a turbulence model. The water starts at rest and fills the whole flume to 0.4 m, which is what Fill to a level produces: one box as long and wide as the mesh.

  1. One box of water, from 0, 0, 0 to 8, 0.05, 0.4: still water 0.4 m deep.
  2. Gravity: 0, 0, -9.81.
Waves in a flume, step 4: Still water

5The wave maker

The inlet becomes a wave maker. You describe the waves you want and choose a wave theory that suits them; for ordinary regular waves the second-order Stokes theory is the usual choice.

  1. Select inlet.
  2. Condition: Wave maker.
  3. Wave height: 0.04 m, from trough to crest.
  4. Wave period: 1.5 s.
  5. Wave theory: Stokes 2nd order.
Waves in a flume, step 5: The wave maker

6The absorbing end

A plain wall at the far end would send every wave back and spoil the measurement. The Wave-absorbing outlet moves like a paddle to cancel the waves that reach it.

  1. Select outlet.
  2. Condition: Wave-absorbing outlet.
Waves in a flume, step 6: The absorbing end

7Two gauges

In the Run step, scroll down to the probes. Two gauges record the water depth: one 2 m from the wave maker, one 6 m from it. Comparing them shows whether the waves keep their height on the way.

  1. Gauges at x = 2 and x = 6. Only x and y matter; the depth is measured along z.
Waves in a flume, step 7: Two gauges

8Run for twelve seconds

Twelve seconds are eight wave periods: time for the first waves to cross the flume and for a regular pattern to form.

  1. End time: 12 s.
  2. Keep the Courant number below 0.5: waves need a smaller value than other free-surface flows.
  3. Save every: 0.25 s.
  4. Click Run in the toolbar (or press F6).
Waves in a flume, step 8: Run for twelve seconds

9The waves pass the gauges

Open the Probes tab during the run. The first gauge starts to move after about a second; the second one stays still until the waves have travelled the 6 m to it.

  1. Open the Probes tab: water depth at the two gauges.
  2. How far the run is.
Waves in a flume, step 9: The waves pass the gauges

10Measure the waves

At the end, both gauges swing evenly around 0.4 m. Read the height from trough to crest off the plot: about 0.038 m at the first gauge and 0.037 m at the second, for the 0.04 m asked for. The small loss comes from the coarse mesh. The mean level stays at 0.4 m, which shows that no water piles up at the absorbing end.

  1. Zoom into the plot with the mouse wheel to read the crests and troughs.
Waves in a flume, step 10: Measure the waves

11The wave train

On a slice along the flume you can see the whole wave train at once. Because the flume is ten times longer than it is high and the waves are small, they look gentle: that is how they really are.

  1. Quantity: alpha.water.
  2. Slice plane: Normal to y.
  3. Step through Saved time to see the waves travel.
Waves in a flume, step 11: The wave train

12Try it yourself

  • Change the wave theory to Solitary wave and send a single crest down the flume.
  • Halve the cell size (640, 1, 64 cells) and measure the wave height again.
  • Add a box in the Geometry step, standing on the bed in the middle of the flume, and watch the waves break over a submerged breakwater.