TUFLOW SWMM Tutorial M01: Difference between revisions
Content deleted Content added
Line 220:
= Simulation Control Files =
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. Set up the simulation control files:
<ol>
<li>Save a copy of '''M01_001.tbc''' as '''TS01_001.
<li>
<li>Save a copy of '''M02_5m_001.tcf''' as '''TS01_5m_001.tcf''' in the '''TUFLOW_SWMM_Module_01\TUFLOW\runs''' folder.
</ol>
=== TUFLOW Control File (TCF) ===▼
<ol>▼
<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>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>Save the TCF.▼
</ol>▼
<font color="red">'''<< Add video >>'''</font>▼
=== TUFLOW Boundary Control File (TBC) ===
<ol>
<li>
<li>Add the following lines after the '<font color="blue"><tt>
▲<li>Save '''M01_001.tbc''' as '''TS01_001.tbc''' in the '''''TUFLOW_SWMM_Module_01\TUFLOW\model''''' folder.
<font color="blue"><tt>Spatial Database</tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>swmm\TS01_001.gpkg</tt></font> <font color="green"><tt> ! Specify the location of the GeoPackage Spatial Database</tt></font> <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>
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_bc_SWMM_Connections_001_L</tt></font> <font color="green"><tt> ! Links the 1D culverts to the 2D domain</tt></font> <br>
<li>Save the TBC.
Line 240 ⟶ 253:
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>
<li>Add the following command
<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>
<li>Save the TSCF. <br>
▲</ol>
▲<font color="red">'''<< Add video >>'''</font>
▲=== TUFLOW Control File (TCF) ===
▲<ol>
▲<li>Open the '''TS01_5m_001.tcf''' in a text editor:<br>
▲Add the following line in the 'Model Inputs' 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>
▲Add the following line in the 'Output Settings' 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>Save the TCF.
</ol>
<font color="red">'''<< Add video >>'''</font>
| |||