TUFLOW SWMM Tutorial M02: Difference between revisions

Content deleted Content added
Line 95:
</ol>
 
When you progress from this tutorial to project modelling, you will need to create an Inlet Usage Layer yourself. The template file for this is available from '''model\gis\empty\swmm_iu_empty.gpkg'''. The file is created during the initial 'Write Empty' step of the model build process (refer to <u>[[Tutorial_M01#Project_Initialisation | TUFLOW Tutorial Model 1]]</u>).
 
The "Inlet" Attribute within the Inlet Usage Layer is an ID reference to inlet geometry and associated information listed within '''sw02_001.gpkg''' >> '''Inlets--Inlet'''. A single inlet type, 'Combo1', was referenced in '''swmm_iu_TS02_001''' (the provided Inlet Usage Layer, '''swmm_iu_TS02_001'''). In recognition of this, we need to create the entry for "Combo1" in the '''Inlets--Inlet''' Layer.
<ol>
<li>In the QGIS Layers Panel, select (left click) '''Inlets--Inlet''' and toggle on editing.
<li>Right click '''Inlets--Inlet''' and select 'Open Attribute Table'.
<li>Click '''Add Feature''' before. enteringEnter the following attributes:
:*Name: Combo1
:*Type: COMBINATION
:*Grate_Length: 1.5
:*Grate_Width: 0.5
:*Grate_Type: P_BAR-50
:*Curb_Length: 1.5
:*Curb_Height: 0.2
:*Curb_Throat: VERTICAL
<li>Turn off editing to save the edits.
</olbr><br>
{{Video|name=|width=1235}}
<br>
</ol>
<font color="red">'''<< Add video >>'''</font>
 
===Update Streets Details===
 
Street cross-section information is needed for SWMM on-grade inlet flow calculations. We referenced aA single street cross-section type innamed the'Xsec1', SWMMis Inletreferenced Usagein file'''swmm_iu_TS02_001''' (via the StreetXSECInlet Usage attributeLayer). We will now defineusing the cross-section'StreetXSEC' detailsfield. for "Xsec1".<br>
We will now define this street cross-section type and its attributes.
 
<ol>
<li>In the QGIS Layers Panel, select (left click) '''Links--Streets''' and toggle on editing.
<li>Right click '''Links--Streets''' and Selectselect '''Open Attribute Table'''.
<li>Click '''Add Feature'''. beforeEnter enteringthethe following attributes:
:* Name: Xsec1
:* Tcrown: 10
:*Hcurb: 0.2
:*Sx: 4
:*nRoad: 0.014
:*a: 0
:*W: 0
:*Sides: 1
:*Tback: 5
:*Sback: 4
:*nBack: 0.016
<li> ToggleTurn off editing andto save the updateedits.
<br><br>
</ol><br><font color="red">'''<< Add video >>'''</font>
{{Video|name=|width=1235}}
<br>
</ol>
 
===Update Conduit Details===
 
Step 1 involves updating theThe ''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.
<ol>
<li>In the QGIS Layers Panel, select (left click) '''Links--Conduits''' and toggle on editing.
Line 147 ⟶ 153:
<li>Once the tool has finished, click 'Close'.
<li>View the attributes associated within '''Links--Conduits''' to verify the data processing has been completed correctly. The ''From Node'' and ''To Node'' attribute information is now configured correctly.<br>
<li> ToggleTurn off editing andto save the updateedits.<br>
</ol>
'''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|name=|width=1235}}
<br>
</ol>
<font color="red">'''<< Add video >>'''</font><br>
 
===Update Losses===
 
Step 2, updateUpdate the loss attributes in the '''Links--Conduits''' Layer. These values will be entered automatically using the '''Conduits - Assign losses''' tool from the Processing Toolbox.
<ol>
<li>In the QGIS Layers Panel, select (left click) '''Links--Conduits''' and toggle on editing.
<li>In the Processing Toolbox, select the 'Edit Features In-Place' tool [[File:edit_features_in_place_icon.png]]. This allows the editing of an existing layer, instead of the creation of a new layer.
<li>Go to TUFLOW > SWMM in the processing tool list and select 'Conduits - Assign losses'. This opens the dialog shown below.
:*Select theInput inlet usage layerfeatures: '''swmm_iu_TS02_001'''.
:*Entrance loss furthest upstream =channels: 0.5
:*Entrance loss for channels not furthest upstream =: 0.2
:*Exit loss furthest downstream =channels: 1.0
:*Exit loss for channels not furthest downstream =: 0.4
<li>Select 'Modify All Features'.
<li>After the tool processing has finished, click 'Close'.
<li>ToggleTurn off editing andto save the updateedits.
<br><br>
{{Video|name=|width=1235}}
<br>
</ol>
 
Line 174 ⟶ 184:
 
<font color="red">'''<< Insert figure of Attribute table highlighting Conn_1D_2D attribute>>'''</font><br>
[[File:]]<br>
 
To compete the pipe network, 1D/2D linkage is needed at the outlet of the pipe network. The 'BC - Create channel endpoint 1D/2D connections' tool will be used to automate his process.
To compete the pipe network 1D/2D linkage is needed at the outlet of the pipe network.
<ol>
<li>In the QGIS Layers Panel, select (left click) '''Links--Conduits''' and toggle on editing.
<li>Use the 'Select Features' tool to select the most downstream object in '''Links--Conduits'''.
<li>In the Processing Toolbox, go to '''TUFLOW > SWMM''' and select '<nowiki/>'''BC - Create channel endpoint 1D/2D connections'''<nowiki/>'. This opens the dialog shown below.
 
<li>In the Processing Toolbox, go to '''TUFLOW > SWMM''' and select '<nowiki/>'''BC - Create channel endpoint 1D/2D connections'''<nowiki/>'. This opens the dialog shown below.
:*Input Conduits Layer: '''Links--Conduits'''
:*Tick: Selecton 'Selected features only'
:*Offset Distance: 2
:*Length of BC lines: 10
:*Tick: on 'Set 2D cell elevation to 1D culevrtculvert invert at 1D/2D connection cells if needed'.
:*Output Layer:
<ol>
Line 194 ⟶ 203:
::<li>Click 'OK'.
</ol>
 
 
 
 
 
 
 
 
 
 
 
 
<li>Click 'Run'.
<li>Once the tool is finished, click 'Close'.
<li>The '''2d_bc_SWMM_Pipe_Network_Connections_001_L''' should appearappears in the Layers Panel. Left click the Layer and toggle on editing.
<li>ToggleTurn off editing andto save the updateedits.
<li>The BC - Create channel endpoint 1D/2D connections tool has created 1D connections at the upstream and downstream end of the selected pipe. We only require the downstream outlet objects. All pipe network inlets have already been defined in '''swmm_iu_TS02_001'''. Delete the two CN and single HX line from the upstream end of the pipe.
<br><br>
 
{{Video|name=|width=1235}}
<li>Toggle off editing and save the update.
<br>
 
<li>Select (left click) '''2d_bc_SWMM_Pipe_Network_Connections_001_L''' and toggle on editing.
<li>The 'BC - Create channel endpoint 1D/2D connections' tool has created 1D connections at the upstream and downstream end of the selected pipe. We only require the downstream outlet objects. Allas all pipe network inlets have already beenare defined in '''swmm_iu_TS02_001'''. Delete the two CN and single HX line from the upstream end of the pipe.
<li>Delete the two CN and single HX lines from the upstream end of the pipe.
<li>ToggleTurn off editing andto save the updateedits.
<br><br>
{{Video|name=|width=1235}}
<br>
</ol>
<br><font color="red">'''<< Add video >>'''</font><br>
 
===Update SWMM Junction Details===
Line 221 ⟶ 224:
<li>In the QGIS Layers Panel, select (left click) '''Nodes--Junctions''' and toggle on editing.
<li>In the Processing Toolbox, select the 'Edit Features In-Place' tool. This allows the editing of an existing layer, instead of the creation of a new layer.
<li>Go to TUFLOW > SWMM in the processing tool list and select '''Junctions - Set attributes''' processing tool. This opens the dialog shown below.
:*Input Inlet Usage Layers: '''swmm_iu_TS02_001'''
:*Input BC Connection LayerLayers: '''2d_bc_SWMM_Pipe_Network_Connections_001_L'''
:*Nodes connected to 2D with Inlets (Ysur): 0
:*Nodes connected to 2D with Inlets (Area of ponding): 5
Line 230 ⟶ 233:
:*Nodes without 2D Connection (Surcharge Depth): 50
:*Nodes without 2D Connection (Area of ponding): 0
 
 
<li>Select 'Modify All Features'.
<li>Once the tool has finished, click 'Close'.
<li>Turn off editing to save the edits.
<li>View the attributes associated within '''Nodes--Junctions''' to verify the data processing has been completed correctly.
<br><br>
<li>Toggle off editing and save the update.
{{Video|name=|width=1235}}
<br><br><font color="red">'''<< Add video >>'''</font><br>
<br>
</ol>