Channel#

Overview

Use this training module to build an urban drainage channel by digitizing the channel components. Finish it up by adding tide gates and boundary conditions to the channel.

Required Data

All data is provided in the Lesson folders.

File

Content

*.shp

Left bank template

*.shp

Right bank template

*.shp

Cross sections template

*.shp

Points

*.txt

Tide gate tables

Data Location: \Coastal 2D Training\Project Data\Channel

Step 1: Prepare the map#

  1. Use Quick Map Services to load an aerial image onto the map.

../_images/Lesson005.png ../_images/chan003.png
  1. Make sure the Elevation Raster layer is checked on and if necessary change symbology to Hillshade.

../_images/chan001.png
  1. Simplify the layers list by collapsing unused groups and unchecking schematic layers.

../_images/chan0013.png

Important

The aerial image and LiDAR map help define the left and right bank lines and help determine where cross sections are required. Sometimes the LiDAR map is better and other times the Aerial is better. Use both to help determine the best placement.

Step 2: Load the data#

Important

The imported data is used as templates to move the class along and reduce errors. These templates are not needed in general. The channels can be built directly into the User Channel Layers.

  1. Click the Channel group in the User Layers.

  2. Drag the channel template shapefiles onto the map.

../_images/chan002.png

Step 3: Left bank digitize#

Important

Normally to digitize a channel, you would select the Left Bank Lines layer and add a channel feature to it. That process is too slow and complex for this class. We will use a simplified method to reduce errors and time. The following animation shows the full process. Open it in a new tab to study the method.

../_images/makeleftbank.gif
  1. Please proceed with a faster method to keep on schedule.

  2. Click the Left Bank Template layer. It will be copied into the official layer.

  3. Select the channel line using the select with rectangle button. Drag a rectangle over the channel lines to select the line.

../_images/chan0034.png
  1. Ctrl-c to copy the line feature.

  2. Click the official Left Bank Lines layer.

  3. Click the Edit Pencil button and Ctrl-v to paste the line into the Left Bank Lines layer.

  4. Save the Left Bank Lines layer and un-toggle the Editor Pencil.

../_images/chan0037.png
  1. Click the de-select all button to reset the select tool.

../_images/chan0038.png
  1. Watch the animated image for a demo.

../_images/copyleftbank.gif

Important

Remember, this copy paste method is used to keep the class on schedule. In your future projects, you can add a feature to the Left Bank layer instead of using the copy paste method. The Advanced Channel Lesson on the left sidebar shows a more detailed explanation of channel development.

Step 4: Right bank digitize#

Important

Normally, you would build a right bank line just like a left bank line. Again, that process will slow the class down too much. It is demonstrated in the following animation but please follow the simpler steps below. Open it in a new tab to study the method.

../_images/makerightbank.gif
  1. Please proceed with a faster method to keep on schedule.

  2. Click the Right Bank Template layer. It will be copied into the official layer.

  3. Select the channel line using the Select button. Drag a rectangle over the channel lines to select the line.

../_images/chan0043.png
  1. Ctrl-C to copy the line.

  2. Click the official Right Bank Lines.

  3. Click the Edit button and Ctrl-v to paste the line into the Right Bank Lines layer.

  4. Save the Right Bank Lines layer and un-toggle the Editor Pencil.

../_images/chan0047.png
  1. Watch the animation to see the process.

../_images/copyrightbank.gif
  1. De-select all features and uncheck the left and right bank templates.

../_images/chan003a.png

Step 5: Cross sections - fast method#

Important

Cross section editing takes time. Step 5 fast method is used for this class. Step 5 digitize method is to illustrate the process for your own projects.

  1. Collapse the FLO-2D widgets.

  2. Open the Cross Section Editor widget.

  3. Click the Digitize Cross Sections button.

../_images/chan0051.png
  1. Click the Cross Sections Template layer.

  2. Click the Select All features button.

  3. Ctrl-c to copy all of the cross sections.

../_images/chan0054.png
  1. Click the Cross Sections layer.

  2. Ctrl-v to paste the cross section lines into the layer.

../_images/chan0055.png
  1. Click the Save button on the Cross Section Editor widget.

  2. Note the cross sections loaded into the widget.

  3. De-select all of the features.

../_images/chan0058.png
  1. Watch the animation to see the process.

../_images/copycrosssection.gif

Step 5: Cross sections - digitize method#

Important

This is the method you would use to create cross sections on your own channel. It has more details and instructions. Review it but please use the fast method for the live class.

Note

Digitize the cross sections in order from upstream to downstream.

  1. Zoom in on the southeast corner of the map.

../_images/chan004.png
  1. Un-check the Grid layer in the Schematized Layers Group. If the Schematized group is un-checked, skip this.

../_images/chan004a.png
  1. Go to the Channels group and double click the Cross Sections Template layer.

