Lesson 2 – Channels#

Overview

Complete QGIS Lesson 1 before starting this lesson.

Use this training module to build an urban drainage channel by digitizing the channel components. Finish it up by adding culverts to the channel, boundary conditions. The final part of the tutorial is to review the channel results.

Required Data

The lesson makes use of the original data from Lesson 1, left bank, right bank, and cross section data, and culvert rating tables.

Start from the end of Lesson 1. All data is provided in the Lesson folders.

File

Content

Location

QGIS Lesson 1.gpkg

FLO-2D GeoPackage

\QGIS Lesson 1

QGIS Lesson 1.qgz

QGIS file

\QGIS Lesson 1

Grnway Inflow 24 hr100yr.txt

Inflow hydrograph

\QGIS Lesson 2

*.txt

Culvert rating tables

\QGIS Lesson 2\Hydraulic Structures

*.shp

Channel shapefiles

\QGIS Lesson 2\Mixed Channel Layers

Project Location C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials

This video will cover up to Step 9. The second video is linked to Step 10.

Step 1: Open Lesson 1 Part 3 in QGIS#

  1. Search the start menu and run the “QGIS Desktop” program.

../../_images/Worksh0021.png
  1. Open QGIS and drag Lesson 1.qgz onto the canvas the file in QGIS and Load the Project into the FLO-2D Plugin.

../../_images/Worksh157.png

C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials\QGIS Lesson 1\QGIS Lesson 1.qgz

  1. Click Yes to load the model.

../../_images/Lesson004.png
  1. If necessary, use Quick Map Services to load an aerial image onto the map. See Lesson 1 - Part 2 - Step 3 for instructions.

../../_images/Lesson0051.png
  1. If necessary, import and check visible box of the Elevation Raster from Lesson 1. This layer should be right above the Google Hybrid layer. It may be necessary to move it from another location in the Layers List.

../../_images/Lesson006.png
  1. Double click the Elevation raster layer and click Symbology.

  2. Set the Hillshade parameters as shown in the following image.

../../_images/Lesson007.png

Step 2: Digitize the left banks#

Note

Digitize the lines from upstream to downstream.

  1. Zoom in on the upstream channel segment in the southeast corner of the map.

../../_images/Lesson008.png
  1. In the User Layers Group, click the Left Banks Lines to activate the layer.

../../_images/Lesson009.png
  1. Click the Editor pencil to turn on edits for this layer and click the Add Line Feature to add a left bank line.

../../_images/Lesson010.png

Note

Cool digitizing features:

  • Use the scroll wheel to zoom in and out.

  • Click the scroll wheel to pan while in editing mode.

  • Use the delete key to delete the last point clicked.

  • Esc key will cancel polyline.

  • The point won’t drop until the mouse button is released.

  • Redo and undo have limited functionality and can be useful.

  1. Start at the beginning of the channel on the left bank looking downstream. Click the left mouse button to create a line that runs along the left bank. Click the right mouse button to close the polyline and fill the attributes.

  2. The channel runs from east to west so the left bank looking downstream is on the south side.

../../_images/Mod10_002.gif
  1. Repeat this process for the next two segments. The final left banks should look something like the following image.

../../_images/Lesson012.png
  1. Click the Save Icon to save the features and turn the editing pencil off.

../../_images/Lesson013.png

Step 3: Digitize the right banks#

  1. Zoom in on the upstream channel segment in the southeast corner of the map.

../../_images/Lesson014.png
  1. In the User Layers Group, click the Right Bank Lines to activate the layer.

../../_images/Lesson015.png
  1. Click the Editor pencil to turn on edits for this layer and click the Add Line Feature to add a right bank line.

../../_images/Lesson010.png
  1. Start at the beginning of the channel on the right bank looking downstream. Click the left mouse button to create a line that runs along the right bank. Click the right mouse button to close the polyline and fill the attributes.

  2. The channel runs from east to west so the right bank looking downstream is on the north side.

../../_images/Mod10_003.gif
  1. Repeat this process for the next two segments. The final left banks should look something like the following image.

../../_images/Lesson017.png
  1. Click the Save Icon to save the features and turn the editing pencil off.

../../_images/Lesson013.png

Step 4: Digitize the cross sections#

Note

Try to digitize the cross sections in order from upstream to downstream.

  1. Zoom in on the upstream channel segment in the southeast corner of the map.

../../_images/Lesson018.png
  1. In the User Layers Group, click Cross Sections to activate the layer.

../../_images/Lesson019.png
  1. Click the Editor pencil to turn on edits for this layer and click the Add Line Feature to add a right bank line.

../../_images/Lesson010.png

Note

