EasyFOAMtutorials

Tutorial 17 of 19

Build a channel with a bend

Draw a trapezoidal channel with a bed slope and a 60° bend, let EasyFOAM mesh it to fit, and follow the water round the bend in a long section.

about 20 minBeginnerFree surfaceOpen channelsHydraulic results

Many questions in open-channel hydraulics start with a channel of a known shape: a trapezoid cut into the ground, falling gently, with a bend in it. Instead of drawing it in a CAD program, you can give EasyFOAM the cross-section, the slope and the centreline, and it builds the channel and a mesh that follows its banks and bends.

What you will learn

  • build a channel from its cross-section, bed slope and centreline
  • see the starting water and the boundaries the builder sets up
  • give the bed a Manning roughness
  • draw a long section along a curved centreline

Computer time: a few seconds for the mesh and about a minute for the run, on four cores.

1An empty project

Start a new, empty project and call it channel.

  1. Type channel.
  2. Click Create project.
Build a channel with a bend, step 1: An empty project

2Open the channel builder

In the Geometry step, press Channel….

  1. Press Channel….
Build a channel with a bend, step 2: Open the channel builder

3Cross-section and centreline

A trapezoid with a 1 m bed, 0.5 m banks leaning out at 1 to 1, and a bed slope of 0.002. The centreline runs 6 m straight, turns 60° to the left round a bend of 8 m radius, and runs another 6 m. The water starts 0.35 m deep. The preview draws the section (heights exaggerated) and the plan.

  1. Cross-section: Trapezoidal.
  2. Bed slope: 0.002.
  3. Initial water depth: 0.35 m.
  4. The centreline: straight 6, a bend of radius 8 turning 60°, straight 6.
  5. Press Build the channel.
Build a channel with a bend, step 3: Cross-section and centreline

4The channel

EasyFOAM builds the channel and sets up the case: free-surface flow, an inlet that lets in the uniform-flow discharge for the starting depth, an outlet that holds that depth, and walls named bed and banks. The 3D view shows the starting water in the channel.

  1. What was built: length, slope and the number of cells.
Build a channel with a bend, step 4: The channel

5Inflow and roughness

In Boundaries, pick inlet and set its flow rate to 0.2 m³/s. Then pick bed and give it a Manning's n of 0.025, a clean earth channel.

  1. The boundary bed.
  2. Roughness: Manning's n.
  3. Manning's n: 0.025.
Build a channel with a bend, step 5: Inflow and roughness

6Mesh and run

The mesh is made by blockMesh alone, fitted to the channel: no cells are wasted outside it. Then run for 10 s on four cores.

  1. The base mesh is not used: the mesh follows the channel.
  2. Click Mesh in the toolbar (or press F5).
  3. Click Run in the toolbar (or press F6).
Build a channel with a bend, step 6: Mesh and run

7Round the bend

After the run, press Long section in Results. The stations follow the curved centreline, so the long section runs round the bend. The bed falls about 4 cm over the 20.4 m from inlet to outlet.

  1. Press Long section.
  2. Discharge, depth and Froude number along the channel.
Build a channel with a bend, step 7: Round the bend