../_images/chan004b.png
  1. Click Symbology and Click Simple Line. Set the color to red and the stroke width to 1. Click OK to close the window.

../_images/chan005.png
  1. Add the Snapping toolbar. Right click the toolbar area and check the Snapping toolbar.

../_images/chan008.png
  1. Click the Config button and set it to Advanced Configuration.

  2. Click the eye button and set the active layer to Cross Sections.

../_images/chan0557.png
  1. Collapse the FLO-2D widgets and click Cross Sections Editor.

../_images/chan006.png
  1. The first cross section has important restrictions.

    • The line must cross the left bank line.

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

    • The line must cross the right bank line.

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

  2. Click the Add Cross Section Lines button on the Cross Section Editor.

../_images/chan007.png
  1. Digitize all 24 cross sections using process shown the following animation. Use the red lines as guides.

    1. Left click the south side (left bank).

    2. Left click the north side (right bank).

    3. Right click to close the line.

    4. Click OK or use the Enter key to close attributes window.

../_images/crossection1.gif
  1. Handy digitizing tools:

    • Left click to drop a point. Right click to close a polyline or polygon.

    • Rotate the scroll wheel to zoom in and out.

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

    • Use the delete key to delete the last vertex created.

    • Use the Esc key to cancel the polyline or polygon.

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

    • Redo and undo have limited functionality and can be useful. Ctrl-z to undo.

  2. Once the last cross section is complete. Click the Save icon on the Cross Sections Editor.

../_images/chan009a.png
  1. Remove the channel templates from the layers list. Right click them and click Remove.

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

../_images/chan010.png

Step 6. Cross section attributes#

  1. The widget can be used to edit the attributes of the cross sections but that method is slow. Sometimes it is faster to use the attribute table editor.

../_images/chan0061.png
  1. Go to the User layers group. Right click the Cross Sections layer and click Open Attribute Table.

../_images/chan0062.png
  1. Click the Edit pencil.

  2. Set the field to fcn.

  3. Set the n value to 0.035.

  4. Click Update All.

../_images/chan0066.png
  1. Click Save button

  2. Un-toggle the editor pencil.

  3. Close the table.

../_images/chan0069.png

Step 7: Load cross section data#

Important

The video discusses cross section development. Methods to determine the urban channel geometry.

  1. As-built files are the first source of data but not available in all cases.

  2. Survey channel cross sections.

  3. Sample elevation data from a LiDAR raster. (This method only works if the channels are dry.)

  4. Measure and estimate channel geometry with QGIS tools.

  1. From the Cross Section Editor, choose Cross-Section-1.

../_images/chan011.png
  1. Open the corresponding cross section text file.

../_images/chan012.png

Data Location: \Coastal 2D Training\Project Data\Channel\Cross Section Station Elevation Files

  1. Copy the data and close the text file. Tip: Hold down the Ctrl key and press A C W keys.

../_images/chan013.png
  1. Click the first cell of the of the FLO-2D Table Editor and click the Paste button.

../_images/chan014.png
  1. Repeat this process for all 24 cross sections.

  2. Use the mouse roller to scroll through each cross section to see that it has correct data.

../_images/chan0076.png

Step 8: Schematize channel#

Note

If any of the following procedure needs to be repeated, always return to this Schematize step to reset the data before trying to modify anything. It is a reset button and it is very important.

  1. Click Schematize channel.

../_images/chan015.png
  1. If the channel schematizing process was successful, the following messages will appear. Click Yes and Close.

../_images/chan016.png
  1. If an error message appears. Ask the instructor for help.

Step 9: Review bank alignment#

Channel alignment in urban projects can be important because channels are usually squeezed between features like buildings, walls, and streets. In this image, the right bank right along the houses. Recheck the banks after adding buildings.

../_images/chan017.png

It is simple to make minor corrections to the left bank lines, right bank lines, and cross sections to realign the channels.

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

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

../_images/Lesson033.png
  1. Reposition the left or right bank so that it is better aligned with the right side of the channel.

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

../_images/Lesson035.png ../_images/chan020.png
  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 10: Interpolate the channel#

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

Note

If this process needs to be repeated for any reason, click Schematize button before performing this step.

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

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

Data Location: \Coastal 2D Training\Project Data\Channel Interpolate Test

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

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

../_images/chan023.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/Lesson048.png
  1. Click the OK icon when the process is finished.

../_images/Lesson049.png
  1. The channel is now complete. The data will be saved to the CHAN.DAT, CHANBANK.DAT, and XSEC.DAT files.

Step 11: Channel boundary condition#

The boundary condition for this channel include a hydrograph at the upstream side and a tide stage control at the downstream side.

Inlet#

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

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

../_images/chan027.png
  1. Collapse the FLO-2D Widgets and expand the Boundary Condition Editor.

