TUFLOW SWMM Tutorial M02: Difference between revisions

Content deleted Content added
Line 69:
:*To set the ‘CRS for GeoPackage’: Click the drop down menu and select ‘Project CRS: EPSG:32760 - WGS 84 / UTM zone 60S’.
:*To set the ‘Initial SWMM Sections’: Click the …, and tick on: '''Title''', '''Options''', '''Nodes--Junctions''', '''Nodes--Outfalls''', '''Links--Conduits''', '''Streets''', '''Inlets''' and '''Report'''.
:*To define the ‘GPKG filename to create’: Click the …, select ‘Save to File’. Navigate to the '''TUFLOW\model\swmm''' folder and save the GeoPackage Database as '''TS01_001TS01_002.gpkg'''.
<li>Click ‘Run’.
<li>Once to tool has finished, click ‘Close’.
<li>In File Explorer, navigate to the '''TUFLOW\model\swmm''' folder and drag and drop '''TS01_001TS01_002.gpkg''' into QGIS.
<li>When prompted by QGIS, select '''Links--Conduits''', '''Nodes--Junctions''', '''Nodes--Outfalls''' and '''Options''' (hold Ctrl to select multiple layers). Click ‘Add Layers’.
</ol>
<br>
'''<<video>>'''
{{Video|name=Animation_TS1_SWMM_Inputs_01b.mp4|width=1235}}
<br>
<br>
Line 82 ⟶ 81:
== GIS Data Entry ==
 
A GeoPackage called '''SWMM_CulvertsUrban_Development.gpkg''' is provided in the '''TUFLOW_SWMM_Module_01TUFLOW_SWMM_Module_02\Tutorial_Data''' folder. It contains threesix layers:
:*'''ConduitsPipes:''' defines the culvertunderground pipe network location, type and geometry.
:*'''Junctions:''' defines the upstreampipe culvertsnetwork invertsinlets.
:*'''Outfalls:''' defines the downstreampipe culvertnetwork invertsoutlet.
:*'''2d_ztin_TSWM_Dev_001_R:''' Topography update TIN region extent
:*'''2d_ztin_TSWM_Dev_001_L:''' Topography update TIN lines
:*'''2d_ztin_TSWM_Dev_001_P:''' Topography update TIN point elevations
<br>
To populate the GeoPackage created in the previous section:
<ol>
<li>In Windows Explorer, navigate to the '''TUFLOW_SWMM_Module_01TUFLOW_SWMM_Module_02\Tutorial_Data''' folder. Drag and drop the '''SWMM_CulvertsUrban_Development.gpkg''' into QGIS. By default, all items in the GeoPackage will be selected. Click 'Add Layers'.
<li>In the QGIS Layers Panel, right click on the '''ConduitsPipes''' layer and select 'Zoom to Layer'.
<li>Use the 'Select Features' tool to highlight all items included in '''ConduitsPipes'''.
<li>Select 'Edit' from the top QGIS tab and 'Copy Features' from the drop down manu.
<li>Select the '''Links--Conduits''' layer in the Layers Panel by left clicking on it once.
Line 98 ⟶ 100:
<li>Toggle the editing off to save the edits.<br>
<br>
'''<video>>'''<br>
{{Video|name=Animation_TS1_SWMM_Inputs_02a.mp4|width=1235}}
<br>
<li>Copy the objects from '''Junctions''' into '''Nodes--Junctions'''. Junctions are considered inlets, and should be defined at the upstream end of culverts.
<li>Copy the objects from '''Outfalls''' into '''Nodes--Outfalls'''. Outfalls are treated as outlets, and are required at the downstream end of culverts.
<li> Copy '''2d_ztin_TSWM_Dev_001_R''', '''2d_ztin_TSWM_Dev_001_L''' and '''2d_ztin_TSWM_Dev_001_P''' to '''XXXXXXX'''
<li>Close '''SWMM_CulvertsUrban_Development.gpkg'''
<br><br>
<br>
{{Video|name=Animation_TS1_SWMM_Inputs_03a.mp4|width=1235}}
'''<video>>'''<br>
<br>
<li>Inspect the attribute information within the respective layers to familiarize yourself with the data.<br>
<br>
'''<video>>'''<br>
<br>
<li>Inspect the attribute information within the respective layers to familiarize yourself with the data.
<br><br>
{{Video|name=Animation_TS1_SWMM_Inputs_04a.mp4|width=1235}}
</ol>
<br>
Line 115 ⟶ 119:
The provided GIS data requires numerous updates, prior to our model simulation. We have built these updates into this tutorial to demonstrate some of the available TUFLOW SWMM model built processing tools.
 
