Difference between revisions of "Tutorial M11 002 GIS Inputs QGIS GPKG"

From Tuflow
Jump to navigation Jump to search
Line 55: Line 55:
 
<li>Click 'OK' and turn off editing to save the edits.<br>
 
<li>Click 'OK' and turn off editing to save the edits.<br>
 
<br>
 
<br>
[[File:Animation M11 002 GIS 05a.gif]]<br>
+
[[File:Animation_M11_GPKG_002_GIS_05.gif]]<br>
 
<br>
 
<br>
 
</ol>
 
</ol>
Line 75: Line 75:
 
<li>Click 'OK' and turn off editing to save the edits.<br>
 
<li>Click 'OK' and turn off editing to save the edits.<br>
 
<br>
 
<br>
[[File:Animation M11 002 GIS 01a.gif]]<br>
+
[[File:Animation_M11_GPKG_002_GIS_01.gif]]<br>
 
<br>
 
<br>
 
</ol>
 
</ol>
Line 95: Line 95:
 
<li>Click 'OK' and turn off editing to save the edits.<br>
 
<li>Click 'OK' and turn off editing to save the edits.<br>
 
<br>
 
<br>
[[File:Animation M11 002 GIS 02.gif]]<br>
+
[[File:Animation_M11_GPKG_002_GIS_02.gif]]<br>
 
<br>
 
<br>
 
</ol>
 
</ol>
Line 113: Line 113:
 
<li>Water from 1D does not transition to 2D at this location anymore, delete the two HX lines intersecting the open channel. The water at the 1D channel node is transferred to the banks by the CN lines, all four CN lines remain:<br>
 
<li>Water from 1D does not transition to 2D at this location anymore, delete the two HX lines intersecting the open channel. The water at the 1D channel node is transferred to the banks by the CN lines, all four CN lines remain:<br>
 
<br>
 
<br>
[[File:Animation M11 002 GIS 03.gif]]<br>
+
[[File:Animation_M11_GPKG_002_GIS_03.gif]]<br>
 
<br>
 
<br>
 
<li>Create new HX lines connecting the current HX lines on the banks of the open channel:
 
<li>Create new HX lines connecting the current HX lines on the banks of the open channel:
 
<li>Click 'OK' and turn off editing to save the edits.<br>
 
<li>Click 'OK' and turn off editing to save the edits.<br>
 
<br>
 
<br>
[[File:Animation M11 002 GIS 04.gif]]<br>
+
[[File:Animation_M11_GPKG_002_GIS_04.gif]]<br>
 
</ol>
 
</ol>
 
<br>
 
<br>

Revision as of 15:21, 1 August 2023

Page Under Construction

Introduction

QGIS is used to create, import and view input data.

Method

Set up the GeoPackage Database:

  1. Navigate to the Module_11\TUFLOW\model\gis folder. Save a copy of M11_001.gpkg as M11_002.gpkg.

Within the QGIS Browser Panel, navigate to the Module_11\Tutorial_Data folder. Drag and drop the following layers into the M11_002.gpkg:

  • 1d_nwk_M11_bridges_002_L
  • 1d_nwk_M11_weirs_002_L

Investigate the supplied files:

  1. Open the files, either:
    • Within the QGIS Browser Panel, navigate to M11_002.gpkg and double click the layers, or
    • In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layers (hold Ctrl to select multiple).
  2. Use the 'Apply TUFLOW Styles to Open Layers'.
  3. The 1d_nwk bridge layer represents a bridge in 1D at the upstream and downstream road crossing. Type attribute ‘BB’ is specified, only pier loss and submerged deck loss coefficients are required, all other losses are automatically calculated.
  4. The 1d_nwk weir layer represents a weir for flow over the bridge in 1D at the downstream road crossing. Type attribute 'W' is specified, the weir is based on the broad crested weir formula:

    Animation M11 002 GIS 06a.gif

  5. Open the files, either:
    • Within the QGIS Browser Panel, navigate to 'M11_002.gpkg and double click the following layers, or
    • 1d_xs_M11_bridges_002_L
    • 1d_xs_M11_weirs_002_L
    • In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layers above (hold Ctrl to select multiple).
  6. Use the 'Apply TUFLOW Styles to Open Layers'.
  7. Use the TUFLOW Viewer to view the 'HW' (height vs width) cross section of the bridges and 'XZ' (distance vs elevation) cross section of the weir.
    Note: If a 1d_xs line has only two nodes, it must intersect with the 1d_nwk it provides information for. If a line has more than two nodes, it must be snapped to the 1d_nwk. The tutorial shows both.

    Animation M11 002 GIS 07a.gif

