Tutorial M03: Difference between revisions

Content deleted Content added
 
(5 intermediate revisions by 3 users not shown)
Line 14:
= GIS Inputs =
Create, import and view input data:
:*<u>[[Tutorial_M03_GIS_Inputs_QGIS | QGIS - SHP]]</u>
:*<u>[[Tutorial_M03_GIS_Inputs_QGIS_GPKG | QGIS - GPKG]]</u>
<br>
 
Line 22 ⟶ 23:
<li>Save a copy of the '''M01_001.tbc''' as '''M03_001.tbc''' in the '''Module_03\TUFLOW\model''' folder.
<li>Open the '''M03_001.tbc''' in a text editor and add the additional lines: <br>
<u>'''QGIS - SHP'''</u><br>
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_bc_M03_culverts_001_P.shp</tt></font> <font color="green"><tt> ! Links the 1D culverts to the 2D domain</tt></font> <br>
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_bc_M03_culverts_001_R.shp | gis\2d_bc_M03_culverts_001_L.shp</tt></font> <font color="green"><tt> ! Links the 1D culverts to the 2D domain</tt></font> <br>
<u>'''QGIS - GPKG'''</u><br>
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_bc_M03_culverts_001_P</tt></font> <font color="green"><tt> ! Links the 1D culverts to the 2D domain</tt></font> <br>
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_bc_M03_culverts_001_R | 2d_bc_M03_culverts_001_L</tt></font> <font color="green"><tt> ! Links the 1D culverts to the 2D domain</tt></font> <br>
<li>Save the TBC.
</ol>
Line 33 ⟶ 38:
<li>Create a new text file '''M03_001.ecf''' and save it in the '''Module_03\TUFLOW\model''' folder.
<li>Add the following command lines: <br>
<u>'''QGIS - SHP'''</u><br>
<font color="blue"><tt>Timestep </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>0.5</tt></font> <font color="green"><tt> ! Specifies a 1D computational timestep as 0.5 seconds</tt></font> <br>
<font color="blue"><tt>Read GIS Network </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\gis\1d_nwk_M03_culverts_001_L.shp</tt></font> <font color="green"><tt> ! Defines culverts</tt></font> <li>Save the ECF. <br>
<br>
<u>'''QGIS - GPKG'''</u><br>
<font color="blue"><tt>Timestep </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>0.5</tt></font> <font color="green"><tt> ! Specifies a 1D computational timestep as 0.5 seconds</tt></font> <br>
<font color="blue"><tt>Read GIS Network </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>1d_nwk_M03_culverts_001_L</tt></font> <font color="green"><tt> ! Defines culverts</tt></font>
<li>Save the ECF. <br>
</ol>
 
Line 42 ⟶ 53:
<li>Open the '''M03_5m_001.tcf''' in a text editor and add the following line in the 'Model Inputs' section: <br>
<font color="blue"><tt>ESTRY Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> ..\model\M03_001.ecf </tt></font> <font color="green"><tt> ! Reference the ESTRY (1D) Control File</tt></font> <br>
<li>UpdateMake the following reference of the TBC fileupdates: <br>
<u>'''QGIS - SHP'''</u><br>
<font color="blue"><tt>BC Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M03_001.tbc</tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions Control File</tt></font> <br>
<li><u>'''QGIS - GPKG'''</u><br>
<font color="blue"><tt>Spatial Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> ..\model\gis\M03_001.gpkg </tt></font> <font color="green"><tt>! Specify the location of the GeoPackage Spatial Database</tt></font> <br>
<font color="blue"><tt>BC Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M03_001.tbc</tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions Control File</tt></font> <br>
<li>Save the TCF.
Line 52 ⟶ 67:
<li>Save a copy of '''_run_M02_HPC.bat''' as '''_run_M03_HPC.bat''' in the '''Module_03\TUFLOW\runs''' folder.
<li>Update the batch file to reference the '''M03_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-AA2025.1.0\TUFLOW_iSP_w64.exe"</tt></font> <br>
<font color="blue"><tt>'''set'''</tt></font> <font color="black"><tt>run</tt></font><font color="red"><tt>=</tt></font><font color="black"><tt>start "TUFLOW" /wait</tt></font> <font color="orange"><tt> %exe%</tt></font> <font color="black"><tt> -b</tt></font> <br>
<font color="orange"><tt>%run% </tt></font> <font color="black"><tt>M03_5m_001.tcf </tt></font> <br>
Line 67 ⟶ 82:
= Check Files =
While the model is running, review the added features are specified correctly:
:*<u>[[Tutorial_M03_Check_Files_QGIS | QGIS - SHP]]</u>
:*<u>[[Tutorial_M03_Check_Files_QGIS_GPKG | QGIS - GPKG]]</u>
<br>
 
Line 79 ⟶ 95:
:*Check files were used to review the application of the boundary links.
:*Results through the 1D network structures were assessed to validate the 1D stability.
:*For further training opportunities see <u>[https://tuflow.com/training/training-course-catalogue/ TUFLOW Training Catalogue]</u> and/or contact <u>[mailto:training@tuflow.com training@tuflow.com]</u>. <br>
:*Alternatively, see the <u>[[TUFLOW_Example_Models#Example_Model_Catalogue | TUFLOW Example Models]]</u> to explore the full list of TUFLOW features.
<br>
{{Tips Navigation