Difference between revisions of "Tutorial M10"
(11 intermediate revisions by 3 users not shown) | |||
Line 30: | Line 30: | ||
== GIS Inputs == | == GIS Inputs == | ||
Create, import and view input data: | Create, import and view input data: | ||
− | :*<u>[[Tutorial_M10_001_GIS_Inputs_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_M10_001_GIS_Inputs_QGIS | QGIS - SHP]]</u> |
+ | :*<u>[[Tutorial_M10_001_GIS_Inputs_QGIS_GPKG | QGIS - GPKG]]</u> | ||
== Simulation Control Files == | == Simulation Control Files == | ||
Line 37: | Line 38: | ||
<li>Save a copy of '''M02_001.tgc''' as '''M10_001.tgc''' in the '''Module_10\TUFLOW\model''' folder. <br> | <li>Save a copy of '''M02_001.tgc''' as '''M10_001.tgc''' in the '''Module_10\TUFLOW\model''' folder. <br> | ||
<li>Open the '''M10_001.tgc''' in a text editor. | <li>Open the '''M10_001.tgc''' in a text editor. | ||
− | <li>Include the following commands after the <font color="blue"><tt>Read GIS Z Shape </tt></font> < | + | <li>Include the following commands after the '<font color="blue"><tt>Read GIS Z Shape</tt></font>' command:<br> |
+ | <u>'''QGIS - SHP'''</u><br> | ||
<font color="blue"><tt>Read GIS Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_zsh_M10_damwall_001_L.shp </tt></font><font color="green"><tt> ! Creates dam embankment</tt></font><br> | <font color="blue"><tt>Read GIS Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_zsh_M10_damwall_001_L.shp </tt></font><font color="green"><tt> ! Creates dam embankment</tt></font><br> | ||
− | <font color="blue"><tt>Read GIS Variable Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_vzsh_M10_dambreak_001_R.shp </tt></font><font color="green"><tt> ! Creates dam break</tt></font> | + | <font color="blue"><tt>Read GIS Variable Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_vzsh_M10_dambreak_001_R.shp </tt></font><font color="green"><tt> ! Creates dam break</tt></font> <br> |
+ | <u>'''QGIS - GPKG'''</u><br> | ||
+ | <font color="blue"><tt>Read GIS Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_zsh_M10_damwall_001_L </tt></font><font color="green"><tt> ! Creates dam embankment</tt></font><br> | ||
+ | <font color="blue"><tt>Read GIS Variable Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_vzsh_M10_dambreak_001_R </tt></font><font color="green"><tt> ! Creates dam break</tt></font> | ||
<li>Save the TGC. | <li>Save the TGC. | ||
</ol> | </ol> | ||
Line 48: | Line 53: | ||
<li>Open the '''M10_001.tbc''' in a text editor. | <li>Open the '''M10_001.tbc''' in a text editor. | ||
<li>Update the reference to the 2D boundaries:<br> | <li>Update the reference to the 2D boundaries:<br> | ||
− | <font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_bc_M10_001_L.shp </tt></font><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_M10_001_L.shp </tt></font></tt></font> <font color="green"><tt> ! Reads in 2D boundaries</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_M10_001_L </tt></font></tt></font> <font color="green"><tt> ! Reads in 2D boundaries</tt></font><br> | ||
+ | |||
<li>Include a reference to the new 2D source area boundary:<br> | <li>Include a reference to the new 2D source area boundary:<br> | ||
+ | <u>'''QGIS - SHP'''</u><br> | ||
<font color="blue"><tt>Read GIS SA </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_sa_M10_inflow_001_R.shp </tt></font> <font color="green"><tt> ! Reads in 2D source area boundaries</tt></font> <br> | <font color="blue"><tt>Read GIS SA </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_sa_M10_inflow_001_R.shp </tt></font> <font color="green"><tt> ! Reads in 2D source area boundaries</tt></font> <br> | ||
+ | <u>'''QGIS - GPKG'''</u><br> | ||
+ | <font color="blue"><tt>Read GIS SA </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_sa_M10_inflow_001_R </tt></font> <font color="green"><tt> ! Reads in 2D source area boundaries</tt></font> <br> | ||
<li>Save the TBC. | <li>Save the TBC. | ||
</ol> | </ol> | ||
Line 57: | Line 69: | ||
<ol> | <ol> | ||
<li>Save a copy of '''M02_5m_001.tcf''' as '''M10_5m_001.tcf''' in the '''Module_10\TUFLOW\runs''' folder. | <li>Save a copy of '''M02_5m_001.tcf''' as '''M10_5m_001.tcf''' in the '''Module_10\TUFLOW\runs''' folder. | ||
− | <li>Open the '''M10_5m_001.tcf''' in a text editor and | + | <li>Open the '''M10_5m_001.tcf''' in a text editor and make the following reference updates: <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\M10_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\M10_001.tbc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions Control File</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\M10_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\M10_001.tgc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File</tt></font> <br> | <font color="blue"><tt>Geometry Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M10_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\M10_001.tbc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions 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\M10_001.tbc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions Control File</tt></font> <br> | ||
<li>An Initial Water Level command is required. Include the following command after the 'Model Inputs' section: <br> | <li>An Initial Water Level command is required. Include the following command after the 'Model Inputs' section: <br> | ||
+ | <u>'''QGIS - SHP'''</u><br> | ||
<font color="green"><tt>! INITIAL WATER LEVEL</tt></font><br> | <font color="green"><tt>! INITIAL WATER LEVEL</tt></font><br> | ||
<font color="blue"><tt>Read GIS IWL </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\gis\2d_iwl_M10_001_R.shp </tt></font> <font color="green"><tt> ! Reads in initial water level</tt></font> <br> | <font color="blue"><tt>Read GIS IWL </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\gis\2d_iwl_M10_001_R.shp </tt></font> <font color="green"><tt> ! Reads in initial water level</tt></font> <br> | ||
+ | <u>'''QGIS - GPKG'''</u><br> | ||
+ | <font color="green"><tt>! INITIAL WATER LEVEL</tt></font><br> | ||
+ | <font color="blue"><tt>Read GIS IWL </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_iwl_M10_001_R </tt></font> <font color="green"><tt> ! Reads in initial water level</tt></font> <br> | ||
<li>Add bathymetry (ZH) as additional Map Output Data Type:<br> | <li>Add bathymetry (ZH) as additional Map Output Data Type:<br> | ||
<font color="blue"><tt>Map Output Data Types </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> h V d dt ZH </tt></font> <font color="green"><tt> ! Outputs water levels, velocities, depths, minimum timestep, bathymetry</tt></font> <br> | <font color="blue"><tt>Map Output Data Types </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> h V d dt ZH </tt></font> <font color="green"><tt> ! Outputs water levels, velocities, depths, minimum timestep, bathymetry</tt></font> <br> | ||
Line 73: | Line 93: | ||
<li>Save a copy of '''_run_M02_HPC.bat''' as '''_run_M10_HPC.bat''' in the '''Module_10\TUFLOW\runs''' folder. | <li>Save a copy of '''_run_M02_HPC.bat''' as '''_run_M10_HPC.bat''' in the '''Module_10\TUFLOW\runs''' folder. | ||
<li>Update the batch file to reference the '''M10_5m_001.tcf''' :<br> | <li>Update the batch file to reference the '''M10_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- | + | <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-AF\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="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>M10_5m_001.tcf </tt></font> <br> | <font color="orange"><tt>%run% </tt></font> <font color="black"><tt>M10_5m_001.tcf </tt></font> <br> | ||
Line 85: | Line 105: | ||
== Check Files == | == Check Files == | ||
While the model is running, review the added features are specified correctly: | While the model is running, review the added features are specified correctly: | ||
− | :*<u>[[Tutorial_M10_001_Check_Files_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_M10_001_Check_Files_QGIS | QGIS - SHP]]</u> |
+ | :*<u>[[Tutorial_M10_001_Check_Files_QGIS_GPKG | QGIS - GPKG]]</u> | ||
== Results== | == Results== | ||
Line 98: | Line 119: | ||
== GIS Inputs == | == GIS Inputs == | ||
Create, import and view input data: | Create, import and view input data: | ||
− | :*<u>[[Tutorial_M10_002_GIS_Inputs_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_M10_002_GIS_Inputs_QGIS | QGIS - SHP]]</u> |
+ | :*<u>[[Tutorial_M10_002_GIS_Inputs_QGIS_GPKG | QGIS - GPKG]]</u> | ||
== Simulation Control Files == | == Simulation Control Files == | ||
Line 106: | Line 128: | ||
<li>Open the '''M10_002.tgc''' in a text editor. | <li>Open the '''M10_002.tgc''' in a text editor. | ||
<li>Update the reference to the Variable Z Shape:<br> | <li>Update the reference to the Variable Z Shape:<br> | ||
− | <font color="blue"><tt>Read GIS Variable Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_vzsh_M10_dambreak_002_R.shp | gis\2d_vzsh_M10_dambreak_002_P.shp </tt></font><font color="green"><tt> ! Creates dam break</tt></font> | + | <u>'''QGIS - SHP'''</u><br> |
+ | <font color="blue"><tt>Read GIS Variable Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_vzsh_M10_dambreak_002_R.shp | gis\2d_vzsh_M10_dambreak_002_P.shp </tt></font><font color="green"><tt> ! Creates dam break</tt></font> <br> | ||
+ | <u>'''QGIS - GPKG'''</u><br> | ||
+ | <font color="blue"><tt>Read GIS Variable Z Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_vzsh_M10_dambreak_002_R | 2d_vzsh_M10_dambreak_002_P </tt></font><font color="green"><tt> ! Creates dam break</tt></font> <br> | ||
<li>Save the TGC. | <li>Save the TGC. | ||
</ol> | </ol> | ||
Line 113: | Line 138: | ||
<ol> | <ol> | ||
<li>Save a copy of '''M10_5m_001.tcf''' as '''M10_5m_002.tcf''' in the '''Module_10\TUFLOW\runs''' folder. | <li>Save a copy of '''M10_5m_001.tcf''' as '''M10_5m_002.tcf''' in the '''Module_10\TUFLOW\runs''' folder. | ||
− | <li>Open the '''M10_5m_002.tcf''' in a text editor and | + | <li>Open the '''M10_5m_002.tcf''' in a text editor and make the following reference updates: <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\M10_002.tgc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File</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\M10_002.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\M10_002.tgc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File</tt></font> <br> | <font color="blue"><tt>Geometry Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M10_002.tgc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File</tt></font> <br> | ||
<li>Save the TCF. | <li>Save the TCF. | ||
Line 122: | Line 151: | ||
<li>Open '''_run_M10_HPC.bat''' in a text editor from the '''Module_10\TUFLOW\runs''' folder. | <li>Open '''_run_M10_HPC.bat''' in a text editor from the '''Module_10\TUFLOW\runs''' folder. | ||
<li>Update the batch file to reference the '''M10_5m_002.tcf''' :<br> | <li>Update the batch file to reference the '''M10_5m_002.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- | + | <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-AF\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="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>M10_5m_002.tcf </tt></font> <br> | <font color="orange"><tt>%run% </tt></font> <font color="black"><tt>M10_5m_002.tcf </tt></font> <br> | ||
Line 134: | Line 163: | ||
== Check Files == | == Check Files == | ||
While the model is running, review the added features are specified correctly: | While the model is running, review the added features are specified correctly: | ||
− | :*<u>[[Tutorial_M10_002_Check_Files_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_M10_002_Check_Files_QGIS | QGIS - SHP]]</u> |
+ | :*<u>[[Tutorial_M10_002_Check_Files_QGIS_GPKG | QGIS - GPKG]]</u> | ||
== Results== | == Results== | ||
Line 158: | Line 188: | ||
== GIS Inputs == | == GIS Inputs == | ||
Create, import and view input data: | Create, import and view input data: | ||
− | :*<u>[[Tutorial_M10_003_GIS_Inputs_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_M10_003_GIS_Inputs_QGIS | QGIS - SHP]]</u> |
+ | :*<u>[[Tutorial_M10_003_GIS_Inputs_QGIS_GPKG | QGIS - GPKG]]</u> | ||
== Simulation Control Files == | == Simulation Control Files == | ||
Line 167: | Line 198: | ||
*Pipe Failure control commands contained within the '<font color="blue"><tt>Define Pipe Failure Control</tt></font> <font color="red"><tt> ==</tt></font> <font color="black"><tt> PF01</tt></font>' logic block: | *Pipe Failure control commands contained within the '<font color="blue"><tt>Define Pipe Failure Control</tt></font> <font color="red"><tt> ==</tt></font> <font color="black"><tt> PF01</tt></font>' logic block: | ||
:*The piping failure is triggered when the water level at the upstream node of the 1d_nwk PF01 line is greater than 59.5m. | :*The piping failure is triggered when the water level at the upstream node of the 1d_nwk PF01 line is greater than 59.5m. | ||
− | :*The piping failure takes 0.5 hours to reach | + | :*The piping failure takes 0.5 hours to reach its full extent (defined by the width and height attributes in the 1d_nwk layer). |
− | :*Once the piping failure reaches | + | :*Once the piping failure reaches its full extent, it takes 60 seconds to collapse. |
:*The default shape of the piping failure is rectangular. | :*The default shape of the piping failure is rectangular. | ||
:*The discharge coefficient (Cd) is set to 0.6. | :*The discharge coefficient (Cd) is set to 0.6. | ||
Line 175: | Line 206: | ||
:*An initial collapse to a depth of 3m occurs within 60 seconds. | :*An initial collapse to a depth of 3m occurs within 60 seconds. | ||
:*Following the initial collapse the dam fails in a trapezoidal shape, with a side slope of 60 degrees, to a depth of 20 metres and a top width fully breached of 25 metres over a period of 0.5 hours. The top width fully breached can be set smaller than the 'Width_or_Dia' attribute if the maximum breach width does not reach the total width of the dam crest. <br> | :*Following the initial collapse the dam fails in a trapezoidal shape, with a side slope of 60 degrees, to a depth of 20 metres and a top width fully breached of 25 metres over a period of 0.5 hours. The top width fully breached can be set smaller than the 'Width_or_Dia' attribute if the maximum breach width does not reach the total width of the dam crest. <br> | ||
− | For more information on the commands contained within the TOC refer to | + | For more information on the commands contained within the TOC refer to the <u>[https://docs.tuflow.com/classic-hpc/manual/latest/ TUFLOW Manual]</u>.</ol> |
===TUFLOW Estry Control File (ECF) === | ===TUFLOW Estry Control File (ECF) === | ||
Line 182: | Line 213: | ||
<li>Create a new text file '''M10_003.ecf''' in the '''Module_10\TUFLOW\model''' folder. | <li>Create a new text file '''M10_003.ecf''' in the '''Module_10\TUFLOW\model''' folder. | ||
<li>Add the following command lines: <br> | <li>Add the following command lines: <br> | ||
+ | <u>'''QGIS - SHP'''</u><br> | ||
<font color="green"><tt>! 1D TIME CONTROL</tt></font><br> | <font color="green"><tt>! 1D TIME CONTROL</tt></font><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>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> | ||
Line 193: | Line 225: | ||
<font color="green"><tt>! 1D DAMBREAK</tt></font><br> | <font color="green"><tt>! 1D DAMBREAK</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_M10_dambreak_003_L.shp</tt></font> <font color="green"><tt>! Defines 1D dambreak</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_M10_dambreak_003_L.shp</tt></font> <font color="green"><tt>! Defines 1D dambreak</tt></font><br> | ||
+ | |||
+ | <u>'''QGIS - GPKG'''</u><br> | ||
+ | <font color="green"><tt>! 1D TIME CONTROL</tt></font><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="green"><tt>! MODEL INPUTS</tt></font><br> | ||
+ | <font color="blue"><tt>Read Operating Controls File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> ..\model\M10_003.toc</tt></font> <font color="green"><tt>! Reference the TUFLOW Operations Control File</tt></font><br> | ||
+ | |||
+ | <font color="green"><tt>! 1D PIPING FAILURE</tt></font><br> | ||
+ | <font color="blue"><tt>Read GIS Network </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>1d_nwk_M10_piping_003_L</tt></font> <font color="green"><tt>! Defines 1D piping failure</tt></font><br> | ||
+ | |||
+ | <font color="green"><tt>! 1D DAMBREAK</tt></font><br> | ||
+ | <font color="blue"><tt>Read GIS Network </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>1d_nwk_M10_dambreak_003_L</tt></font> <font color="green"><tt>! Defines 1D dambreak</tt></font><br> | ||
<li>Save the ECF. <br> | <li>Save the ECF. <br> | ||
Line 202: | Line 247: | ||
<li>Open the '''M10_003.tgc''' in a text editor. | <li>Open the '''M10_003.tgc''' in a text editor. | ||
<li>Comment out or delete the reference to the Variable Z Shape, the dam failure is controlled within the ECF and TOC files:<br> | <li>Comment out or delete the reference to the Variable Z Shape, the dam failure is controlled within the ECF and TOC files:<br> | ||
− | <font color="green"><tt>! Read GIS Variable Z Shape == gis\2d_vzsh_M10_dambreak_001_R.shp </tt></font> | + | <u>'''QGIS - SHP'''</u><br> |
+ | <font color="green"><tt>! Read GIS Variable Z Shape == gis\2d_vzsh_M10_dambreak_001_R.shp </tt></font> <br> | ||
+ | <u>'''QGIS - GPKG'''</u><br> | ||
+ | <font color="green"><tt>! Read GIS Variable Z Shape == 2d_vzsh_M10_dambreak_001_R </tt></font> | ||
<li>Save the TGC. | <li>Save the TGC. | ||
</ol> | </ol> | ||
Line 211: | Line 259: | ||
<li>Open the '''M10_003.tbc''' in a text editor. | <li>Open the '''M10_003.tbc''' in a text editor. | ||
<li>Include a reference to the new 1D/2D boundary:<br> | <li>Include a reference to the new 1D/2D boundary:<br> | ||
+ | <u>'''QGIS - SHP'''</u><br> | ||
<font color="green"><tt> ! INTERNAL 1D/2D BOUNDARIES </tt></font><br> | <font color="green"><tt> ! INTERNAL 1D/2D BOUNDARIES </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_M10_piping_dambreak_003_L.shp </tt></font> <font color="green"><tt> ! Links the 1D piping and dambreak 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_M10_piping_dambreak_003_L.shp </tt></font> <font color="green"><tt> ! Links the 1D piping and dambreak to the 2D domain</tt></font> <br> | ||
+ | <u>'''QGIS - GPKG'''</u><br> | ||
+ | <font color="green"><tt> ! INTERNAL 1D/2D BOUNDARIES </tt></font><br> | ||
+ | <font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_bc_M10_piping_dambreak_003_L </tt></font> <font color="green"><tt> ! Links the 1D piping and dambreak to the 2D domain</tt></font> <br> | ||
<li>Save the TBC. | <li>Save the TBC. | ||
</ol> | </ol> | ||
Line 221: | Line 273: | ||
<li>Open the '''M10_5m_003.tcf''' in a text editor. | <li>Open the '''M10_5m_003.tcf''' in a text editor. | ||
<li>Include a reference of the ECF in the 'Model Inputs' section: <br> | <li>Include a reference of the ECF 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\M10_003.ecf </tt></font> <font color="green"><tt> ! Reference the ESTRY (1D) Control | + | <font color="blue"><tt>ESTRY Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M10_003.ecf </tt></font> <font color="green"><tt> ! Reference the ESTRY (1D) Control File</tt></font><br> |
− | <li> | + | <li>Make the following reference updates: <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\M10_003.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\M10_003.tbc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions Control File</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\M10_003.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\M10_003.tgc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File</tt></font> <br> | <font color="blue"><tt>Geometry Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M10_003.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\M10_003.tbc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions 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\M10_003.tbc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions Control File</tt></font> <br> | ||
<li>Save the TCF. | <li>Save the TCF. | ||
Line 233: | Line 289: | ||
<li>Open '''_run_M10_HPC.bat''' in a text editor from the '''Module_10\TUFLOW\runs''' folder. | <li>Open '''_run_M10_HPC.bat''' in a text editor from the '''Module_10\TUFLOW\runs''' folder. | ||
<li>Update the batch file to reference the '''M10_5m_003.tcf''' :<br> | <li>Update the batch file to reference the '''M10_5m_003.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- | + | <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-AF\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="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>M10_5m_003.tcf </tt></font> <br> | <font color="orange"><tt>%run% </tt></font> <font color="black"><tt>M10_5m_003.tcf </tt></font> <br> | ||
Line 241: | Line 297: | ||
== Troubleshooting == | == Troubleshooting == | ||
See tips on common mistakes and troubleshooting steps if the model doesn't run: | See tips on common mistakes and troubleshooting steps if the model doesn't run: | ||
− | :*<u>[[Tutorial_Troubleshooting_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_Troubleshooting_QGIS | QGIS ]]</u> |
== Check Files == | == Check Files == | ||
While the model is running, review the added features are specified correctly: | While the model is running, review the added features are specified correctly: | ||
− | :*<u>[[Tutorial_M10_003_Check_Files_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_M10_003_Check_Files_QGIS | QGIS - SHP]]</u> |
+ | :*<u>[[Tutorial_M10_003_Check_Files_QGIS_GPKG | QGIS - GPKG]]</u> | ||
Review the 1D output file: | Review the 1D output file: | ||
<ol> | <ol> | ||
Line 275: | Line 332: | ||
== GIS Inputs == | == GIS Inputs == | ||
Create, import and view input data: | Create, import and view input data: | ||
− | :*<u>[[Tutorial_M10_004_GIS_Inputs_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_M10_004_GIS_Inputs_QGIS | QGIS - SHP]]</u> |
+ | :*<u>[[Tutorial_M10_004_GIS_Inputs_QGIS_GPKG | QGIS - GPKG]]</u> | ||
== Simulation Control Files == | == Simulation Control Files == | ||
Line 283: | Line 341: | ||
<li>Open the '''M10_004.tgc''' in a text editor. | <li>Open the '''M10_004.tgc''' in a text editor. | ||
<li>Comment out or delete the reference to the Variable Z Shape:<br> | <li>Comment out or delete the reference to the Variable Z Shape:<br> | ||
− | <font color="green"><tt>! Read GIS Variable Z Shape == gis\2d_vzsh_M10_dambreak_001_R.shp </tt></font> | + | <u>'''QGIS - SHP'''</u><br> |
+ | <font color="green"><tt>! Read GIS Variable Z Shape == gis\2d_vzsh_M10_dambreak_001_R.shp </tt></font> <br> | ||
+ | <u>'''QGIS - GPKG'''</u><br> | ||
+ | <font color="green"><tt>! Read GIS Variable Z Shape == 2d_vzsh_M10_dambreak_001_R </tt></font> <br> | ||
<li>Save the TGC. | <li>Save the TGC. | ||
</ol> | </ol> | ||
Line 292: | Line 353: | ||
<li>Open the '''M10_004.tbc''' in a text editor. | <li>Open the '''M10_004.tbc''' in a text editor. | ||
<li>Comment out or delete the reference to the upstream 2d_sa inflow and internal 2d_sa inflows representing the four flows on the internal catchments, the module is simulating flow from the dam break only:<br> | <li>Comment out or delete the reference to the upstream 2d_sa inflow and internal 2d_sa inflows representing the four flows on the internal catchments, the module is simulating flow from the dam break only:<br> | ||
+ | <u>'''QGIS – SHP'''</u><br> | ||
<font color="green"><tt>! Read GIS SA == gis\2d_sa_M01_001_R.shp </tt></font><br> | <font color="green"><tt>! Read GIS SA == gis\2d_sa_M01_001_R.shp </tt></font><br> | ||
<font color="green"><tt>! Read GIS SA == gis\2d_sa_M10_inflow_001_R.shp </tt></font><br> | <font color="green"><tt>! Read GIS SA == gis\2d_sa_M10_inflow_001_R.shp </tt></font><br> | ||
+ | <u>'''QGIS – GPKG'''</u><br> | ||
+ | <font color="green"><tt>! Read GIS SA == 2d_sa_M01_001_R </tt></font><br> | ||
+ | <font color="green"><tt>! Read GIS SA == 2d_sa_M10_inflow_001_R </tt></font><br> | ||
<li>Include a reference to the new 2D source area boundary representing the flow from the dam break:<br> | <li>Include a reference to the new 2D source area boundary representing the flow from the dam break:<br> | ||
+ | <u>'''QGIS – SHP'''</u><br> | ||
<font color="blue"><tt>Read GIS SA </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_sa_M10_dambreak_004_R.shp </tt></font> <font color="green"><tt> ! Reads in 2D source area boundaries</tt></font> <br> | <font color="blue"><tt>Read GIS SA </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_sa_M10_dambreak_004_R.shp </tt></font> <font color="green"><tt> ! Reads in 2D source area boundaries</tt></font> <br> | ||
+ | <u>'''QGIS – GPKG'''</u><br> | ||
+ | <font color="blue"><tt>Read GIS SA </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_sa_M10_dambreak_004_R </tt></font> <font color="green"><tt> ! Reads in 2D source area boundaries</tt></font> <br> | ||
<li>Save the TBC. | <li>Save the TBC. | ||
</ol> | </ol> | ||
Line 317: | Line 385: | ||
<ol> | <ol> | ||
<li>Save a copy of '''M10_5m_001.tcf''' as '''M10_5m_004.tcf''' in the '''Module_10\TUFLOW\runs''' folder. | <li>Save a copy of '''M10_5m_001.tcf''' as '''M10_5m_004.tcf''' in the '''Module_10\TUFLOW\runs''' folder. | ||
− | <li>Open the '''M10_5m_004.tcf''' in a text editor. | + | <li>Open the '''M10_5m_004.tcf''' in a text editor and make the following reference updates:<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\M10_004.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\M10_004.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_M10_004.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\M10_004.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\M10_004.tgc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File</tt></font> <br> | <font color="blue"><tt>Geometry Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M10_004.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\M10_004.tbc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Boundary Conditions 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\M10_004.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_M10_004.csv </tt></font> <font color="green"><tt> ! Reference the Boundary Conditions Database</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_M10_004.csv </tt></font> <font color="green"><tt> ! Reference the Boundary Conditions Database</tt></font> <br> | ||
<li>A Timestep Maximum command is required in some dam break models to ensure the timestep does not get too large during periods where cells are dry (causing the model to become unstable). Include the command in the 'Time Control' section: <br> | <li>A Timestep Maximum command is required in some dam break models to ensure the timestep does not get too large during periods where cells are dry (causing the model to become unstable). Include the command in the 'Time Control' section: <br> | ||
− | <font color="blue"><tt>Timestep Maximum </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2 | + | <font color="blue"><tt>Timestep Maximum </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2</tt></font> <font color="green"><tt> ! Specifies a maximum timestep of 2 seconds</tt></font> <br> |
<li>Comment out or delete the reference to the Initial Water Level:<br> | <li>Comment out or delete the reference to the Initial Water Level:<br> | ||
− | <font color="green"><tt>! Read GIS IWL == ..\model\gis\2d_iwl_M10_001_R.shp ! Reads in initial water level </tt></font> | + | <u>'''QGIS – SHP'''</u><br> |
+ | <font color="green"><tt>! Read GIS IWL == ..\model\gis\2d_iwl_M10_001_R.shp ! Reads in initial water level </tt></font> <br> | ||
+ | <u>'''QGIS – GPKG'''</u><br> | ||
+ | <font color="green"><tt>! Read GIS IWL == 2d_iwl_M10_001_R ! Reads in initial water level </tt></font> | ||
<li>Save the TCF. | <li>Save the TCF. | ||
</ol> | </ol> | ||
Line 335: | Line 409: | ||
<li>Open '''_run_M10_HPC.bat''' in a text editor from the '''Module_10\TUFLOW\runs''' folder. | <li>Open '''_run_M10_HPC.bat''' in a text editor from the '''Module_10\TUFLOW\runs''' folder. | ||
<li>Update the batch file to reference the '''M10_5m_004.tcf''' :<br> | <li>Update the batch file to reference the '''M10_5m_004.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- | + | <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-AF\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="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>M10_5m_004.tcf </tt></font> <br> | <font color="orange"><tt>%run% </tt></font> <font color="black"><tt>M10_5m_004.tcf </tt></font> <br> | ||
Line 347: | Line 421: | ||
== Check Files == | == Check Files == | ||
While the model is running, review the added features are specified correctly: | While the model is running, review the added features are specified correctly: | ||
− | :*<u>[[Tutorial_M10_004_Check_Files_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_M10_004_Check_Files_QGIS | QGIS - SHP]]</u> |
+ | :*<u>[[Tutorial_M10_004_Check_Files_QGIS_GPKG | QGIS - GPKG]]</u> | ||
== Results== | == Results== | ||
Line 383: | Line 458: | ||
<li>Open '''_run_M10_HPC.bat''' in a text editor from the '''Module_10\TUFLOW\runs''' folder. | <li>Open '''_run_M10_HPC.bat''' in a text editor from the '''Module_10\TUFLOW\runs''' folder. | ||
<li>Update the batch file to reference the '''M10_5m_005.tcf''':<br> | <li>Update the batch file to reference the '''M10_5m_005.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- | + | <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-AF\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="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>M10_5m_005.tcf </tt></font> <br> | <font color="orange"><tt>%run% </tt></font> <font color="black"><tt>M10_5m_005.tcf </tt></font> <br> | ||
Line 399: | Line 474: | ||
<li>Search for 'Viscosity Formulation' and review the input values:<br> | <li>Search for 'Viscosity Formulation' and review the input values:<br> | ||
<br> | <br> | ||
− | [[File: | + | [[File:M10_005_Check_01b.png]]<br> |
</ol> | </ol> | ||
Latest revision as of 10:30, 23 September 2024
Introduction
In this module, five ways of modelling dam break are introduced:
- Part 1: 2D Variable Geometry Time Trigger - the dam break begins at 1 hour and develops over 15 minutes.
- Part 2: 2D Variable Geometry Water Level Trigger - the dam break begins when the water level at a point is triggered.
- Part 3: 1D Piping Failure and 1D Dam Failure - introduces the TUFLOW Operations Control file (TOC).
- Part 4: Boundary Condition Breach Hydrograph - the dam break is modelled using an input dam break hydrograph.
- Part 5: Non-Newtonian - Part 4 using Non-Newtonian fluid properties.
The GIS layers are:
- TGC layers:
- 2d_zsh: A layer used to modify Zpt elevations using points and lines.
- 2d_vzsh: A layer used to modify Zpt elevations over time to simulate breaking of embankments.
- TCF layers:
- 2d_iwl: A layer used to set 2D initial water levels spatially.
- TBC layers:
- 2d_sa: A layer used to apply a flow versus time hydrograph to simulate a breach condition.
- 2d_bc: A layer used to apply a head vs flow (stage-discharge) boundary - used as the downstream boundary.
- ECF layers:
- 1d_nwk: A layer used to define the 1D piping failure and 1D dam failure.
Module 10 builds from the model created in Module 2. The completed Module 2 model is provided in the Module_10\TUFLOW folder.
Part 1 - 2D Variable Geometry Time Trigger
Simulate a simple form of dam break using a time trigger.
GIS Inputs
Create, import and view input data:
Simulation Control Files
TUFLOW Geometry Control File (TGC)
- Save a copy of M02_001.tgc as M10_001.tgc in the Module_10\TUFLOW\model folder.
- Open the M10_001.tgc in a text editor.
- Include the following commands after the 'Read GIS Z Shape' command:
QGIS - SHP
Read GIS Z Shape == gis\2d_zsh_M10_damwall_001_L.shp ! Creates dam embankment
Read GIS Variable Z Shape == gis\2d_vzsh_M10_dambreak_001_R.shp ! Creates dam break
QGIS - GPKG
Read GIS Z Shape == 2d_zsh_M10_damwall_001_L ! Creates dam embankment
Read GIS Variable Z Shape == 2d_vzsh_M10_dambreak_001_R ! Creates dam break - Save the TGC.
TUFLOW Boundary Control File (TBC)
- Save a copy of M01_001.tbc as M10_001.tbc in the Module_10\TUFLOW\model folder.
- Open the M10_001.tbc in a text editor.
- Update the reference to the 2D boundaries:
QGIS - SHP
Read GIS BC == gis\2d_bc_M10_001_L.shp ! Reads in 2D boundaries
QGIS - GPKG
Read GIS BC == 2d_bc_M10_001_L ! Reads in 2D boundaries
- Include a reference to the new 2D source area boundary:
QGIS - SHP
Read GIS SA == gis\2d_sa_M10_inflow_001_R.shp ! Reads in 2D source area boundaries
QGIS - GPKG
Read GIS SA == 2d_sa_M10_inflow_001_R ! Reads in 2D source area boundaries
- Save the TBC.
TUFLOW Control File (TCF)
- Save a copy of M02_5m_001.tcf as M10_5m_001.tcf in the Module_10\TUFLOW\runs folder.
- Open the M10_5m_001.tcf in a text editor and make the following reference updates:
QGIS - SHP
Geometry Control File == ..\model\M10_001.tgc ! Reference the TUFLOW Geometry Control File
BC Control File == ..\model\M10_001.tbc ! Reference the TUFLOW Boundary Conditions Control File
QGIS - GPKG
Spatial Database == ..\model\gis\M10_001.gpkg ! Specify the location of the GeoPackage Spatial Database
Geometry Control File == ..\model\M10_001.tgc ! Reference the TUFLOW Geometry Control File
BC Control File == ..\model\M10_001.tbc ! Reference the TUFLOW Boundary Conditions Control File
- An Initial Water Level command is required. Include the following command after the 'Model Inputs' section:
QGIS - SHP
! INITIAL WATER LEVEL
Read GIS IWL == ..\model\gis\2d_iwl_M10_001_R.shp ! Reads in initial water level
QGIS - GPKG
! INITIAL WATER LEVEL
Read GIS IWL == 2d_iwl_M10_001_R ! Reads in initial water level
- Add bathymetry (ZH) as additional Map Output Data Type:
Map Output Data Types == h V d dt ZH ! Outputs water levels, velocities, depths, minimum timestep, bathymetry
- Save the TCF.
Running the Simulation
- Save a copy of _run_M02_HPC.bat as _run_M10_HPC.bat in the Module_10\TUFLOW\runs folder.
- Update the batch file to reference the M10_5m_001.tcf :
set exe="..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe"
set run=start "TUFLOW" /wait %exe% -b
%run% M10_5m_001.tcf
- Save the batch file and double click it in file explorer to run the simulation.
Troubleshooting
See tips on common mistakes and troubleshooting steps if the model doesn't run:
Check Files
While the model is running, review the added features are specified correctly:
Results
When the model is finished, review the results:
Part 2 - 2D Variable Geometry Water Level Trigger
Simulate a simple form of dam break using a water level trigger.
Part 2 builds from the model created in Part 1.
GIS Inputs
Create, import and view input data:
Simulation Control Files
TUFLOW Geometry Control File (TGC)
- Save a copy of M10_001.tgc as M10_002.tgc in the Module_10\TUFLOW\model folder.
- Open the M10_002.tgc in a text editor.
- Update the reference to the Variable Z Shape:
QGIS - SHP
Read GIS Variable Z Shape == gis\2d_vzsh_M10_dambreak_002_R.shp | gis\2d_vzsh_M10_dambreak_002_P.shp ! Creates dam break
QGIS - GPKG
Read GIS Variable Z Shape == 2d_vzsh_M10_dambreak_002_R | 2d_vzsh_M10_dambreak_002_P ! Creates dam break
- Save the TGC.
TUFLOW Control File (TCF)
- Save a copy of M10_5m_001.tcf as M10_5m_002.tcf in the Module_10\TUFLOW\runs folder.
- Open the M10_5m_002.tcf in a text editor and make the following reference updates:
QGIS - SHP
Geometry Control File == ..\model\M10_002.tgc ! Reference the TUFLOW Geometry Control File
QGIS - GPKG
Spatial Database == ..\model\gis\M10_002.gpkg ! Specify the location of the GeoPackage Spatial Database
Geometry Control File == ..\model\M10_002.tgc ! Reference the TUFLOW Geometry Control File
- Save the TCF.
Running the Simulation
- Open _run_M10_HPC.bat in a text editor from the Module_10\TUFLOW\runs folder.
- Update the batch file to reference the M10_5m_002.tcf :
set exe="..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe"
set run=start "TUFLOW" /wait %exe% -b
%run% M10_5m_002.tcf
- Save the batch file and double click it in file explorer to run the simulation.
Troubleshooting
See tips on common mistakes and troubleshooting steps if the model doesn't run:
Check Files
While the model is running, review the added features are specified correctly:
Results
When the model is finished, review the results:
Part 3 - 1D Piping Failure and 1D Dam Failure
Dam breaks can be triggered by flow overtopping, as well as internal erosion (often called piping) when water seepages through the embankment forming a small flowpath. Simulate a 1D piping failure that transitions to a 1D dam failure - trapezoidal cross section failure using a 1D operational channel.
Part 3 builds from the model created in Part 1.
1D Piping Failure:
1D Dam Failure:
GIS Inputs
Create, import and view input data:
Simulation Control Files
TUFLOW Operations Control (TOC)
- Navigate to the Module_10\Tutorial_Data folder. Copy the M10_003.toc into the Module_10\TUFLOW\model folder. This file contains the commands specific to the operational controls.
- Open the M10_003.toc. A summary of the defining logic blocks:
- Pipe Failure control commands contained within the 'Define Pipe Failure Control == PF01' logic block:
- The piping failure is triggered when the water level at the upstream node of the 1d_nwk PF01 line is greater than 59.5m.
- The piping failure takes 0.5 hours to reach its full extent (defined by the width and height attributes in the 1d_nwk layer).
- Once the piping failure reaches its full extent, it takes 60 seconds to collapse.
- The default shape of the piping failure is rectangular.
- The discharge coefficient (Cd) is set to 0.6.
- Dam Failure control commands contained within the 'Define Dam Failure Control == DF01' logic block:
- The dam failure is triggered when the pipe failure at PF01 reaches 99.9% complete.
- An initial collapse to a depth of 3m occurs within 60 seconds.
- Following the initial collapse the dam fails in a trapezoidal shape, with a side slope of 60 degrees, to a depth of 20 metres and a top width fully breached of 25 metres over a period of 0.5 hours. The top width fully breached can be set smaller than the 'Width_or_Dia' attribute if the maximum breach width does not reach the total width of the dam crest.
TUFLOW Estry Control File (ECF)
A new control file, the ESTRY Control File (ECF), is introduced. ESTRY is TUFLOW’s 1D hydraulic solver and includes all of the 1D files and commands.
- Create a new text file M10_003.ecf in the Module_10\TUFLOW\model folder.
- Add the following command lines:
QGIS - SHP
! 1D TIME CONTROL
Timestep == 0.5 ! Specifies a 1D computational timestep as 0.5 seconds
! MODEL INPUTS
Read Operating Controls File == ..\model\M10_003.toc ! Reference the TUFLOW Operations Control File
! 1D PIPING FAILURE
Read GIS Network == gis\1d_nwk_M10_piping_003_L.shp ! Defines 1D piping failure
! 1D DAMBREAK
Read GIS Network == gis\1d_nwk_M10_dambreak_003_L.shp ! Defines 1D dambreak
QGIS - GPKG
! 1D TIME CONTROL
Timestep == 0.5 ! Specifies a 1D computational timestep as 0.5 seconds
! MODEL INPUTS
Read Operating Controls File == ..\model\M10_003.toc ! Reference the TUFLOW Operations Control File
! 1D PIPING FAILURE
Read GIS Network == 1d_nwk_M10_piping_003_L ! Defines 1D piping failure
! 1D DAMBREAK
Read GIS Network == 1d_nwk_M10_dambreak_003_L ! Defines 1D dambreak
- Save the ECF.
TUFLOW Geometry Control File (TGC)
- Save a copy of M10_001.tgc as M10_003.tgc in the Module_10\TUFLOW\model folder.
- Open the M10_003.tgc in a text editor.
- Comment out or delete the reference to the Variable Z Shape, the dam failure is controlled within the ECF and TOC files:
QGIS - SHP
! Read GIS Variable Z Shape == gis\2d_vzsh_M10_dambreak_001_R.shp
QGIS - GPKG
! Read GIS Variable Z Shape == 2d_vzsh_M10_dambreak_001_R - Save the TGC.
TUFLOW Boundary Control File (TBC)
- Save a copy of M01_001.tbc as M10_003.tbc in the Module_10\TUFLOW\model folder.
- Open the M10_003.tbc in a text editor.
- Include a reference to the new 1D/2D boundary:
QGIS - SHP
! INTERNAL 1D/2D BOUNDARIES
Read GIS BC == gis\2d_bc_M10_piping_dambreak_003_L.shp ! Links the 1D piping and dambreak to the 2D domain
QGIS - GPKG
! INTERNAL 1D/2D BOUNDARIES
Read GIS BC == 2d_bc_M10_piping_dambreak_003_L ! Links the 1D piping and dambreak to the 2D domain
- Save the TBC.
TUFLOW Control File (TCF)
- Save a copy of M10_5m_001.tcf as M10_5m_003.tcf in the Module_10\TUFLOW\runs folder.
- Open the M10_5m_003.tcf in a text editor.
- Include a reference of the ECF in the 'Model Inputs' section:
ESTRY Control File == ..\model\M10_003.ecf ! Reference the ESTRY (1D) Control File
- Make the following reference updates:
QGIS - SHP
Geometry Control File == ..\model\M10_003.tgc ! Reference the TUFLOW Geometry Control File
BC Control File == ..\model\M10_003.tbc ! Reference the TUFLOW Boundary Conditions Control File
QGIS - GPKG
Spatial Database == ..\model\gis\M10_003.gpkg ! Specify the location of the GeoPackage Spatial Database
Geometry Control File == ..\model\M10_003.tgc ! Reference the TUFLOW Geometry Control File
BC Control File == ..\model\M10_003.tbc ! Reference the TUFLOW Boundary Conditions Control File
- Save the TCF.
Running the Simulation
- Open _run_M10_HPC.bat in a text editor from the Module_10\TUFLOW\runs folder.
- Update the batch file to reference the M10_5m_003.tcf :
set exe="..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe"
set run=start "TUFLOW" /wait %exe% -b
%run% M10_5m_003.tcf
- Save the batch file and double click it in file explorer to run the simulation.
Troubleshooting
See tips on common mistakes and troubleshooting steps if the model doesn't run:
Check Files
While the model is running, review the added features are specified correctly:
Review the 1D output file:
- Open the M10_5m_003.eof from the Module_10\TUFLOW\results folder in a text editor.
- Review the 1D Dam Failure Coefficients and Culvert and Pipe Data:
Results
When the model is finished, review the results:
Review the Operational structure time-series data:
- Open the M10_5m_003_1d_O.csv from the Module_10\TUFLOW\results\csv folder.
- The file reports the time varying status of the pipe and dam failure, and the resulting flows and dimensions:
- The dam failure is triggered by the percent completion of the pipe failure, it begins when the pipe failure ends.
- The 'Flow Intact' column is flow overtopping the dam that occurs before the dam break, in this example the dam does not overtop. The 'Flow Failed' column is the flow during and after the dam break.
- After approximately 1.5 hours the dam failure is 'Fully Open', the 'Breach Depth' is 20m, 'Top Width' is 25m, 'Bottom Width' is 1.9m.
- After approximately 1.5 hours the dam failure is 'Fully Open', the 'Breach Depth' is 20m, 'Top Width' is 25m, 'Bottom Width' is 1.9m.
Part 4 - Boundary Condition Breach Hydrograph
Simulate a dam break using an inflow hydrograph. All other inflows are removed from the model.
Part 4 builds from the model created in Part 1.
GIS Inputs
Create, import and view input data:
Simulation Control Files
TUFLOW Geometry Control File (TGC)
- Save a copy of M10_001.tgc as M10_004.tgc in the Module_10\TUFLOW\model folder.
- Open the M10_004.tgc in a text editor.
- Comment out or delete the reference to the Variable Z Shape:
QGIS - SHP
! Read GIS Variable Z Shape == gis\2d_vzsh_M10_dambreak_001_R.shp
QGIS - GPKG
! Read GIS Variable Z Shape == 2d_vzsh_M10_dambreak_001_R
- Save the TGC.
TUFLOW Boundary Control File (TBC)
- Save a copy of M10_001.tbc as M10_004.tbc in the Module_10\TUFLOW\model folder.
- Open the M10_004.tbc in a text editor.
- Comment out or delete the reference to the upstream 2d_sa inflow and internal 2d_sa inflows representing the four flows on the internal catchments, the module is simulating flow from the dam break only:
QGIS – SHP
! Read GIS SA == gis\2d_sa_M01_001_R.shp
! Read GIS SA == gis\2d_sa_M10_inflow_001_R.shp
QGIS – GPKG
! Read GIS SA == 2d_sa_M01_001_R
! Read GIS SA == 2d_sa_M10_inflow_001_R
- Include a reference to the new 2D source area boundary representing the flow from the dam break:
QGIS – SHP
Read GIS SA == gis\2d_sa_M10_dambreak_004_R.shp ! Reads in 2D source area boundaries
QGIS – GPKG
Read GIS SA == 2d_sa_M10_dambreak_004_R ! Reads in 2D source area boundaries
- Save the TBC.
TUFLOW Boundary Condition Database (bc_dbase)
Update the bc_dbase with a reference to the dam break hydrograph:
- Navigate to the Module_10\Tutorial_Data folder. Copy the dambreak_M10_004.csv into the Module_10\TUFLOW\bc_dbase folder. This file contains the dam break hydrograph applied at the 2d_sa polygon.
- Save a copy of bc_dbase.csv as bc_dbase_M10_004.csv in the Module_10\TUFLOW\bc_dbase folder.
- Open the bc_dbase_M10_004.csv file and add the additional inflow data to row 8:
- Save the bc_dbase.
TUFLOW Control File (TCF)
- Save a copy of M10_5m_001.tcf as M10_5m_004.tcf in the Module_10\TUFLOW\runs folder.
- Open the M10_5m_004.tcf in a text editor and make the following reference updates:
QGIS – SHP
Geometry Control File == ..\model\M10_004.tgc ! Reference the TUFLOW Geometry Control File
BC Control File == ..\model\M10_004.tbc ! Reference the TUFLOW Boundary Conditions Control File
BC Database == ..\bc_dbase\bc_dbase_M10_004.csv ! Reference the Boundary Conditions Database
QGIS – GPKG
Spatial Database == ..\model\gis\M10_004.gpkg ! Specify the location of the GeoPackage Spatial Database
Geometry Control File == ..\model\M10_004.tgc ! Reference the TUFLOW Geometry Control File
BC Control File == ..\model\M10_004.tbc ! Reference the TUFLOW Boundary Conditions Control File
BC Database == ..\bc_dbase\bc_dbase_M10_004.csv ! Reference the Boundary Conditions Database
- A Timestep Maximum command is required in some dam break models to ensure the timestep does not get too large during periods where cells are dry (causing the model to become unstable). Include the command in the 'Time Control' section:
Timestep Maximum == 2 ! Specifies a maximum timestep of 2 seconds
- Comment out or delete the reference to the Initial Water Level:
QGIS – SHP
! Read GIS IWL == ..\model\gis\2d_iwl_M10_001_R.shp ! Reads in initial water level
QGIS – GPKG
! Read GIS IWL == 2d_iwl_M10_001_R ! Reads in initial water level - Save the TCF.
Running the Simulation
- Open _run_M10_HPC.bat in a text editor from the Module_10\TUFLOW\runs folder.
- Update the batch file to reference the M10_5m_004.tcf :
set exe="..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe"
set run=start "TUFLOW" /wait %exe% -b
%run% M10_5m_004.tcf
- Save the batch file and double click it in file explorer to run the simulation.
Troubleshooting
See tips on common mistakes and troubleshooting steps if the model doesn't run:
Check Files
While the model is running, review the added features are specified correctly:
Results
When the model is finished, review the results:
Part 5 - Non-Newtonian
TUFLOW supports the modelling of Non-Newtonian fluids. It is a fluid that does not follow Newton's law of viscosity (i.e. constant viscosity independent of stress). The viscosity can change when under force to behave either more liquid or more solid. This can occur in a dam break due to the sediment contained within the dam.
For more information, see Section 5.4 of the latest Release Notes and watch the Tsunami and Dam Failure and Non-Newtonian Modelling video (from 36 minutes).
Part 5 builds from the model created in Part 4.
Simulation Control Files
TUFLOW Control File (TCF)
- Save a copy of M10_5m_004.tcf as M10_5m_005.tcf in the Module_10\TUFLOW\runs folder.
- Open the M10_5m_005.tcf in a text editor.
- Include the following commands to turn on the Non-Newtonian viscosity formulation and specify the viscosity coefficients, at the end of the TCF:
! NON-NEWTONIAN
Viscosity Formulation == Non-Newtonian ! Specifies Non-Newtonian viscosity formulation
Viscosity Coefficients == 60, 1, 0, 1000, 600 ! Specifies viscosity coefficients: k, n, muLow, muHigh, tau0
Where:- k: viscosity coefficient (Pa.s^n)
- 𝑛: shear thickening exponent, must be non zero and positive (shear thinning fluids exhibit 𝑛 < 1, shear thickening 𝑛 > 1, and Newtonian fluids 𝑛 = 1)
- muLow: lower viscosity limit (Pa.s)
- muHigh: higher viscosity limit (Pa.s)
- tau0: shear yield stress (Pa)
- Save the TCF.
Running the Simulation
- Open _run_M10_HPC.bat in a text editor from the Module_10\TUFLOW\runs folder.
- Update the batch file to reference the M10_5m_005.tcf:
set exe="..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe"
set run=start "TUFLOW" /wait %exe% -b
%run% M10_5m_005.tcf
- Save the batch file and double click it in file explorer to run the simulation.
Troubleshooting
See tips on common mistakes and troubleshooting steps if the model doesn't run:
Check Files
While the model is running, review the added features are specified correctly:
- Open the M10_5m_005.tlf from the Module_10\TUFLOW\runs\log folder in a text editor.
- Search for 'Viscosity Formulation' and review the input values:
Results
When the model is finished, review the results:
Conclusion
- A dam break was modelled using five methods - time trigger, water level trigger, 1D piping and dam failure using a TUFLOW Operations Control (TOC), using an inflow hydrograph and with Non-Newtonian flow.
- Non-Newtonian flow was modelled and results compared to Newtonian flow.
- TUFLOW log files and GIS layers were used to check the dam break was modelled correctly.
- New bathymetry map output and 1D operational structure time series data were inspected.
Up |
---|
Back to Tutorial Introduction Main Page |