Tute M01 Boundaries SAGA

From Tuflow
Jump to: navigation, search

Introduction

This page details the method for using SAGA to create the GIS based boundary layer files. Once the GIS layers are setup (detailed in this page), these are linked to data using a boundary database, (the boundary database is described in the module 1 main page). We will create three different boundaries:

  • Upstream flow boundary
  • Downstream water level - flow (stage-discharge) boundary
  • Internal flow boundary

The first two boundaries are input into a 2d_bc type layer. The third boundary (internal flow boundary) will be applied as a source-area boundary in a 2d_SA boundary type layer.

Method

2d_bc Type Boundaries

We will create the 2d_bc boundaries first. These boundaries are external and will "snap" to the edge of our active model area. Both of these boundaries have been aligned perpendicular to flow direction.
Note: This line orientation is recommended for 2d_bc QT, HQ and HT boundary inputs. Care should be taken to digitise these boundary types perpendicular to flow direction (i.e. across the waterway). If they are digitised oblique to the flow (i.e. not perpendicular) model instabilities can result in some cases.

  1. Load the DEM Module_Data\DEMs\SAGA\DEM_M01.sgrd
  2. Load the code polygon TUFLOW\model\gis\2d_code_M01_002_R.shp
  3. Create a new map containing these layers, select both of these in the data tab of the workspace window, right click and select "Show".
  4. Load the template 2d bc type layer (2d_bc_empty_L.shp) from TUFLOW\model\gis\empty\.
  5. Save a copy of the template under the TUFLOW\model\gis folder as 2d_bc_M01_002_L.shp. Note that we save the file into the \model\gis\ directory not the \model\gis\empty\ directory.
  6. Open the newly saved, 2d_bc_M01_002_L.shp add it to the map window and close the template.
  7. The SAGA window should now look something like this:

    Tute M01 Saga 2d bc 1.png


  8. The first step is to change the style of the code region to make it a bit easier to work with. Select the 2d_code_m01_002_R in the data tab, and then in the settings tab of the object properties window change the following:
    • Set the Fill Style to "Transparent", this allows us to see the DEM behind the polygon;
    • Set the Outline Size to 2, to make the object more visible;
    • Check the "Show Vertices" option under Outline, this will allow us to see the vertices to snap the 2d_bc layer too.
    Select Apply.
  9. Modifications above highlighted in bold
  10. Before we begin modifying the 2d_bc layer, we need to enable snapping to the 2d_code region. To do this select the 2d_bc_M01_002_L.shp in the data tab, in the settings tab, select the "..." button next to the "Snap to.." text.
  11. Tute M01 Saga SnapTo1.png


  12. In the snap to dialogue, select the 2d_code_M01_002_R in the left hand pane and move it to the right. Then select Okay. This layer is ready for input into TUFLOW.
  13. Tute M01 Saga SnapTo2.png


  14. Set the Snap Distance to 10 (metres). This controls how closely you need to digitise a vertex in the new shape to be considered snapped to the code region. Select Apply.
  15. To add an object to the layer, right click on the layer in the workspace window and select Edit >> Add Shape.
  16. Tute M01 Saga 2d bc 3.png


  17. Digitise a line connecting the 4 vertices in the location show below. At each vertex, left click to create a vertex on the line, to finish the line use the right mouse button. Right click on the layer in the workspace and un-check the "edit selected shapes" option.
  18. Tute M01 Saga 2d bc 4.png
  19. Navigate to the attribute tab of the object properties window. Enter the following data:
    • Type = QT
    • Name = FC01 (that is FC Zero One).
    The type "QT" designates this as flow ("Q") versus Time ("T") boundary. As per the window below.
  20. Tute M01 Saga 2d bc 5.png


  21. At the downstream boundary, add another shape connecting the four vertices shown below.
    In the attributes window set the following:
    • Type = HQ
    • b = 0.01
    The remaining attributes are to be left blank or with the default value of 0 (including the name). The type "HQ" designates this as a Water Level ("H") versus Flow ("Q") boundary. This is a stage-discharge boundary condition. If a Name is specified, the user must define this stage-discharge relationship in the boundary database. In this case a water surface slope value is specified via the "b" attribute, this value of 0.01 is in metres per metre and corresponds to a 1% water surface slope. TUFLOW will automatically create a stage-discharge curve flow this location, based on the underlying topography, roughness and specified water surface slope.
  22. Tute M01 Saga 2d bc 6.png
  23. In the data tab, right click on the 2d_bc_M01_002_L layer and select "Save".
  24. Tute M01 Saga 2d bc 7.png

2d_sa Type Boundary

The next step is to create an internal inflow boundary using a source-area inflow this is done with a 2d_sa type layer.

  1. Load the 2d_sa_empty_R.shp template file from the TUFLOW\model\gis\empty\. Save a copy of the layer in the TUFLOW\model\gis\ directory as 2d_sa_M01_002_R.shp.
  2. Load the newly created 2d_sa_M01_002_R file and close the template file.
  3. Add the layer to a map window with the DEM.
  4. Add a new shape and digitise a polygon around the dam in the lower right (south-east) of the screen.
  5. Tute M01 Saga 2d sa 1.png


  6. Select the object in the map window, navigate to the attribute tab in the object properties window and enter "FC04" under the Name attribute (FC zero four, without the quotes).
  7. Tute M01 Saga 2d sa 2.png


  8. Save the file, by right clicking on it in the data tab and selecting save.

Conclusion

SAGA has been used to create the 2d_bc layer that contains an upstream "QT" type inflow boundary and a downstream "HQ" stage-discharge type boundary. A second SAGA layer (2d_sa) defines an internal source boundary. Our next step is to assign hydrographs to the boundary locations created in this page. Please return to the tutorial model page here.