../_images/chan029.png
  1. Click the Add point BC button, click the first left bank cell of the channel and click OK.

../_images/chan028.png
  1. Click Save on the Widget and OK to close the message.

../_images/chan030.png
  1. Check the Inflow radio button and change the BC name of the inflow to CocoIn

  2. Set Defined to Channel

  3. Name the new Time Series to 24hr100yr.

../_images/chan031.png
  1. Open the hydrograph file in Notepad and copy the data.

../_images/chan032.png

Data Location: \Coastal 2D Training\Project Data\Boundary Conditions\24hr100yrInflow.txt

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

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

../_images/chan035.png
  1. The inflow boundary is now complete. The data will be saved to the INFLOW.DAT file.

Outlet#

  1. Zoom to the end of the channel.

  2. Nothing is required in this location because the channel terminates upstream of the boundary. It will exchange water with the floodplain as the tide goes up and down.

  3. The following image has is an overlay of the last cross section and the tide table.

../_images/chan034.png

Step 12: Test Run#

Important

The video shows how to find and fix channel errors but the class project will run without errors. Review the video if you have time but skip it if you don’t.

The test run will help determine if the channel is set up correctly. There are a handful of common errors with channel modeling. This video will show how to find and fix these 3 common errors.

  • Banks too close together.

  • Boundary cross sections are too high. Invert elevations do not allow downstream flow.

  • A bank element is inside the channel.

These are reported in an the file ERROR.CHK. If they exist, the model can’t run.

  1. Set the control Parameters and click save. Turn on the channel switch and turn of the rainfall for this test.

../_images/chan0121.png
  1. Export the project into the Channel Interpolation Test folder.

../_images/chan0122.png ../_images/chan0123.png
  1. Click the Run FLO-2D Icon.

../_images/chan0124.png
  1. As anticipated, the error warning appears. Follow the video to see how to review the error.

../_images/chan0125.png

Step 13: Tide gates#

Two gated weirs are in the Cocohatchee channel. Coco1 is further west and Coco2 is close to the east boundary.

../_images/chan036.png
  1. Zoom the map to Coco1.

../_images/chan037.png
  1. Collapse the FLO-2D widgets and click Structures Editor.

../_images/chan038.png
  1. Digitize the first culvert.

    1. Click the Create Structure button.

    2. Click the upstream left bank element.

    3. Click the downstream left bank element.

    4. Right click to close the line.

    5. Click OK to close the feature attributes.

../_images/chan039.png
  1. Move upstream to the Coco2 and create the second structure.

../_images/chan040a.png

Note

Roll the wheel to zoom. Use the Arrow Keys or click and drag the wheel to pan.

../_images/chan040.png
  1. Finish the structures in the Structure Editor widget.

Coco1

  1. Save the Structures.

  2. Click the center button

  3. Select Structure1 and change the name. Coco1

  4. Type = Channel

  5. Rating = Rating table

  6. Tailwater condition is Allow Upstream Flow.

../_images/chancoco1.png

Coco2

  1. Select Structure2 and change the name. Coco2

  2. Type = Channel

  3. Rating = Rating table

  4. Tailwater condition is Allow Upstream Flow.

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

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

Data Location: Coastal 2D Training\Project Data\Weirs

../_images/chan043.png
  1. The data was loaded into the FLO-2D Table Editor for the active structure.

Important

It may not be obvious that the data as imported. Select a structure in the widget to refresh the plot.

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

../_images/chan045.png
  1. The hydraulic structures are now ready. The data will be saved to the HYSTRUCT.DAT file.

Step 14: Export the project#

  1. Click the Setup Control Parameters icon.

../_images/chan047.png
  1. Check the boxes for Main Channel, Rainfall, and Hydraulic Structures and click Save.

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

../_images/chan048.png
  1. Create a new Export folder to test the weirs and channel hydraulics.

../_images/chan050.png
  1. Click OK to to export the data.

../_images/chan049.png
  1. Click OK again to close the message. The project is ready to run.

../_images/chan051.png

Step 15: Run the simulation#

  1. Click the Run FLO-2D Icon.

../_images/chan054.png
  1. The model should start with no error messages. If you see an error message. Check ERROR.CHK. Ask for help from an instructor or by email.

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

../_images/chan053.png

Step 16: Create a backup file#

  1. Close QGIS.

  2. Open the project folder. Select the Coastal Project.gpkg and Coastal Project.qgz files. Right click them and click Sent to/Compressed (zipped) folder.

../_images/creategrid019.png
  1. Name the zipped file. It is good to choose a name that identifies project progress. For Example: ChanOK.zip

../_images/chan055.png
  1. Open QGIS and reload the project.

../_images/creategrid021.png
  1. Click yes to load the model.

Important

The following video is a little old but it is still a good channel review. Use it but ignore references to QGIS 3.18. This tutorial uses QGIS 3.28.11 or so.