The first cross section of a channel segment has important restrictions.

  • The line must cross the left and right bank line.

  • The line must start in the same cell as the left and right bank line.

  1. Digitize the first cross section.

    • Click the left side first and then the right side.

    • Right click to close the line.

    • Use the enter key to close the dialog box. It isn’t necessary to fill the data at this time.

Note

Want to restart the gif? Right click and open it in a new tab.

../../_images/Mod10_004.gif
  1. The remaining cross sections are not restricted. The should cross both lines and be somewhat perpendicular to flow. Since this is a uniform system, it is not necessary to use more than a cross section every 20 or 30 cells. Use more cross sections in transitional areas and leading up to box culvert transitions.

../../_images/Mod10_002.png
  1. The final cross sections should look like something like this:

../../_images/Lesson021.png

Step 5: Complete cross section attributes#

  1. Right click the Cross Sections layer in the User Layers Group and click Open Attribute Table.

  2. Click the Edit pencil.

  3. Set the field to fcn and click Update All.

  4. Set the n value to 0.035.

../../_images/Mod10_011.gif
  1. Click Update All.

  2. Name the cross sections.

  3. Click Save button and turn off editor.

  4. Close the table.

../../_images/Mod10_001.png
  1. It is OK to group the User Layers into a more organized system. Don’t remove any layers.

../../_images/Mod10_006.png

Step 6: Sample station elevation#

  1. Select the first Natural cross section and click the Sample current natural cross section elevation button.

../../_images/Lesson027.png
  1. Repeat this step for each Natural Type cross section.

../../_images/Mod10_012.gif
  1. If a cross section is not sampled correctly, the plot will indicate a bad bank alignment. The sample limits are confined by the intersection of the bank line and the cross section line.

../../_images/Mod10_003.png
  1. Modify the bank line or cross section line using the node tool to reposition the sample line. Then resample the elevation data.

../../_images/Mod10_004.png
  1. After the final cross section is sampled correctly, save the Left Bank Line, Right Bank Lines, and Cross Sections user layers.

../../_images/Mod10_005.png

Step 7: Schematize channel#

Warning

The schematize button is a great reset button. If any channel modification is required, click the schematize channel button before making changes.

  1. Click Schematize channels.

../../_images/Lesson028.png
  1. If the channel schematizing process was successful, the following message will appear. Click Close.

../../_images/Lesson029.png

Step 8: Revise bank alignment#

  1. Channel alignment in urban projects can be important because channels are usually squeezed between features like buildings, walls, and streets. In this image, the left bank is on the wrong side of an urban wall.

../../_images/Lesson030.png
  1. Urban channels also vary widely in their design. This channel is not a rectangular channel or a trapezoidal channel. It has a stepped gabion lining along the banks.

../../_images/Lesson031.png
  1. It is simple to make minor corrections to the left bank lines and right bank lines to realign the channels.

  2. In the User Layers group, turn on the Editor Pencil for Left Bank Lines, Right Bank Lines, and Cross Sections.

../../_images/Lesson032.png
  1. Set the Vertex Tool to All Layers.

../../_images/Lesson0331.png
  1. Reposition the Left Bank Line so that it is in between the retaining wall and the channel.

../../_images/Lesson034.png
  1. Click the Schematize button to reposition the Schematized Channel and click Yes and Close to close the windows. In This case, hitting the enter button twice will be faster.

../../_images/Lesson0351.png ../../_images/Lesson036.png ../../_images/Lesson037.png
  1. If necessary, uncheck the Center button. This will keep the channel in place, so the corrections are easy to track.

../../_images/Lesson038.png
  1. Squeezing the left bank like this means some of the bank elements might be inside the channel.

  2. Slight corrections can be made to Left Bank Line to ensure good bank placement.

../../_images/Mod10_008.gif
  1. The same procedure can be used on the right bank.

../../_images/Mod10_009.gif
  1. Always finish by clicking the schematize button to ensure the final edits were updated.

  2. Once the final edits are complete, save and close the editors for the User Layers.

Step 9: Interpolate cross section data#

N type channels are interpolated using the INTERPOLATE.EXE program. This method will outline how to call the interpolator and reload the data.

Warning

If this process needs to be repeated, click the Schematize button before repeating anything beyond this step.

  1. Click the Create CHAN.DAT, XSEC.DAT, AND CHANBANK.DAT button.

../../_images/Lesson044.png
  1. Select the folder where the *.DAT files will be saved.

C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials\QGIS Lesson 2\Lesson 2 Export

../../_images/Lesson045.png
  1. The first action saves the channel data. Click OK to close the message.

../../_images/Lesson046.png
  1. The second action calls the Interpolate.exe program from the FLO-2D Pro folder.

Note

If this process results in an INTERPOLATE.EXE error, it is possible to move that file to another location and make sure it is named correctly.

If Interpolate.exe is missing from the FLO-2D Pro folder, get it here:

