TUFLOW SWMM Tutorial M01: Difference between revisions

Content deleted Content added
Line 161:
::<li>Click the ... and select 'Save to GeoPackage'.
::<li>Navigate to the '''TUFLOW\model\swmm''' folder and select '''TS01_001.gpkg'''. Click Save.
::<li>A dialog will open. In the Layer Name box, write '''2d_bc_SWMM_Connections_001_L2d_bc_SWMM_Culvert_Connections_001_L'''.
::<li>Click 'OK'.
</ol>
 
<li>Click 'Run'.
<li>Once the tool is finished, click 'Close'.
<li>The '''2d_bc_SWMM_Connections_001_L2d_bc_SWMM_Culvert_Connections_001_L''' appears in the Layers Panel.
</ol>
<br>
Line 178 ⟶ 179:
<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 BC Connection Layer: '''2d_bc_SWMM_Connections_001_L2d_bc_SWMM_Culvert_Connections_001_L'''
:*Nodes connected to 2D without Inlets (Ysur): 0
:*Nodes connected to 2D without Inlets (Apond): 50
 
<li>Select 'Modify All Features'.
<li>Once the tool has finished, click 'Close'.
Line 208 ⟶ 210:
<ol>
<li>In the QGIS Layers Panel, right click '''Links--Conduits''', and select 'TUFLOW' > 'SWMM - Export inp file'. This opens the dialog shown below.
:*GeoPackage Input File: Navigate to the '''TUFLOW\model\swmm''' folder and select '''TS01_001sw01_001.gpkg'''.
:*SWMM output filename: Navigate to the '''TUFLOW\model\swmm''' folder and set the SWMM output filename to '''TS01_001sw01_001.inp'''.
 
<li>Click 'Run'.
<li>Once the tool is finished, click 'Close'.
<li>The '''TS01_001sw01_001.inp''' will now be located in the '''TUFLOW\model\swmm''' folder.
<br><br>
{{Video|name=Animation_TS1_SWMM_Inputs_10a.mp4|width=1235}}
Line 229 ⟶ 232:
<li>Open the '''TS01_5m_001.tcf''' in a text editor. It is recommended to use Notepad++.
<li>Add the following line in the '<font color="green"><tt>Model Inputs</tt></font>' section: <br>
<font color="blue"><tt>SWMM Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> ..\model\TS01_001.tscf </tt></font> <font color="green"><tt> ! Reference the SWMM (1D) Control File</tt></font> <br><li>Make the following reference update: <br>
<li>Add the following line in the '<font color="green"><tt>Output Settings</tt></font>' section: <br>
<font color="blue"><tt>NetCDF Output Start Date </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2020-01-01 00:00 </tt></font> <font color="green"><tt>! Sets the output units for the NetCDF time variable</tt></font> <br>
<li>Make the following reference update: <br>
<font color="blue"><tt>BC Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\TS01_001.tbc</tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions Control File</tt></font> <br>
<li>Add the following line in the '<font color="green"><tt>Output Settings</tt></font>' section: <br>
<li>Save the TCF.
<font color="blue"><tt>NetCDF Output Start Date </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2020-01-01 00:00 </tt></font> <font color="green"><tt>! Sets the output units for the NetCDF time variable</tt></font> <br><li>Save the TCF.
<br><br>
{{Video|name=Animation_TS1_Sim_Control_01a.mp4|width=1235}}<br>
Line 243 ⟶ 244:
<li>From '''TS01_001.tcf''', right click '''TS01_001.tbc''' and select 'Open File'. This opens '''TS01_001.tbc''' into a new tab in Notepad ++.
<li>Add the following command lines after '<font color="blue"><tt>Read GIS SA </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_sa_M01_001_R</tt></font>': <br>
<font color="blue"><tt>Spatial Database</tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>swmm\TS01_001sw01_001.gpkg</tt></font> <font color="green"><tt> ! Specify the location of the GeoPackage Spatial Database</tt></font> <br>
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_bc_SWMM_Culvert_Connections_001_L</tt></font> <font color="green"><tt> ! Links the 1D culverts to the 2D domain</tt></font>
<li>Save the TBC.
Line 255 ⟶ 256:
<li>From '''TS01_001.tcf''', right click '''TS01_001.tscf''' and select 'Open File'. This opens '''TS01_001.tscf''' into a new tab in Notepad ++.
<li>Add the following command: <br>
<font color="blue"><tt>Read SWMM </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>swmm\TS01_001sw01_001.inp</tt></font> <font color="green"><tt> ! 1D SWMM Culvert input file</tt></font> <br>
<li>Save the TSCF.
<br><br>