Lesson 3 – Create a Storm Drain System Using Shapefiles#

Overview

This lesson will outline the process to create a storm drain network for FLO-2D. This is the quick version. It is better for learning QGIS and FLO-2D Plugin operations. For advanced storm drain modeling, see the Advanced Lessons.

Required Data#

Start this lesson from the end of Lesson 2. It requires the channels and culverts. All data is provided in the Lesson folders.

File

Content

Location

Shapefiles

Inlets-Junctions, Outfalls, and Conduits

QGIS Lesson 3\Basic Storm Drain Shapefiles

I4-37-32-26-1.txt

Rating Table

QGIS Lesson 3\Basic Storm Drain Shapefiles

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#

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

../../_images/Worksh157.png
  1. Click Yes to load the plugin.

../../_images/Worksh158.png

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

  1. If necessary add an aerial image to the map. See Lesson 1 - Part 2 - Step 3 for instructions.

../../_images/Worksh056.png
  1. Organize the map layers to facilitate the next steps. It is OK to group user layers. Notice the Not Used group for layers that are not required by this project.

Warning

Do not remove layers that are part of the geopackage. It may break the geopackage layout and corrupt the data files.

../../_images/Worksh189.png

Step 2: Import the storm drain shapefiles#

  1. Click User Layers Group.

  2. Drag the *.shp files from QGIS Lesson 3 folder and drop the files in the map space. The shapefiles should be located in the User Layers group.

C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials\QGIS Lesson 3\ Basic Storm Drain Shapefiles

../../_images/Worksh093.png

Important

For a detailed description of the shapefile features and attributes, go to Storm Drain - Shapefile Overview

Step 3: Select component fields from the shapefiles#

  1. Expand the Storm Drain Editor widget and click the Select components from shapefile layer button.

../../_images/Worksh095.png
  1. Use the Editor to assign the Inlets/Junctions parameters from the shapefile to the attribute table.

Note

Skip Pumps, Weirs, and Orifice fields for now.

../../_images/Worksh096.png ../../_images/Worksh097.png ../../_images/Worksh098.png
  1. Once all features are selected in the drop-down menus, click Assign Selected Inlets/Junctions, Outfalls and Conduits to create the data structures of the Storm Drain Components.

  2. The following message will be displayed. Click OK.

../../_images/Worksh099.png

Step 5: Import rating tables#

  1. Click the Import Rating Table Button

../../_images/Worksh101.png
  1. Navigate to the I4 table with this path. Select the file and click Open.

C:\Users\Public\Documents\FLO-2D PRO Documentation\Example Projects\QGIS Tutorials\QGIS Lesson 3\ Storm Drain Shapefiles\I4-37-32-26-1.txt

  1. The table was imported and assigned to the correct inlet node.

../../_images/Worksh103.png
  1. If an error was detected because one Type 4 inlet didn’t match a selected text file, it would be reported to this file:

../../_images/Worksh103a.png

Warning

If a Python error pops up because the Rating Table Warnings file can’t be written, simply perform this step again.

Step 6: Schematize the storm drain components#

  1. Click on Schematize Storm Drain Components in the Storm Drain Editor widget.

../../_images/Worksh104.png
  1. Once the storm drain components are schematized, the following dialog will appear. Click OK to close.

../../_images/Worksh105.png
  1. The storm drain schematized data layers have been completed. The storm drain components are now part of the schematized layers in the project.

../../_images/Worksh106.png

Step 7: Export the project#

  1. Click the Set Control Variable icon.

../../_images/Worksh017.png
  1. Verify the data and Click Save.

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

../../_images/Worksh083.png
  1. Export the data files to the Project Folder in QGIS Lesson 3

../../_images/Worksh021.png

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

  1. Click OK to export the main project data files.

../../_images/Worksh021b.png
  1. Save the swmm.inp file with the next dialog. Make sure the path is still Lesson 3 Export.

../../_images/Worksh021c.png
  1. Check the .INP control variables and click OK.

../../_images/Worksh021d.png
  1. These are the storm drain components that were written to the swmm.inp file.

../../_images/Worksh021e.png
  1. The final dialog will be displayed. The associated storm drain data files are created when the storm drain switch has been turned ON.

../../_images/Worksh021f.png

Step 8: Run the simulation#

  1. Click the Run FLO-2D Icon.

../../_images/Worksh0052.png
  1. Set the Project path and the FLO-2D Engine Path and click OK to start the simulation.

  2. Set the FLO-2D Folder.

C:\program files (x86)\flo-2d pro

  1. Set the Project Folder.

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

../../_images/Worksh113.png
  1. After the storm drain model is complete, review FLO-2D Storm Drain Manual Chapter 6 for more details about reviewing results.

Step 9. Storm drain project recovery point#

  1. Save all layers that may be in editing mode, save the project, close QGIS.

  2. Find Lesson 1 qgz and gpkg in a File Browser. Select zip them. This will create a recovery point with the simple storm drain.

  3. Reload the project in QGIS.

Important

If you can’t remember how to do this step, go to Lesson 1 Part 2.

Summary#

This is the completion of a full storm drain model using the FLO-2D model along with digital terrain elevation data and an inflow hydrograph, rain, and boundary conditions from Lesson 1 and 2. This lesson has demonstrated how to create the storm drain system by using shapefiles for conduits, inlets/junctions, and outfalls.