Increment the 1d_nwk layer to remove both culverts contained within the main channel. They are replaced by a bridge (upstream) and bridge and weir (downstream):

  1. Load in the 1d_nwk_M03_culverts_001_L layer from M11_002.gpkg, either:
    • Within the QGIS Browser Panel, navigate to M11_002.gpkg and double click the layer, or
    • In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layer.
  2. Select the 1d_nwk_M03_culverts_001_L layer in the Layers panel.
  3. Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar.
  4. Manually change the name from 1d_nwk_M03_culverts_001_L to 1d_nwk_M11_culverts_002_L. Ensure the 'Output Database' is M11_002.gpkg.
  5. Select to 'Remove Source Layer from Workspace' and click 'OK'.
  6. The tool removes the source layer from the Layers panel and the 1d_nwk_M11_culverts_002_L appears.
  7. Use the 'Apply TUFLOW Styles to Open Layers'.
  8. Right click on the layer to toggle on Editing.
  9. Open the attribute table and delete both 'R' type culverts.
  10. Click 'OK' and turn off editing to save the edits.

    Animation M11 GPKG 002 GIS 05.gif

Increment the code layer to change active and inactive areas at the downstream road where 1D weir is used instead of 2D overtopping:

  1. Load in the 2d_code_M11_null_creek_001_R layer from M11_002.gpkg, either:
    • Within the QGIS Browser Panel, navigate to M11_002.gpkg and double click the layer, or
    • In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layer.
  2. Select the 2d_code_M11_null_creek_001_R layer in the Layers panel.
  3. Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar.
  4. The tool automatically renames the 2d_code_M11_null_creek_001_R to 2d_code_M11_null_creek_002_R. Ensure the 'Output Database' is M11_002.gpkg.
  5. Select to 'Remove Source Layer from Workspace' and click 'OK'.
  6. The tool removes the source layer from the Layers panel and the 2d_code_M11_null_creek_002_R appears.
  7. Use the 'Apply TUFLOW Styles to Open Layers'.
  8. Zoom to the downstream road crossing and right click on the layer to toggle on Editing.
  9. Click on the 'Add Polygon Feature' tool and draw a polygon snapped to the existing polygons.
  10. Set the attribute as '0'.
  11. Click 'OK' and turn off editing to save the edits.

    Animation M11 GPKG 002 GIS 01.gif

Increment the Z shape layer to change the elevation of the river banks at the downstream road:

  1. Load in the 2d_zsh_M11_hx_001_L layer from M11_002.gpkg, either:
    • Within the QGIS Browser Panel, navigate to M11_002.gpkg and double click the layer, or
    • In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layer.
  2. Select the 2d_zsh_M11_hx_001_L layer in the Layers panel.
  3. Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar.
  4. The tool automatically renames the 2d_zsh_M11_hx_001_L to 2d_zsh_M11_hx_002_L. Ensure the 'Output Database' is M11_002.gpkg.
  5. Select to 'Remove Source Layer from Workspace' and click 'OK'.
  6. The tool removes the source layer from the Layers panel and the 2d_zsh_M11_hx_002_L appears.
  7. Use the 'Apply TUFLOW Styles to Open Layers'.
  8. Zoom to the downstream road crossing and right click on the layer to toggle on Editing.
  9. Delete the two HX lines that intersect with the creek and digitise two new HX lines joining the existing lines following the bank.
  10. Set the 'Shape_Option' attribute as 'MAX'.
  11. Click 'OK' and turn off editing to save the edits.

    Animation M11 GPKG 002 GIS 02.gif

Increment the boundary condition layer to change the HX boundary at the downstream road:

  1. Load in the 2d_bc_M11_hx_001_L layer from M11_002.gpkg, either:
    • Within the QGIS Browser Panel, navigate to M11_002.gpkg and double click the layer, or
    • In File Explorer, drag and drop the M11_002.gpkg into the QGIS workspace and select the layer.
  2. Select the 2d_bc_M11_hx_001_L layer in the Layers panel.
  3. Click on the ‘Increment Selected Layer’ symbol from the TUFLOW Plugin toolbar.
  4. The tool automatically renames the 2d_bc_M11_hx_001_L to 2d_bc_M11_hx_002_L. Ensure the 'Output Database' is M11_002.gpkg.
  5. Select to 'Remove Source Layer from Workspace' and click 'OK'.
  6. The tool removes the source layer from the Layers panel and the 2d_bc_M11_hx_002_L appears.
  7. Use the 'Apply TUFLOW Styles to Open Layers'.
  8. Zoom to the downstream road crossing and right click on the layer to toggle on Editing.
  9. Water from 1D does not transition to 2D at this location anymore, delete the two HX lines intersecting the open channel. The water at the 1D channel node is transferred to the banks by the CN lines, all four CN lines remain:

    Animation M11 GPKG 002 GIS 03.gif

  10. Create new HX lines connecting the current HX lines on the banks of the open channel:
  11. Click 'OK' and turn off editing to save the edits.

    Animation M11 GPKG 002 GIS 04.gif


Conclusion

  • Two bridges were set up in 1D replacing two culverts within the open channel. The upstream bridge overtops into the 2D domain, the downstream bridge overtops into a 1D weir.
  • The active area, banks elevation and boundary condition layers were updated to model the downstream bridge overtopping in 1D.


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