Difference between revisions of "Tutorial M05"
(16 intermediate revisions by 4 users not shown) | |||
Line 4: | Line 4: | ||
:*TGC layers: | :*TGC layers: | ||
<ol><ol><li>2d_zsh: A layer used to modify Zpt elevations using points, lines and polygons. | <ol><ol><li>2d_zsh: A layer used to modify Zpt elevations using points, lines and polygons. | ||
+ | <li>2d_mat: A layer used to define the land use (material) types within the developmental area. | ||
</ol></ol> | </ol></ol> | ||
:*ECF layers: | :*ECF layers: | ||
Line 15: | Line 16: | ||
= GIS Inputs = | = GIS Inputs = | ||
Create, import and view input data: | Create, import and view input data: | ||
− | :*<u>[[Tutorial_M05_GIS_Inputs_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_M05_GIS_Inputs_QGIS | QGIS - SHP]]</u> |
+ | :*<u>[[Tutorial_M05_GIS_Inputs_QGIS_GPKG | QGIS - GPKG]]</u> | ||
<br> | <br> | ||
Line 36: | Line 38: | ||
The pit inlet database assigns a depth discharge relationship to pit inlet types: <br> | The pit inlet database assigns a depth discharge relationship to pit inlet types: <br> | ||
<ol> | <ol> | ||
− | <li>Create a new folder called | + | <li>Create a new folder called '''pit_dbase''' in the '''Module_05\TUFLOW''' folder. |
<li>Navigate to the '''Module_05\Tutorial_Data''', copy and paste the following csv files into the '''Module_05\TUFLOW\pit_dbase''' folder: <br> | <li>Navigate to the '''Module_05\Tutorial_Data''', copy and paste the following csv files into the '''Module_05\TUFLOW\pit_dbase''' folder: <br> | ||
− | *pit_inlet_curves | + | *'''pit_inlet_curves.csv''' |
− | * | + | *'''pit_inlet_dbase.csv''' |
− | <li>Open the '''pit_inlet_dbase | + | <li>Open the '''pit_inlet_dbase'''. The three different names are user defined inlet types matching the attribute in 1d_nwk pits file. They define the inflow into the pit depending on the above ground water depth and are derived based on the geometry of the pits. These can be unique to every model. From the '''pit_inlet_dbase''', ‘AB’ inlet type has an area of 0.54m<sup>2</sup> and width of 3.6m and references the ‘Type AB’ in the flow column from the '''pit_inlet_curves''' file.<br> |
<br> | <br> | ||
[[File:M05 pit inlet dbase_01.png]]<br> | [[File:M05 pit inlet dbase_01.png]]<br> | ||
<br> | <br> | ||
− | <li>Open the '''pit_inlet_curves | + | <li>Open the '''pit_inlet_curves''', it defines the depth discharge relationship for each pit inlet type. |
<li>Plot the depth against flow for each pit type to view the relationship. The curves are the limiting factor for the amount of flow entering the pits. <br> | <li>Plot the depth against flow for each pit type to view the relationship. The curves are the limiting factor for the amount of flow entering the pits. <br> | ||
<br> | <br> | ||
Line 57: | Line 59: | ||
<ol> | <ol> | ||
<li>Save a copy of '''M02_001.tgc''' as '''M05_001.tgc''' in the '''Module_05\TUFLOW\model''' folder. | <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 | + | <li>Open the file '''M05_001.tgc''' in a text editor and add the additional line below the '<font color="blue"><tt>Read GIS Z Shape </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> | <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> | ||
− | <li> | + | <u>'''QGIS - GPKG'''</u><br> |
− | Save the TGC. | + | <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>' 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. | ||
</ol> | </ol> | ||
The three Z shapes that form the TIN are from Module 2, this is the foundation of the development. | The three Z shapes that form the TIN are from Module 2, this is the foundation of the development. | ||
Line 66: | Line 76: | ||
===TUFLOW Boundary Control File (TBC)=== | ===TUFLOW Boundary Control File (TBC)=== | ||
<ol> | <ol> | ||
− | <li>Save a copy of '''M01_001.tbc''' as '''M05_001.tbc''' in the '''Module_05\TUFLOW\ | + | <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> | <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 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> | <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. | <li>Save the TBC. | ||
</ol> | </ol> | ||
Line 79: | Line 93: | ||
<li>Create a new text file called '''M05_001.ecf''' and save it in the '''Module_05\TUFLOW\model''' folder. | <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> | <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>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_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>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> | <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. | <li>Save the ECF. | ||
Line 93: | Line 113: | ||
<li>Open the file '''M05_5m_001.tcf''' in a text editor and add the following line:<br> | <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> | <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> | + | <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\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>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 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> | <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. | <li>Save the TCF. | ||
Line 106: | Line 131: | ||
<li>Save a copy of '''_run_M02_HPC.bat''' as '''_run_M05_HPC.bat''' in the '''Module_05\TUFLOW\runs''' folder. | <li>Save a copy of '''_run_M02_HPC.bat''' as '''_run_M05_HPC.bat''' in the '''Module_05\TUFLOW\runs''' folder. | ||
<li>Update the batch file to reference the '''M05_5m_001.tcf''' :<br> | <li>Update the batch file to reference the '''M05_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\ | + | <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>M05_5m_001.tcf </tt></font> <br> | <font color="orange"><tt>%run% </tt></font> <font color="black"><tt>M05_5m_001.tcf </tt></font> <br> | ||
<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> | ||
+ | <br> | ||
+ | = Troubleshooting = | ||
+ | See tips on common mistakes and troubleshooting steps if the model doesn't run: | ||
+ | :*<u>[[Tutorial_Troubleshooting_QGIS | QGIS]]</u> | ||
<br> | <br> | ||
= 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_M05_Check_Files_QGIS | QGIS]]</u> | + | :*<u>[[Tutorial_M05_Check_Files_QGIS | QGIS - SHP]]</u> |
− | + | :*<u>[[Tutorial_M05_Check_Files_QGIS_GPKG | QGIS - GPKG]]</u> | |
<br> | <br> | ||
Line 123: | Line 152: | ||
When the model is finished, review the results: | When the model is finished, review the results: | ||
:*<u>[[Tutorial_M05_Results_QGIS | QGIS]]</u> | :*<u>[[Tutorial_M05_Results_QGIS | QGIS]]</u> | ||
− | |||
<br> | <br> | ||
Line 133: | Line 161: | ||
=1D Integrity Tool (Optional)= | =1D Integrity Tool (Optional)= | ||
− | The 1D Integrity Tool is a suite of tools designed to help modellers find and fix potential errors in 1D networks prior to running TUFLOW. | + | The 1D Integrity Tool is a suite of tools designed to help modellers find and fix potential errors in 1D networks prior to running TUFLOW. It is a free tool that comes as part of the TUFLOW plugin:<br> |
− | :*<u>[https://wiki.tuflow.com/ | + | :*<u>[https://wiki.tuflow.com/1D_Integrity_Tool_-_Tutorial QGIS] |
<br> | <br> | ||
Latest revision as of 16:40, 19 September 2024
Introduction
In this module, an integrated urban drainage network is represented.
The GIS layers are:
- TGC layers:
- 2d_zsh: A layer used to modify Zpt elevations using points, lines and polygons.
- 2d_mat: A layer used to define the land use (material) types within the developmental area.
- ECF layers:
- 1d_nwk: A layer used to define pipes and pits in 1D.
- TBC layers:
- 2d_sa: A layer to define internal 2D flow boundaries.
- 2d_bc: A layer defining the locations of external 2D boundaries.
Module 5 builds from the model created in Module 2. The completed Module 2 model is provided in the Module_05\TUFLOW folder.
GIS Inputs
Create, import and view input data:
Boundary Condition Database (bc_dbase)
Update the bc_dbase with a reference of the new 2d_sa regions:
- Navigate to the Module_05\Tutorial_Data folder. Copy the 01p2hr_loc.csv and paste it in the Module_05\TUFLOW\bc_dbase folder. This file contains the inflow data applied to each of the 2d_sa regions.
- Open the file, there are 4 columns labelled ‘Loc_001’ to ‘Loc_004’. These correspond to the names of the 2d_sa regions.
- Save a copy of the bc_dbase.csv as bc_dbase_M05_001.csv.
- Open the file and add the additional inflows:
- Save the bc_dbase.
Note: Direct rainfall can be applied to the model instead of the 2d_sa regions. The pits gather overland flow and convey it into the pipe network. Direct rainfall is covered in Module 6.
Pit Inlet Database (pit_dbase)
The pit inlet database assigns a depth discharge relationship to pit inlet types:
- Create a new folder called pit_dbase in the Module_05\TUFLOW folder.
- Navigate to the Module_05\Tutorial_Data, copy and paste the following csv files into the Module_05\TUFLOW\pit_dbase folder:
- pit_inlet_curves.csv
- pit_inlet_dbase.csv
- Open the pit_inlet_dbase. The three different names are user defined inlet types matching the attribute in 1d_nwk pits file. They define the inflow into the pit depending on the above ground water depth and are derived based on the geometry of the pits. These can be unique to every model. From the pit_inlet_dbase, ‘AB’ inlet type has an area of 0.54m2 and width of 3.6m and references the ‘Type AB’ in the flow column from the pit_inlet_curves file.
- Open the pit_inlet_curves, it defines the depth discharge relationship for each pit inlet type.
- Plot the depth against flow for each pit type to view the relationship. The curves are the limiting factor for the amount of flow entering the pits.
Note: A spreadsheet InletCurves_SI_Units_001.xls located in the Module_05\Tutorial Dataset folder can be used to derive unique depth discharge curve relationships based on input geometry.
Simulation Control Files
TUFLOW Geometry Control File (TGC)
- Save a copy of M02_001.tgc as M05_001.tgc in the Module_05\TUFLOW\model folder.
- Open the file M05_001.tgc in a text editor and add the additional line below the 'Read GIS Z Shape ' command:
QGIS - SHP
Create TIN Zpts == gis\2d_zsh_M02_landscape_002_R.shp | gis\2d_zsh_M02_landscape_002_L.shp | gis\2d_zsh_M02_landscape_002_P.shp ! Defines areas of complex landscaping
QGIS - GPKG
Create TIN Zpts == 2d_zsh_M02_landscape_002_R | 2d_zsh_M02_landscape_002_L | 2d_zsh_M02_landscape_002_P ! Defines areas of complex landscaping
- Add in the following line after the 'Read GIS Mat ' command.
QGIS - SHP
Read GIS Mat == gis\2d_mat_M02_landscape_002_R.shp ! Sets the material values according to attributes in the GIS layer
QGIS - GPKG
Read GIS Mat == 2d_mat_M02_landscape_002_R ! Sets the material values according to attributes in the GIS layer
Assigns the updated materials values due to the development. - Save the TGC.
The three Z shapes that form the TIN are from Module 2, this is the foundation of the development.
TUFLOW Boundary Control File (TBC)
- Save a copy of M01_001.tbc as M05_001.tbc in the Module_05\TUFLOW\model folder.
- Open the file M05_001.tbc in a text editor and add the following two commands:
QGIS - SHP
Read GIS SA PITS == gis\2d_sa_M05_001_R.shp ! Reads in 2D boundaries directly to 1D pits
Read GIS BC == gis\2d_bc_M05_outlet_001_L.shp ! Reads in 2D boundaries from 1D network
QGIS - GPKG
Read GIS SA PITS == 2d_sa_M05_001_R ! Reads in 2D boundaries directly to 1D pits
Read GIS BC == 2d_bc_M05_outlet_001_L ! Reads in 2D boundaries from 1D network
- Save the TBC.
The command ‘Read GIS SA PITS’ directs the inflow to 2D cells connected to the 1D pits with 'SX' as 'Conn_1D_2D' attribute and it spreads the inflow equally over the cells containing pits. The ‘Read GIS BC’ command defines the outlet of the pipe network.
ESTRY Control File (ECF)
- Create a new text file called M05_001.ecf and save it in the Module_05\TUFLOW\model folder.
- Add the following command lines:
QGIS - SHP
Timestep == 0.5 ! Specifies a 1D computational timestep as 0.5 seconds
Read GIS Network == gis\1d_nwk_M05_pipes_001_L.shp ! Defines pipes
Read GIS Network == gis\1d_nwk_M05_pits_001_P.shp ! Defines pits
Pit Inlet Database == ..\pit_dbase\pit_inlet_dbase.csv ! Pit inlet database defining depth-discharge curves
QGIS - GPKG
Timestep == 0.5 ! Specifies a 1D computational timestep as 0.5 seconds
Read GIS Network == 1d_nwk_M05_pipes_001_L ! Defines pipes
Read GIS Network == 1d_nwk_M05_pits_001_P ! Defines pits
Pit Inlet Database == ..\pit_dbase\pit_inlet_dbase.csv ! Pit inlet database defining depth-discharge curves
- Save the ECF.
The above sets a 1D computational timestep of 0.5 seconds, reads in both the pipes and the pits 1d_nwk files and links these to the pit inlet database.
TUFLOW Control File (TCF)
- Save a copy of M02_5m_001.tcf as M05_5m_001.tcf in the Module_05\TUFLOW\runs folder.
- Open the file M05_5m_001.tcf in a text editor and add the following line:
ESTRY Control File == ..\model\M05_001.ecf ! Reference the ESTRY (1D) Control File
- Make the following reference updates:
QGIS - SHP
Geometry Control File == ..\model\M05_001.tgc ! Reference the TUFLOW Geometry Control File
BC Control File == ..\model\M05_001.tbc ! Reference the TUFLOW Boundary Conditions Control File
BC Database == ..\bc_dbase\bc_dbase_M05_001.csv ! Reference the Boundary Conditions Database
QGIS - GPKG
Spatial Database == ..\model\gis\M05_001.gpkg ! Specify the location of the GeoPackage Spatial Database
Geometry Control File == ..\model\M05_001.tgc ! Reference the TUFLOW Geometry Control File
BC Control File == ..\model\M05_001.tbc ! Reference the TUFLOW Boundary Conditions Control File
BC Database == ..\bc_dbase\bc_dbase_M05_001.csv ! Reference the Boundary Conditions Database
- Save the TCF.
Running the Simulation
- Save a copy of _run_M02_HPC.bat as _run_M05_HPC.bat in the Module_05\TUFLOW\runs folder.
- Update the batch file to reference the M05_5m_001.tcf :
set exe="..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe"
set run=start "TUFLOW" /wait %exe% -b
%run% M05_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:
Conclusion
- 1D underground pipes and pits were provided and added to the model discharging into the 2D domain.
- Check files were used to review the connection between the pipe network and the 2D domain.
- Results were viewed to assess the amount of water in the pipe network.
- 1D underground pipes and pits were provided and added to the model discharging into the 2D domain.
1D Integrity Tool (Optional)
The 1D Integrity Tool is a suite of tools designed to help modellers find and fix potential errors in 1D networks prior to running TUFLOW. It is a free tool that comes as part of the TUFLOW plugin:
Up |
---|
Back to Tutorial Introduction Main Page |