The following updates are being made to Objects and Layers within '''TS01_001TS01_002.gpkg'''
===Update Conduit Details===
Step 1 involves updating the ''From Node'' and ''To Node'' attribute information in '''Links--Conduits'''. This information is necessary to "build" the 1D SWMM network. It defines the Link/Node connections. The information we will be adding to '''Links--Conduits''' is extracted from '''Nodes--Junctions''' and '''Nodes--Outfalls''' automatically using the '''Conduits - Assign Node Fields''' tool from the Processing Toolbox.
Line 128 ⟶ 132:
'''Tip:''' If you wish to only update select objects during a future modelling project, instead of the entire '''Link--Conduits''' dataset, select the target objects first using the Feature by Area tool. The ''Conduits - Assign Node Fields'' tool will provide an option to ''Modify Selected Features'', instead of ''Modify All Features.''
<br><br>
'''<<video>'''
{{Video|name=Animation_TS1_SWMM_Inputs_05a.mp4|width=1235}}
<br>
</ol>
Line 137 ⟶ 141:
<ol>
<li>In the QGIS Layers Panel, select (left click) '''Links--Conduits''' and toggle on editing.
<li> '''Update using Processing Tool.'''
<li>Right click '''Links--Conduits''' and select 'Open Attribute Table'.
<li>Update the following fields:
:*losses_Kentry: 0.5
:*losses_Lexit: 1.0
:*losses_Kavg: 0.0
<li>Turn off editing to save the edits.
<br><br>
'''<<video>>'''
{{Video|name=Animation_TS1_SWMM_Inputs_06a.mp4|width=1235}}
</ol>
<br>
An urban pipe network is added to the model in TUFLOW SWMM Module 2. In that situation, different loss attributes are required for the road culverts and underground stormwater pipe network links. To simplify the loss attribute update step in that situation, we will be using the 'Conduits - Assign Node Fields' processing tool. It is however, not necessary for this Module 1 tutorial because all the 1D SWMM inputs are embankment culverts.
<br>
<br>
Line 171 ⟶ 169:
</ol>
<br>
'''<<video>>'''
{{Video|name=Animation_TS1_SWMM_Inputs_07a.mp4|width=1235}}
<br>
 
Line 187 ⟶ 185:
<li>View the attributes associated within '''Nodes--Junctions''' to verify the data processing has been completed correctly.
<br><br>
'''<<video>>'''
{{Video|name=Animation_TS1_SWMM_Inputs_08a.mp4|width=1235}}
<br>
</ol>
 
===Update Streets Details===
 
==SWMM Options==
<ol>
<li> SelectIn the QGIS Layer Panel, select (left click) '''Options''' Layerand intoggle '''TS01_001.gpkg'''on fileediting.
<li>Right click '''Links--ConduitsOptions''' and select 'Open Attribute Table'.
<li> Select Toggle Editing to enable changes to be made to the Layer.
<li>Update the following fields:
 
:*'''Start Date''': 01/01/2020 (USA Date Format: MM/DD/YYY)
<li>Right click the '''Options''' layer in the Layers Panel and select '''Open Attribute Table'''.</li><li> Update the following option:
:*'''Report step''': 00:05:00
*'''Start Date''': 01/01/2020 (USA Date Format: MM/DD/YYY)
<li>Turn off editing to save the edits.
*'''Report step''': 00:05:00
<br><br>
<li>Save and Toggle Editing off.
'''<<video>>'''
<br><br>
</ol>
 
{{Video|name=Animation_update_options_001.mp4|width=1235}}
<br><br>
 
== Export SWMM INP File ==
SWMM does not read '''TS01_001TS02_001.gpkg''' directly as an input GIS file. SWMM requires a INP file.
 
<ol>
<li>RightIn the QGIS Layer Panel, right click '''Links--Conduits''' in the QGIS Layers panel, and select '''''TUFLOW >> 'SWMM - Export inp file'''''. This opens the dialog shown below.
<li>Select '''TS01_001.gpkg''' as the GeoPackage Input File.
<li>Set the SWMM output filename to '''TS01_001TS02_001.inp''' in the '''''TUFLOW/model/swmm''''' folder.
<li>Select "Run", then "Close" after the processing is complete.
</ol>
<br>
'''<<video>>'''
{{Video|name=Animation_create_inp_001.mp4|width=1235}}
<br>
 
= Simulation Control Files =