Difference between revisions of "Tutorial M04 draft"
(9 intermediate revisions by the same user not shown) | |||
Line 89: | Line 89: | ||
= Part 2 - 2D Bridge Structure = | = Part 2 - 2D Bridge Structure = | ||
+ | Part 2 replaces the 2d_lfcsh layer representing the bridge with a 2d_bg layer. | ||
+ | |||
== GIS Inputs == | == GIS Inputs == | ||
Create, import and view input data:<br> | Create, import and view input data:<br> | ||
− | :*<u>[[ | + | :*<u>[[Tutorial_M04_002_GIS_Inputs_QGIS_draft | QGIS - SHP]]</u> |
− | :*<u>[[ | + | :*<u>[[Tutorial_M04_002_GIS_Inputs_QGIS_GPKG_draft | QGIS - GPKG]]</u> |
<br> | <br> | ||
Line 98: | Line 100: | ||
=== TUFLOW Geometry Control File (TGC) === | === TUFLOW Geometry Control File (TGC) === | ||
<ol> | <ol> | ||
− | <li>Save a copy of ''' | + | <li>Save a copy of '''M04_001.tgc''' as '''M04_002.tgc''' in the '''Module_04\TUFLOW\model''' folder. |
− | <li>Open the '''M04_002.tgc''' in a text editor and add the | + | <li>Open the '''M04_002.tgc''' in a text editor |
+ | <li> Comment out the Read GIS Layered FC Shape command and add the Read GIS BG Shape command: <br> | ||
<u>'''QGIS - SHP'''</u><br> | <u>'''QGIS - SHP'''</u><br> | ||
− | <font color=" | + | <font color="green"><tt>! Read GIS Layered FC Shape == gis\2d_lfcsh_M04_bridge_001_L.shp</tt></font><br> |
− | <font color="blue"><tt>Read GIS BG Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\ | + | <font color="blue"><tt>Read GIS BG Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_bg_M04_002_L.shp</tt></font> <font color="green"><tt> ! Bridge structure representing 2D bridge losses</tt></font> <br> |
<u>'''QGIS - GPKG'''</u><br> | <u>'''QGIS - GPKG'''</u><br> | ||
− | <font color=" | + | <font color="green"><tt>! Read GIS Layered FC Shape == 2d_lfcsh_M04_bridge_001_L</tt></font><br> |
− | <font color="blue"><tt>Read GIS BG Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> | + | <font color="blue"><tt>Read GIS BG Shape </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_bg_M04_002_L</tt></font> <font color="green"><tt> ! Bridge structure representing 2D bridge losses</tt></font> <br> |
<li>Save the TGC. | <li>Save the TGC. | ||
</ol> | </ol> | ||
− | + | ||
=== TUFLOW Control File (TCF) === | === TUFLOW Control File (TCF) === | ||
<ol> | <ol> | ||
− | <li>Save a copy of ''' | + | <li>Save a copy of '''M04_5m_001.tcf''' as '''M04_5m_002.tcf''' in the '''Module_04\TUFLOW\runs''' folder. |
<li>Open the '''M04_5m_002.tcf''' in a text editor and make the following reference updates: <br> | <li>Open the '''M04_5m_002.tcf''' in a text editor and make the following reference updates: <br> | ||
<u>'''QGIS - SHP'''</u> <br> | <u>'''QGIS - SHP'''</u> <br> | ||
Line 119: | Line 122: | ||
<font color="blue"><tt>Spatial Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\gis\M04_002.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>..\model\gis\M04_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\M04_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\M04_002.tgc</tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File</tt></font> <br> | ||
− | <li> | + | <li> Add the following line in the 'Model Inputs' section: <br> |
− | + | <font color="blue"><tt>Blank BG FLC Approach </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>METHOD A</tt></font> <font color="green"><tt> ! Automatic superstructure FLC values will be calculated based on the ratio of the depth of the pier layer</tt></font> <br> | |
− | |||
− | |||
− | |||
− | <font color="blue"><tt> | ||
− | |||
<li>Save the TCF. | <li>Save the TCF. | ||
</ol> | </ol> | ||
Line 132: | Line 130: | ||
== Running the Simulation == | == Running the Simulation == | ||
<ol> | <ol> | ||
− | + | <li>Update the batch file created in the first part of Module 4 to reference the '''M04_5m_002.tcf''' file.<br> | |
− | <li>Update the batch file to reference the ''' | ||
− | |||
− | |||
− | |||
<li>Save the batch file and double click it in file explorer to run the simulation. | <li>Save the batch file and double click it in file explorer to run the simulation. | ||
</ol> | </ol> | ||
Line 148: | Line 142: | ||
== 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>[[ | + | :*<u>[[Tutorial_M04_002_Check_Files_QGIS_draft | QGIS - SHP]]</u> |
− | :*<u>[[ | + | :*<u>[[Tutorial_M04_002_Check_Files_QGIS_GPKG_draft | QGIS - GPKG]]</u> |
<br> | <br> | ||
== Results == | == Results == | ||
When the model is finished, review the results: | When the model is finished, review the results: | ||
− | :*<u>[[ | + | :*<u>[[Tutorial_M04_002_Results_QGIS_draft | QGIS]]</u> |
<br> | <br> | ||
= Conclusion = | = Conclusion = | ||
− | :* | + | :*2d_lfcsh and 2d_bg layers were supplied and used to represent a bridge structure in the 2D domain. The invert level of this structure was implied from the underlying topography created by cutting through the road embankment. <br> |
:*2d_po structure group was setup and described to enable more detailed result viewing through the structure. <br> | :*2d_po structure group was setup and described to enable more detailed result viewing through the structure. <br> | ||
:*Check files were used to review the 2D bridge application. | :*Check files were used to review the 2D bridge application. |
Latest revision as of 12:27, 26 March 2025
Introduction
In this module, bridges are represented within the 2D domain. The tutorial demonstrates two ways of modelling bridges.
- Part 1: 2D Layered Flow Constriction
- Part 2: 2D Bridge Structure
Topographic changes are made to cut through the road and a time series data output created to gain information on a range of hydraulic parameters of the bridge.
The GIS layers are:
- TGC layers:
- 2d_zsh: A layer used to modify Zpt elevations using points, lines and polygons.
- 2d_lfcsh: A layer used for modelling 2D flow under and over bridges, pipes and other obstructions across the waterway.
- 2d_bg: A layer used for modelling 2D bridges
- TCF layers:
- 2d_po: A time series data output from 2D domains, for a range of hydraulic parameters.
Module 4 builds from the model created in Module 2. The completed Module 2 model is provided in the Module_04\TUFLOW folder.
Part 1 - Layered Flow Constriction
GIS Inputs
Create, import and view input data:
Simulation Control Files
TUFLOW Geometry Control File (TGC)
- Save a copy of M02_001.tgc as M04_001.tgc in the Module_04\TUFLOW\model folder.
- Open the M04_001.tgc in a text editor and add the additional lines below the 'Read GIS Z Shape' command:
QGIS - SHP
Read GIS Z Shape == gis\2d_zsh_M02_cut_002_R.shp ! GIS layer used to define excavation through embankment
Read GIS Layered FC Shape == gis\2d_lfcsh_M04_bridge_001_L.shp ! Layered flow constriction representing 2D bridge losses
QGIS - GPKG
Read GIS Z Shape == 2d_zsh_M02_cut_002_R ! GIS layer used to define excavation through embankment
Read GIS Layered FC Shape == 2d_lfcsh_M04_bridge_001_L ! Layered flow constriction representing 2D bridge losses
- Save the TGC.
The 2d_zsh_M02_cut_002_R file from Module 2 is first read to cut through the embankment. The 2d_lfcsh is then read to represent the structure. The order is important as the 2d_lfcsh has an invert value of 99999, it uses the underlying elevation values to represent the invert of the 2D bridge. If this was read before the 2d_zsh file, it would use the elevation of the embankment crest.
TUFLOW Control File (TCF)
- Save a copy of M02_5m_001.tcf as M04_5m_001.tcf in the Module_04\TUFLOW\runs folder.
- Open the M04_5m_001.tcf in a text editor and make the following reference updates:
QGIS - SHP
Geometry Control File == ..\model\M04_001.tgc ! Reference the TUFLOW Geometry Control File
QGIS - GPKG
Spatial Database == ..\model\gis\M04_001.gpkg ! Specify the location of the GeoPackage Spatial Database
Geometry Control File == ..\model\M04_001.tgc ! Reference the TUFLOW Geometry Control File
- Update both the 2d_po line and point files:
QGIS - SHP
Read GIS PO == ..\model\gis\2d_po_M04_001_L.shp ! Reads in plot output line
Read GIS PO == ..\model\gis\2d_po_M04_001_P.shp ! Reads in plot output point
QGIS - GPKG
Read GIS PO == 2d_po_M04_001_L ! Reads in plot output line
Read GIS PO == 2d_po_M04_001_P ! Reads in plot output point
- Save the TCF.
Running the Simulation
- Save a copy of _run_M02_HPC.bat as _run_M04_HPC.bat in the Module_04\TUFLOW\runs folder.
- Update the batch file to reference the M04_5m_001.tcf :
set exe="..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe"
set run=start "TUFLOW" /wait %exe% -b
%run% M04_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 Bridge Structure
Part 2 replaces the 2d_lfcsh layer representing the bridge with a 2d_bg layer.
GIS Inputs
Create, import and view input data:
Simulation Control Files
TUFLOW Geometry Control File (TGC)
- Save a copy of M04_001.tgc as M04_002.tgc in the Module_04\TUFLOW\model folder.
- Open the M04_002.tgc in a text editor
- Comment out the Read GIS Layered FC Shape command and add the Read GIS BG Shape command:
QGIS - SHP
! Read GIS Layered FC Shape == gis\2d_lfcsh_M04_bridge_001_L.shp
Read GIS BG Shape == gis\2d_bg_M04_002_L.shp ! Bridge structure representing 2D bridge losses
QGIS - GPKG
! Read GIS Layered FC Shape == 2d_lfcsh_M04_bridge_001_L
Read GIS BG Shape == 2d_bg_M04_002_L ! Bridge structure representing 2D bridge losses
- Save the TGC.
TUFLOW Control File (TCF)
- Save a copy of M04_5m_001.tcf as M04_5m_002.tcf in the Module_04\TUFLOW\runs folder.
- Open the M04_5m_002.tcf in a text editor and make the following reference updates:
QGIS - SHP
Geometry Control File == ..\model\M04_002.tgc ! Reference the TUFLOW Geometry Control File
QGIS - GPKG
Spatial Database == ..\model\gis\M04_002.gpkg ! Specify the location of the GeoPackage Spatial Database
Geometry Control File == ..\model\M04_002.tgc ! Reference the TUFLOW Geometry Control File
- Add the following line in the 'Model Inputs' section:
Blank BG FLC Approach == METHOD A ! Automatic superstructure FLC values will be calculated based on the ratio of the depth of the pier layer
- Save the TCF.
Running the Simulation
- Update the batch file created in the first part of Module 4 to reference the M04_5m_002.tcf file.
- 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:
Conclusion
- 2d_lfcsh and 2d_bg layers were supplied and used to represent a bridge structure in the 2D domain. The invert level of this structure was implied from the underlying topography created by cutting through the road embankment.
- 2d_po structure group was setup and described to enable more detailed result viewing through the structure.
- Check files were used to review the 2D bridge application.
- Results were visualised to show water passing through the 2D bridge and the structure group results were assessed.
- 2d_lfcsh and 2d_bg layers were supplied and used to represent a bridge structure in the 2D domain. The invert level of this structure was implied from the underlying topography created by cutting through the road embankment.
Up |
---|
![]() |