https://flo-2d.sharefile.com/d-sc217afc44dee42e882a590bc13813db2

  1. Click Interpolate.

../../_images/Lesson047.png
  1. If the interpolation is performed correctly the following message will appear. Click Import CHAN.DAT and XSEC.DAT to update the channel data in QGIS.

../../_images/Lesson0481.png
  1. Click the OK icon when the process is finished.

../../_images/Lesson0491.png

Step 10: Channel boundary condition#

Instructional Video

Inlet#

  1. Zoom to the first channel element on the southeast corner of the map.

../../_images/Lesson050.png
  1. Uncheck the visibility of the User Layers Left Bank Lines, Right Bank Lines, Cross Sections.

../../_images/Lesson051.png
  1. Collapse the Cross Section Editor

  2. Expand the Boundary Condition Editor.

  3. Click the Add point BC button.

../../_images/Lesson052.png
  1. Digitize a point to the first left bank channel cell and click OK.

../../_images/Lesson053.png
  1. Click Save on the Widget

../../_images/Lesson054.png
  1. Change the BC name of the inflow to GrnwayIN

  2. Set Defined for to Channel

  3. Click Add new Time Series

  4. Name the new Time Series to Grnway 24hr 100yr.

  5. The widget should look like this.

../../_images/Mod10_010.gif
  1. Open the hydrograph file in Notepad and copy the data.

../../_images/Lesson056.png

C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials\QGIS Lesson 2\Greenway Inflow 100yr 24hr.txt

  1. Place the cursor in the first cell of the Table and click Paste.

../../_images/Worksh040.gif

Outlet#

  1. Zoom to the end of the channel.

  2. Add a BC Point to the last element of the channel.

../../_images/Lesson058.png ../../_images/Lesson059.png
  1. Save the form and set the BC type to Outflow

../../_images/Lesson054.png
  1. Name the BC to GrnwayOut

  2. Set the Outflow type to 3.

../../_images/Lesson060.png
  1. Click the Schematize button the outflow conditions and click OK to close the message.

../../_images/Lesson061.png ../../_images/Lesson062.png

Step 11: Culverts#

This structure will calculate discharge through a box culvert. This example has a box culvert that is longer than the grid element. The channel segments are split up to allow for the width of the roadway.

Note

This image shows how the culverts should look once they have been digitized.

../../_images/Worksh074.png
  1. Zoom to the first culvert.

../../_images/Worksh175.png
  1. Open the Structures Editor. Click the Add Structure icon.

../../_images/Worksh075.png
  1. Digitize the first culvert by clicking on the upstream left bank element and downstream left bank element of the channel. Right click to complete the line and click OK to close the Structure Line attribute box.

../../_images/Worksh176.png
  1. Repeat the process on the second culvert downstream.

../../_images/Worksh177.png
  1. Click the Save Button on the Structure Editor.

../../_images/Worksh077.png
  1. Fill out the data for each structure.

    • Name the culverts Grnway1, Grnway2

    • Type = Channel

    • Rating = Rating table

    • Tailwater condition is none.

../../_images/Worksh076.png
  1. Click the Import Rating Tables button

../../_images/Worksh078.png
  1. Navigate to the Rating Tables files, select both tables and click Open.

C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials\QGIS Lesson 2\Hydraulic Structures

../../_images/Worksh079.png
  1. Note that the data was loaded into the FLO-2D Table Editor for the active structure.

../../_images/Worksh179.png
  1. Click Schematize to write the data to the schematic layers.

../../_images/Worksh080.png
  1. The hydraulic structures are now ready.

  2. If the table and plot did not update, refresh the tables by selecting the structure again in the widget.

../../_images/Worksh081.png

Step 12: Export the project#

  1. Click the Setup Control Parameters icon.

../../_images/Worksh017.png
  1. Check the boxes for Main Channel and Hydraulic structures if needed.

  2. Click Save.

../../_images/Worksh082.png
  1. Click the Export button for the FLO-2D Data files. Click OK.

../../_images/Module123.png ../../_images/Lesson063.png
  1. Select the QGIS Lesson 2 Export folder.

../../_images/Lesson064.png
  1. The data is ready to run.

../../_images/Lesson065.png

Step 13: Run the simulation#

  1. Click the Run FLO-2D Icon.

../../_images/Lesson066.png
  1. Set the FLO-2D Folder. C:\program files (x86)\flo-2d pro

  2. Set the Project Folder.

C:\users\public\public documents\flo-2d pro documentation\Example Projects\QGIS Tutorials\QGIS Lesson 2\Lesson 2 Export

  1. Click OK.

../../_images/Worksh090.png
  1. This is a good point to save project.

../../_images/Worksh011.png

Here’s a link to the channel checklist

Sorry for the Name and Email request on that link. Trying to eliminate bot downloads.

This final video explains how to review the channel to check if it is running correctly.