Lesson 2 – Channels#
Overview#
Complete QGIS Lesson 1 before starting this lesson. Use Lesson 2 to build an urban drainage channel and add culverts to the channel.
Note
This lesson uses an HEC-RAS import. Alternate channel development methods are included in the advanced tutorials and coastal tutorials. It is not necessary to have a RAS channel.
Channel Development Tutorial is the advanced lesson for this project.
This video shows the full process of this tutorial.
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. This lesson uses the same project and data from the classic QGIS Lesson 2 but it does not use HEC-RAS data. Instead, it uses the FLO-2D Plugin channel tools.
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 |
Greenway.g01 |
Channel GeoRAS file |
\QGIS Lesson 2\HEC-RAS Channel |
Project Location C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials
Check these folders to ensure the data is available before starting the lesson.
Step 1: Open QGIS and load the project#
Open QGIS and drag Lesson 1.qgz onto the map space the file in QGIS and Load the Project into the FLO-2D Plugin.
Click Yes to load the plugin.
C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials\QGIS Lesson 1\QGIS Lesson 1.qgz
If necessary add an aerial image to the map. See Lesson 1 - Part 2 - Step 3 for instructions.
Organize the map layers to facilitate the next steps. Uncheck Infiltration Layers and any unused Project Data Layers.
Step 2: Import GeoRAS channel#
Click the Import RAS icon. Open the Greenway.g01 file.
C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials\QGIS Lesson 2\Greenway.g01
Check the Bank Stations radio button and click OK.
The channel left bank, right bank, and cross sections are imported into the User Layers. The cross-section data is imported into the cross section data tables.
Step 3: Schematize channel#
Click the Schematize channels button.
If the channel schematization process was successful, the following message will appear. Click Close.
Step 4: Channel boundary condition#
Inlet#
Zoom to the first channel element on the southeast corner of the map.
Group the Channel layers. Select Left Bank Lines, Right Bank Lines, Cross Sections and No Exchange Channel Areas. Right click the group and group them into Channels. Uncheck the Channels group.
Collapse the Cross Section Editor
Expand the Boundary Condition Editor.
Click the Add point BC button.
Digitize a point to the first left bank channel cell and click OK.
Click Save on the Widget
Change the BC name of the inflow to GrnwayIN
Set Defined for to Channel
Click Add new Time Series
Name the new Time Series to Grnway 24hr 100yr.
The widget should look like this.
Open the hydrograph file in Notepad and copy the data.
C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials\QGIS Lesson 2\Greenway Inflow 100yr 24hr.txt
Place the cursor in the first cell of the Table and click Paste.
Outlet#
Zoom to the end of the channel.
Add a BC Point to the last element of the channel.
Save the form and set the BC type to Outflow
Name the BC to GrnwayOut
Set the Outflow type to 3.
Click the Schematize button the outflow conditions and click OK to close the message.
Step 5: 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
Zoom to the first culvert.
Collapse all FLO-2D Widgets. Open the Structures Editor. Click the Add Structure icon.
Digitize the first culvert
Left click the upstream left bank.
Left click the downstream left bank.
Right click to complete the line.
Click OK to complete the structure
Repeat the process on the second culvert downstream.
Click the Save Button on the Structure Editor.
Fill out the data for each structure.
Name the culverts Grnway1, Grnway2
Type = Channel
Rating = Rating table
Tailwater condition is none
Click the Import Rating Tables button
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
The data was loaded into the FLO-2D Table Editor for the active structure. If it isn’t showing, select the structure from the dropdown menu to update the table and plot.
Click Schematize to write the data to the schematic layers.
The hydraulic structures are now ready.
If the table and plot did not update, refresh the tables by selecting the structure again in the widget.
Step 6: Interpolate the channel#
To interpolate the channel segments, export the channel data and run the interpolator. In the Cross Sections Editor widget, click the Create CHAN.DAT, XSEC.DAT, and CHANBANK.DAT icon.
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
Note
If this process results in an Interpolate.exe error, it is possible to move that Interpolate.exe to another location. Sometimes this file is locked by admin rights because it is in the Program Files (x86) directory.
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.
Click the OK icon when the process is finished.
7. Export the project#
Click the Setup Control Parameters icon.
Check the boxes for Main Channel and Hydraulic structures if needed.
Click Save.
Click the Export Data button.
Navigate to the project and click Select Folder.
C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials\QGIS Lesson 2\QGIS Lesson 2 Export
If all files were written correctly, the following message will appear. Click OK to close it.
Step 8: Test run and fix the channel bank#
Click the Run FLO-2D Icon.
Set the FLO-2D Folder. C:\program files (x86)\flo-2d pro
Set the Project Folder.
C:\users\public\public documents\flo-2d pro documentation\Example Projects\QGIS Tutorials\QGIS Lesson 2\Lesson 2 Export
Click OK.
If an error message appears, open the error.chk file from the project directory. If no error message appears, let the simulation run and create the backup file shown in Step 9.6.
If you are in a live class, Open and read the Error.CHK file in Notepad or Notepad++ and wait for the instructor. We will fix this as a group.
If you are on your own, check out this video. It will show you how to fix the error.
Step 9: Final run and recovery point#
Click the Run FLO-2D Icon.
Set the FLO-2D Folder. C:\program files (x86)\flo-2d pro
Set the Project Folder.
C:\users\public\public documents\flo-2d pro documentation\Example Projects\QGIS Tutorials\QGIS Lesson 2\Lesson 2 Export
Click OK.
If the run still has errors, repeat Step 8. If the run starts, let it run.
Save and close QGIS.
Find QGIS Lesson 1 in a File Browser. Select the Lesson 1.gpkg and Lesson 1.qgz files and zip them. This will create a recovery file.
Name the zipped file. It is good to choose a name that identifies project progress. For Example: Lesson 2 Complete.zip.
Repeat this step after any time a Backup or Recovery Point is desired.
Summary#
This lesson was a simple channel import. It used a Georeferenced HEC-RAS geometry file. These files can be made with HEC-RAS version 5.xx, or HECGEORAS plugin for ArcGIS.
There are many ways to build channels with QGIS for FLO-2D and the other possibilities are outlined in the Advanced Tutorials. You can see these on the left hand table of contents.