Difference between revisions of "Tutorial M01 Boundary Conditions QGIS GPKG"

From Tuflow
Jump to navigation Jump to search
 
Line 30: Line 30:
 
<li>Select the eye icon 'Edit Advanced Configuration' and tick the '''2d_code_M01_001_R'''. <br>
 
<li>Select the eye icon 'Edit Advanced Configuration' and tick the '''2d_code_M01_001_R'''. <br>
 
<br>
 
<br>
[[File:Animation_M01_Boundary_01b.gif]] <br>
+
{{Video|name=Animation_M01_Boundary_01b.mp4|width=1274}} <br>
 
</ol>
 
</ol>
 
<br>
 
<br>
Line 43: Line 43:
 
:*Name = FC01
 
:*Name = FC01
 
<br>
 
<br>
[[File:Animation_M01_GPKG_Boundary_02.gif]] <br>
+
{{Video|name=Animation_M01_GPKG_Boundary_02.mp4|width=1274}}<br>
 
<br>
 
<br>
 
</ol>
 
</ol>
Line 56: Line 56:
 
<li>Toggle the editing off to save the edits.<br>
 
<li>Toggle the editing off to save the edits.<br>
 
<br>
 
<br>
[[File:Animation_M01_GPKG_Boundary_03.gif]] <br>
+
{{Video|name=Animation_M01_GPKG_Boundary_03.mp4|width=1274}} <br>
 
<br>
 
<br>
 
</ol>
 
</ol>
Line 69: Line 69:
 
<li>Select 'Apply Label to Current Layer' from the TUFLOW Plugin toolbar to see the names of each polygon.
 
<li>Select 'Apply Label to Current Layer' from the TUFLOW Plugin toolbar to see the names of each polygon.
 
<br><br>
 
<br><br>
[[File:Animation_M01_GPKG_Boundary_04a.gif]]
+
{{Video|name=Animation_M01_GPKG_Boundary_04a_.mp4|width=1274}}
 
</ol><br>
 
</ol><br>
  

Latest revision as of 12:09, 14 August 2023

Introduction

QGIS is used to create the boundary condition layers. Three different types of boundaries are introduced:

  • 2d_bc: flow vs time - used as external upstream boundary;
  • 2d_bc: head vs flow (stage-discharge) - used as downstream boundary; and
  • 2d_sa: flow vs time - used as internal boundary.

TUFLOW layer naming convention:

  • Points are stored in a filename_P layer.
  • Lines are stored in a filename_L layer.
  • Regions or polygons are stores in a filename_R layer.

Method

Flow vs Time and Head vs Flow Boundaries (2d_bc)

The 2d_bc boundaries are external boundaries applied as lines. They are snapped to the edge of the active model area, the code polygon, and digitised perpendicular to the flow. Digitising the boundary on an angle to the flow could cause instabilities and oscillations.

Create the 2d_bc layer using the TUFLOW plugin:

  1. Click on the ‘Import Empty File’ symbol from the TUFLOW plugin toolbar.
  2. Select '2d_bc' from the Empty Type list.
  3. In the Run ID box write 'M01_001'.
  4. Tick the 'Lines' Geometry Type.
  5. In the Spatial Database Options, select 'All to one'. Navigate to the Module_01/TUFLOW/model/gis folder and select M01_001.gpkg. Click Save and hit 'OK'.
  6. The 2d_bc_M01_001_L appears in the QGIS Layers panel.

Enable snapping:

  1. Right click anywhere in the Toolbar panel and tick on the Snapping Toolbar.
  2. Select the magnet icon 'Enable Snapping' and 'All Layers > Advanced Configuration', an eye icon appears.
  3. Select the eye icon 'Edit Advanced Configuration' and tick the 2d_code_M01_001_R.



Digitise the upstream boundary:

  1. Zoom into the creek at the south-western edge of the code polygon.
  2. Right click the 2d_bc_M01_001_L file in the Layers panel and toggle on editing.
  3. Select 'Add Line Feature'.
  4. Create a line joining the four vertices as shown below. With the snapping option on, the cursor snaps to the existing vertices on the 2d_code_M01_001_R layer.
  5. When selecting the final vertex, use the right mouse button to terminate the line, an attributes dialog appears. In the attributes, specify the boundary as flow vs time (QT) boundary with the name 'FC01'.
    • Type = QT
    • Name = FC01



Digitise the downstream boundary:

  1. Zoom into the creek at the north edge of the code polygon.
  2. Add another line in the 2d_bc_M01_001_L layer connecting the four vertices shown below.
  3. In the attributes, specify head vs flow (HQ), stage-discharge boundary, and water surface slope via the 'b' attribute of '0.01'.
    • Type = HQ
    • b = 0.01
    Note: The value of 0.01 is in metres per metre and corresponds to a 1% water surface slope. TUFLOW automatically creates a stage-discharge curve based on the underlying topography, roughness and the water surface slope. If a 'Name' is specified for HQ type boundary, the stage-discharge relationship would be defined in the boundary database and the 'b' attribute would remain blank.
  4. Toggle the editing off to save the edits.



Source Area Boundary (2d_sa)

The 2d_sa boundaries are internal boundaries digitised as polygons applying flow or rainfall directly onto the 2D domain.
The source area layer is provided:

  1. Within the QGIS Browser Panel, navigate to the Module_01\Tutorial_Data folder.
  2. Drag the 2d_sa_M01_001_R layer from the 2d_sa_M01_001_R.gpkg and drop into the M01_001.gpkg contained within the Module_01\TUFLOW\model\gis folder.
  3. Double click on the 2d_sa_M01_001_R layer from within the M01_001.gpkg to open it in QGIS and select ‘Apply TUFLOW Styles to Current Layer’.
  4. Select 'Apply Label to Current Layer' from the TUFLOW Plugin toolbar to see the names of each polygon.


Conclusion

  • The 2d_bc layer was created containing an upstream flow boundary and a downstream stage-discharge boundary.
  • The 2d_sa layer was created to define the internal source area boundary.


Up
Go-up.png Back to Module 1 Main Page