TUFLOW SWMM Tutorial M01: Difference between revisions
Content deleted Content added
Chris Huxley (talk | contribs) |
Chris Huxley (talk | contribs) No edit summary |
||
Line 2:
In this module, three culverts are added to represent flow through three separate road embankments. EPA SWMM is used as the solution scheme for the 1D culvert flow calculations, dynamically linked with the TUFLOW HPC 2D solution scheme. <br>
TUFLOW SWMM Tutorial Module 1 builds from the model created in <u>[[Tutorial_M02 |TUFLOW Tutorial Module 2]]</u> (in the TUFLOW Only tutorial dataset). The completed Module 2 model is provided in the '''''TUFLOW_SWMM_Module_01\TUFLOW''''' folder of the download dataset as the starting point for this tutorial. If you are not already familiar with TUFLOW, we recommend first completing Module 1 and 2 of the <u>[[Tutorial_Introduction | "TUFLOW Only" Tutorials]]</u> to establish an understanding of 2D modelling, before progressing to learning how to link 1D EPA SWMM to 2D TUFLOW. <br>
= QGIS Project Initialization =
Line 23:
==Create SWMM GeoPackage Spatial Database==
<ol>
<li>Create a new folder in the '''''TUFLOW_SWMM_Module_01\TUFLOW\model''''' folder called '''swmm'''. This is the location where all SWMM inputs will be saved.<li>Open QGIS and select Processing >> Toolbox from the top drop menu options to open the Processing Toolbox panel.
<li>From the '''TUFLOW >> SWMM''' processing tool list, select '''GeoPackage-Create'''. <br>
<li>Within the GeoPackage-Create options, set the following:
*'''CRS for GeoPackage''' = Project CRS: EPSG:32760 - WGS 84/UTM zone 60S
*'''Initial SWMM Sections''', click on the '''...''' button, then select:
*'''GPKG file name to create''', click on the '''...''' button, select '''Save to File...'''. Navigate to the newly created swmm folder and set the SWMM GeoPackage Spatial Database name to '''TS01_001.gpkg'''
* Select '''Run'''. After the processing task is complete, select '''Close'''.
<li>Open the new SWMM GeoPackage Spatial Database in QGIS by dragging and dropping '''
</li></ol>
<font color="red">'''<< Add video >>'''</font>
== GIS Data Entry ==
Navigate to the '''''TUFLOW_SWMM_Module_01\Tutorial_Data''''' folder in Windows Explorer. Drag and drop '''SWMM_Culverts.gpkg''' into QGIS to open the file. SWMM_Culverts.gpkg includes three Layers, Links-Conduits, Nodes-Junctions and Nodes-Outfall. Links-Conduits defines the culvert location, type and geometry. Nodes-Junction define the upstream culverts inverts. Nodes-Outfall define the downstream culvert inverts.
Complete the following steps:
Line 140:
<ol>
<li>Right click '''Links--Conduits''' in the QGIS Layers panel, and select '''''TUFLOW >> SWMM - Export inp file'''''.
<li>Select '''TS01_001.gpkg''' as the GeoPackage Input File.
<li>Set the SWMM output filename to '''TS01_001.inp''' in the '''''TUFLOW/model/swmm''''' folder.
<li>Select "Run", then "Close" after the processing is complete.
</ol>
Line 151:
To differentiate the TUFLOW SWMM tutorials from the TUFLOW/ESTRY tutorials, TS will be used as the new file prefix in this series of tutorials.
<ol>
<li>Save '''M01_001.tbc''' as '''TS01_001.tbc''' in the '''''TUFLOW_SWMM_Module_01\TUFLOW\model''''' folder.
<li>Open '''TS01_001.tbc''' in a text editor and add the additional lines: <br>
<font color="blue"><tt>Spatial Database</tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>swmm\TS01_001.gpkg</tt></font><br>
Line 162:
A new control file, the TUFLOW SWMM Control File (TSCF), is introduced. SWMM is a 1D hydraulic solver. All 1D SWMM files and commands are referenced in the TUFLOW SWMM Control File.<br>
<ol>
<li>Create a new text file called '''TS01_001.tscf''', saved in the '''''TUFLOW_SWMM_Module_01\TUFLOW\model''''' folder.
<li>Add the following command lines: <br>
<font color="blue"><tt>Read SWMM </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>swmm\TS01_001.inp</tt></font> <font color="green"><tt> ! 1D SWMM input file</tt></font> <br>
Line 171:
=== TUFLOW Control File (TCF) ===
<ol>
<li>Save a copy of the '''M02_5m_001.tcf''' as '''TS01_5m_001.tcf''' in the '''''TUFLOW_SWMM_Module_01\TUFLOW\runs''''' folder.
<li>Open the '''TS01_5m_001.tcf''' in a text editor:<br>
Add the following line in the 'Model Inputs' section: <br>
Line 185:
= Running the Simulation =
<ol>
<li>Save a copy of '''_run_M02_HPC.bat''' as '''_run_TS01_HPC.bat''' in the '''''TUFLOW_SWMM_Module_01\TUFLOW\runs''''' folder.
<li>Update the batch file to reference the '''TS01_5m_001.tcf''' :<br>
<font color="blue"><tt>'''set'''</tt></font> <font color="black"><tt>exe</tt></font><font color="red"><tt>=</tt></font><font color="black"><tt>"..\..\..\exe\2023-03-AD\TUFLOW_iSP_w64.exe"</tt></font><br>
|