Tutorial M05: Difference between revisions

Content deleted Content added
No edit summary
Line 16:
= GIS Inputs =
Create, import and view input data:
:*<u>[[Tutorial_M05_GIS_Inputs_QGIS | QGIS - SHP]]</u>
:*<u>[[Tutorial_M05_GIS_Inputs_QGIS_GPKG | QGIS - GPKG]]</u>
<br>
 
Line 58 ⟶ 59:
<ol>
<li>Save a copy of '''M02_001.tgc''' as '''M05_001.tgc''' in the '''Module_05\TUFLOW\model''' folder.
<li>Open the file '''M05_001.tgc''' in a text editor and add the additional linesline below the '<font color="blue"><tt>Read GIS Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_zsh_M02_rd_crest_001_L.shp | gis\2d_zsh_M02_rd_crest_001_P.shp</tt></font>' command: <br>
<u>'''QGIS - SHP'''</u><br>
<font color="blue"><tt>Create TIN Zpts </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_zsh_M02_landscape_002_R.shp | gis\2d_zsh_M02_landscape_002_L.shp | gis\2d_zsh_M02_landscape_002_P.shp</tt></font> <font color="green"><tt> ! Defines areas of complex landscaping</tt></font> <br>
<u>'''QGIS - GPKG'''</u><br>
<li>Add in the following line after the '<font color="blue"><tt>Read GIS Mat </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_mat_M01_001_R.shp</tt></font>' command.<br>
<font color="blue"><tt>Create TIN Zpts </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_zsh_M02_landscape_002_R | 2d_zsh_M02_landscape_002_L | 2d_zsh_M02_landscape_002_P</tt></font> <font color="green"><tt> ! Defines areas of complex landscaping</tt></font> <br>
<li>Add in the following line after the '<font color="blue"><tt>Read GIS Mat </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_mat_M01_001_R.shp</tt></font>' command.<br>
<u>'''QGIS - SHP'''</u><br>
<font color="blue"><tt>Read GIS Mat </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_mat_M02_landscape_002_R.shp </tt></font> <font color="green"><tt> ! Sets the material values according to attributes in the GIS layer</tt></font> <br>
<u>'''QGIS - GPKG'''</u><br>
<font color="blue"><tt>Read GIS Mat </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_mat_M02_landscape_002_R </tt></font> <font color="green"><tt> ! Sets the material values according to attributes in the GIS layer</tt></font> <br>
Assigns the updated materials values due to the development.
<li>Save the TGC.
Line 71 ⟶ 78:
<li>Save a copy of '''M01_001.tbc''' as '''M05_001.tbc''' in the '''Module_05\TUFLOW\model''' folder.
<li>Open the file '''M05_001.tbc''' in a text editor and add the following two commands:<br>
<u>'''QGIS - SHP'''</u><br>
<font color="blue"><tt>Read GIS SA PITS </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_sa_M05_001_R.shp</tt></font> <font color="green"><tt> ! Reads in 2D boundaries directly to 1D pits</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_M05_outlet_001_L.shp</tt></font> <font color="green"><tt> ! Reads in 2D boundaries from 1D network</tt></font> <br>
<u>'''QGIS - GPKG'''</u><br>
<font color="blue"><tt>Read GIS SA PITS </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_sa_M05_001_R</tt></font> <font color="green"><tt> ! Reads in 2D boundaries directly to 1D pits</tt></font> <br>
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_bc_M05_outlet_001_L</tt></font> <font color="green"><tt> ! Reads in 2D boundaries from 1D network</tt></font> <br>
<li>Save the TBC.
</ol>
Line 82 ⟶ 93:
<li>Create a new text file called '''M05_001.ecf''' and save it in the '''Module_05\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>gis\1d_nwk_M05_pipes_001_L.shp</tt></font> <font color="green"><tt> ! Defines pipes</tt></font> <br>
<font color="blue"><tt>Read GIS Network </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\1d_nwk_M05_pits_001_P.shp</tt></font> <font color="green"><tt> ! Defines pits </tt></font> <br>
<font color="blue"><tt>Pit Inlet Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\pit_dbase\pit_inlet_dbase.csv</tt></font> <font color="green"><tt> ! Pit inlet database defining depth-discharge curves </tt></font> <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_M05_pipes_001_L</tt></font> <font color="green"><tt> ! Defines pipes</tt></font> <br>
<font color="blue"><tt>Read GIS Network </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>1d_nwk_M05_pits_001_P</tt></font> <font color="green"><tt> ! Defines pits </tt></font> <br>
<font color="blue"><tt>Pit Inlet Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\pit_dbase\pit_inlet_dbase.csv</tt></font> <font color="green"><tt> ! Pit inlet database defining depth-discharge curves </tt></font> <br>
<li>Save the ECF.
Line 96 ⟶ 113:
<li>Open the file '''M05_5m_001.tcf''' in a text editor and add the following line:<br>
<font color="blue"><tt>ESTRY Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M05_001.ecf</tt></font> <font color="green"><tt> ! Reference the ESTRY (1D) Control File </tt></font> <br>
<li>UpdateMake the following reference of the TGC and TBC files in the 'Model Inputs' sectionupdates:<br>
<u>'''QGIS - SHP'''</u><br>
<font color="blue"><tt>Geometry Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M05_001.tgc</tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File </tt></font> <br>
<font color="blue"><tt>BC Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M05_001.tbc</tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions Control File </tt></font> <br>
<font color="blue"><tt>BC Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\bc_dbase\bc_dbase_M05_001.csv </tt></font> <font color="green"><tt> ! Reference the Boundary Conditions Database </tt></font> <br>
<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\M05_001.gpkg</tt></font> <font color="green"><tt> ! Specify the location of the GeoPackage Spatial Database</tt></font> <br>
<font color="blue"><tt>Geometry Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M05_001.tgc</tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File </tt></font> <br>
<font color="blue"><tt>BC Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M05_001.tbc</tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions Control File </tt></font> <br>
<li>Update the reference to the bc database:<br>
<font color="blue"><tt>BC Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\bc_dbase\bc_dbase_M05_001.csv </tt></font> <font color="green"><tt> ! Reference the Boundary Conditions Database </tt></font> <br>
<li>Save the TCF.
Line 123 ⟶ 145:
= Check Files =
While the model is running, review the added features are specified correctly:
:*<u>[[Tutorial_M05_Check_Files_QGIS | QGIS - SHP]]</u>
:*<u>[[Tutorial_M05_Check_Files_QGIS_GPKG | QGIS - GPKG]]</u>
<br>