Difference between revisions of "TUFLOW CATCH Tutorial M02 Draft"

From Tuflow
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
= GIS Inputs =
 
= GIS Inputs =
 
Create, import and view input data:
 
Create, import and view input data:
:*<u>[[TUFLOW_CATCH_Tutorial_M02_TUFLOW_HPC_GIS_Inputs_QGIS | QGIS GIS Inputs - TUFLOW HPC]]</u>
+
:*<u>[[TUFLOW_CATCH_Tutorial_M02_TUFLOW_HPC_GIS_Inputs_QGIS | TC02 - TUFLOW HPC GIS Inputs]]</u>
:*<u>[[TUFLOW_CATCH_Tutorial_M02_TUFLOW_FV_GIS_Inputs_QGIS | QGIS GIS Inputs - TUFLOW FV]]</u>
+
:*<u>[[TUFLOW_CATCH_Tutorial_M02_TUFLOW_FV_GIS_Inputs_QGIS | TC02 - TUFLOW FV GIS Inputs]]</u>
  
 
= Simulation Control Files =
 
= Simulation Control Files =
Line 16: Line 16:
 
=== TUFLOW Boundary Control File (TBC) ===
 
=== TUFLOW Boundary Control File (TBC) ===
 
<ol>
 
<ol>
<li>Save a copy of '''M06_003.tbc''' as '''TC01_001.tbc''' in the '''TUFLOW_CATCH_Module_01\Modelling\TUFLOW\model''' folder.  
+
<li>Save a copy of '''TC01_001.tbc''' as '''TC02_001.tbc''' in the '''TUFLOW_CATCH_Module_02\Modelling\TUFLOW\model''' folder.  
<li> Open the '''TC01_001.tbc''' in a text editor and update the reference to the 2D boundaries:<br>
+
<li> Open the '''TC02_001.tbc''' in a text editor and update the reference to the 1D/2D culvert connections:<br>
<tt><font color=blue>Read GIS BC</font><font color=red> == </font>gis\2d_bc_TC01_001_L.shp </font> <font color=green>  ! Reads in downstream 2D boundary</font></tt><br>
+
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_bc_TC02_001_P.shp</tt></font> <font color="green"><tt>  ! Links the two upstream 1D culverts to the 2D domain</tt></font> <br>
<li> Add the additional lines:<br>
+
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_bc_TC02_001_L.shp</tt></font> <font color="green"><tt>  ! Links the two upstream 1D culverts to the 2D domain</tt></font> <br>
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_bc_M03_culverts_001_P.shp</tt></font> <font color="green"><tt>  ! Links the 1D culverts to the 2D domain</tt></font> <br>
 
<font color="blue"><tt>Read GIS BC </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_bc_M03_culverts_001_R.shp | gis\2d_bc_M03_culverts_001_L.shp</tt></font> <font color="green"><tt>  ! Links the 1D culverts to the 2D domain</tt></font> <br>
 
 
<li>Save the TBC.
 
<li>Save the TBC.
 
</ol>
 
</ol>
Line 27: Line 25:
 
=== TUFLOW ESTRY Control File (ECF) ===
 
=== TUFLOW ESTRY Control File (ECF) ===
 
<ol>
 
<ol>
<li> Create a new text file '''TC01_001.ecf''' and save it in the '''TUFLOW_CATCH_Module_01\Modelling\TUFLOW\model''' folder.
+
<li> Save a copy of '''TC01_001.ecf''' as '''TC02_001.ecf''' in the '''TUFLOW_CATCH_Module_02\Modelling\TUFLOW\model''' folder.  
<li> Open the '''TC01_001.ecf''' in a text editor and add the following command lines to set the 1D computational timestep and define the culverts:<br>
+
<li> Open the '''TC02_001.ecf''' in a text editor and update the following line to reference the new 1d_nwk layer (containing the two upstream culverts):<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_TC02_001_L.shp</tt></font> <font color="green"><tt>  ! Defines the two upstream culverts</tt></font>  
<font color="blue"><tt>Read GIS Network </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\1d_nwk_M03_culverts_001_L.shp</tt></font> <font color="green"><tt>  ! Defines culverts</tt></font>
 
<li> Add the following command line to define the Advection Dispersion (AD) approach. For more information on Advection Dispersion, please refer to the <u>[https://docs.tuflow.com/classic-hpc/manual/latest/ TUFLOW Manual]</u>.<br>
 
<tt><font color=blue>AD Approach</font><font color=red> == </font>METHOD A </font> <font color=green>  ! Sets the modelling approach for the Advection Dispersion through 1D channels</font></tt>
 
 
<li>Save the ECF.
 
<li>Save the ECF.
 
</ol>
 
</ol>
  
 
== TUFLOW CATCH Control File (TCC) ==
 
== TUFLOW CATCH Control File (TCC) ==
intro...<br>
 
The TUFLOW CATCH QGIS plugin has created a .tcc template file populated with .... Including adding the exe file paths.
 
 
=== Global Settings ===
 
=== Global Settings ===
Applied to the whole simulation. <font color=red> more info</font>
+
For this tutorial, leave all commands as is. This section of the .tcc was populated in <u>[[TUFLOW_CATCH_Tutorial_M01 | TUFLOW CATCH Tutorial 1]]</u>.
<ol>
 
<li> Navigate to the '''TUFLOW_CATCH_Module_01\Modelling\TUFLOWCatch\runs''' folder and open '''TC01_001.tcc''' into a text editor.
 
<li> In the 'Simulation Settings' section, update the time commands:<br>
 
<tt><font color=blue>Start Time</font><font color=red> == </font>01/01/2021 10:00:00 </font> <font color=green>  ! Specifies the simulation start time</font></tt><br>
 
<tt><font color=blue>End Time</font><font color=red> == </font>01/01/2021 13:00:00 </font> <font color=green>  ! Specifies the simulation end time</font></tt><br>
 
<li> In the 'Boundary Condition Configuration' section, update the BC and CSV output intervals:<br>
 
<tt><font color=blue>Catch BC Output Interval Nodestring</font><font color=red> == </font>300 </font> <font color=green>  ! Outputs BC nodestring data every 300 seconds</font></tt><br>
 
<tt><font color=blue>Catch BC Output Interval Lateral</font><font color=red> == </font>300 </font> <font color=green>  ! Outputs BC lateral data every 300 seconds</font></tt><br>
 
<tt><font color=blue>CSV Write Frequency Day</font><font color=red> == </font>0.01 </font> <font color=green>  ! Writes CSV output every 0.01 days</font></tt><br>
 
</ol>
 
  
 
=== Catchment Hydraulic Model ===
 
=== Catchment Hydraulic Model ===
Hydraulic model specific commands - similar to TUFLOW tcf
+
This block contains commands that construct the TUFLOW HPC simulation.
 
<ol>
 
<ol>
<li> Set the catchment hydraulic model:<br>
+
<li> Save a copy of '''TC01_001.tcc''' as '''TC02_001.tcc''' in the '''TUFLOW_CATCH_Module_02\Modelling\TUFLOWCatch\runs''' folder.
<tt><font color=blue>Catchment Hydraulic Model</font><font color=red> == </font>HPC </font> <font color=green></font></tt>
+
<li> Open '''TC02_001.tcc''' in a text editor, and update the following commands to reference the new TBC and ECF:<br>
<li> Set the zero date. TUFLOW HPC does not support ISODATE format, while TUFLOW FV requires it. This command ensures compatibility by setting the date in TUFLOW FV ISODATE format that corresponds to zero hours in TUFLOW HPC boundary condition files.<br>
+
<tt><font color=blue>BC Control File</font><font color=red> == </font>..\..\TUFLOW\model\TC02_001.tbc </font> <font color=green>  ! Reference the TUFLOW Boundary Conditions Control File</font></tt><br>
<tt><font color=blue>Zero Date</font><font color=red> == </font>01/01/2021 10:00 </font> <font color=green>  ! Specifies the simulation start time in TUFLOW FV ISODATE format</font></tt><br>
+
<tt><font color=blue>ESTRY Control File</font><font color=red> == </font>..\..\TUFLOW\model\TC02_001.ecf </font> <font color=green>  ! Reference the ESTRY (1D) Control File</font></tt><br>
<li> In the 'GIS' section, update the following commands: <br>
+
 
<tt><font color=blue>GIS Format</font><font color=red> == </font>SHP </font> <font color=green>  ! Specify SHP as the output format</font></tt><br>
+
<li> Remove or comment out the following command using a '<font color="green"><tt>!</tt></font>' symbol. The receiving polygon can only be used in the pollutant export configuration of TUFLOW CATCH. <br>
<tt><font color=blue>TIF Projection</font><font color=red> == </font>..\..\TUFLOW\model\grid\DEM.tif </font> <font color=green>  ! Sets the GIS projection for the output grid files</font></tt><br>
+
<tt><font color=green>! Receiving Polygon == ..\..\TUFLOW\model\gis\2d_rp_TC01_001_R.shp ! GIS layer defining the receiving polygon</font></tt><br>
<font color=red>SHP Projection? caused errors I think</font>
 
<li> In the 'Solver' section, set the timestep maximum and time format:<br>
 
<tt><font color=blue>Timestep Maximum</font><font color=red> == </font>2.5 </font> <font color=green>  ! Specifies a maximum timestep (seconds)</font></tt><br>
 
<tt><font color=blue>Time Format</font><font color=red> == </font>TUFLOWFV </font> <font color=green>  ! Specifies the time format of output results</font></tt><br>
 
<li>
 
 
</ol>
 
</ol>
  
 
=== Pollutant Export Model ===
 
=== Pollutant Export Model ===
 +
This block contains commands that control the pollutant export (and other constituent) simulation. As this tutorial model is a hydrology simulation, we must set the pollutant export model to 'None', and comment out all commands. The pollutant export model block should look similar to the below:<br>
 +
:<tt><font color=blue>Catchment Pollutant Export Model </font><font color=red>==</font> None</tt><br>
 +
::<tt><font color=green>! Constant Salinity == 0.0</font></tt><br>
 +
::<tt><font color=green>! Constant WQ_DISS_OXYGEN_MG_L == 8.0</font></tt><br>
 +
::<tt><font color=green>! Time-Series Temperature == Temperature</font></tt><br>
 +
::<tt><font color=green>! Material == ALL  ! Default parameters for all materials</font></tt><br>
 +
:::<tt><font color=green> ! SED_CLAY, Method == Shear1, Rate == 0.0, Limit == 100.0, Depth Threshold == 0.02, Deposition Stress == 0.1, Erosion Stress == 0.5, Deposition Velocity == 0.1, Erosion Rate == 0.05</font></tt><br>
 +
:::<tt><font color=green> ! WQ_PATH_ECOLI_ALIVE_CFU_100ML, Method == Washoff1, Rate == 0.0, Limit == 0.0, Time Constant == 3600.00, Rain Threshold == 1.0, Depth Threshold == 0.20, Deposition Velocity == 0.0</font></tt><br>
 +
:::<tt><font color=green> ! WQ_PATH_ECOLI_DEAD_CFU_100ML, Method == Washoff1, Rate == 0.0, Limit == 0.0, Time Constant == 3600.00, Rain Threshold == 1.0, Depth Threshold == 0.20, Deposition Velocity == 0.0</font></tt><br>
 +
::<tt><font color=green>! End Material </font></tt><br>
 +
::<tt><font color=green>! Other material specifications ...</font></tt><br>
 +
::<tt><font color=green>! Other material specifications ...</font></tt><br>
 +
:<tt><font color=blue>End Catchment Pollutant Export Model </font></tt><br>
  
 
=== Receiving Model ===
 
=== Receiving Model ===
For this tutorial, leave all commands as is. This section of the .tcc will be discussed in the next tutorial.
+
This block contains commands that construct the TUFLOW FV simulation. These commands are almost entirely those that would be used in setting up a standalone TUFLOW FV control file (.fvc), with a small number of additional commands that relate to TUFLOW CATCH.
 +
<ol>
 +
<li> Set the receiving model:<br>
 +
<tt><font color=blue>Receiving Model</font><font color=red> == </font>TUFLOWFV </font> <font color=green></font></tt>
 +
 
 +
<li><font color=red> do we need to have this command - how to fix the issue that's causing the warning?</font><br>
 +
<tt><font color=blue>Global Temporal Extrapolation Check</font><font color=red> == </font>WARNING </font> <font color=green></font></tt><br>
 +
 
 +
<li>In the 'Timestep Commands' section, update the following commands:<br>
 +
<tt><font color=blue>CFL</font><font color=red> == </font>0.95 </font> <font color=green> ! Specify the Courant–Friedrichs–Lewy (CFL) number</font></tt><br>
 +
<tt><font color=blue>Timestep Limits</font><font color=red> == </font>0.10,1.0 </font> <font color=green> ! Specify the minimum and maximum timesteps (seconds)</font></tt><br>
 +
<tt><font color=blue>Display dt</font><font color=red> == </font>30 </font> <font color=green> ! Interval of displaying timestep information to the log (seconds)</font></tt><br>
 +
 
 +
<li>In the 'Model Parameters' section, update the following commands. All other commands in this section relate to 3D modelling, so they can be removed or ignored <font color=red>is this true?</font>.<br>
 +
<tt><font color=blue>Stability Limits</font><font color=red> == </font>100.0, 10.0 </font> <font color=green> ! Specify maximum water level (meters) and velocity (m/s) which indicate an unstable model</font></tt><br>
 +
<tt><font color=blue>Momentum Mixing Model</font><font color=red> == </font>Smagorinsky </font> <font color=green> ! Specify the momentum mixing model</font></tt><br>
 +
<tt><font color=blue>Global Horizontal Eddy Viscosity</font><font color=red> == </font>0.2 </font> <font color=green> ! Specify the Smagorinsky coefficient</font></tt><br>
 +
<tt><font color=blue>Global Horizontal Eddy Viscosity Limits</font><font color=red> == </font>0.05, 99999. </font> <font color=green> ! Globally sets the minimum and maximum horizontal eddy viscosity limits</font></tt><br>
 +
<tt><font color=blue>Scalar Mixing Model</font><font color=red> == </font>Smagorinsky </font> <font color=green> ! Specify the scalar mixing model</font></tt><br>
 +
<tt><font color=blue>Global Horizontal Scalar Diffusivity</font><font color=red> == </font>0.2 </font> <font color=green> ! Specify the Smagorinsky coefficient</font></tt><br>
 +
<tt><font color=blue>Global Horizontal Scalar Diffusivity Limits</font><font color=red> == </font>0.05, 99999. </font> <font color=green> ! Globally sets the minimum and maximum horizontal scalar diffusivity limits</font></tt><br>
 +
 
 +
<li>At the end of the 'Model Parameters' section, add the following command to set the cell wetting and drying depths:<br>
 +
<tt><font color=blue>Cell Wet/Dry Depths</font><font color=red> == </font>5.0e-03, 5.0e-02 </font> <font color=green> ! Specify the cell wetting and drying depths (meters)</font></tt><br>
 +
 
 +
<li>In the '2D Geometry' section, update the following commands to reference the TUFLOW FV mesh and the model domain:<br>
 +
<tt><font color=blue>Geometry 2D</font><font color=red> == </font>..\..\TUFLOWFV\model\geo\Stream_Mesh_001.2dm </font> <font color=green> ! 2D geometry input file (mesh file)</font></tt><br>
 +
<tt><font color=blue>Read Grid Zpts</font><font color=red> == </font>..\..\TUFLOWFV\model\geo\DEM.asc </font> <font color=green> ! Assigns the elevation of Zpts from the grid</font></tt><br>
 +
 
 +
<li>In the 'Materials' section, update/add the following commands. They reference the TUFLOW FV materials GIS layer and specify the surface roughness or bed resistance values (e.g. Manning’s n) assigned to each material ID. These commands are the TUFLOW FV equivalent to a materials database (e.g. '''materials_TC01_001.csv''').<br>
 +
<tt><font color=blue>Set Mat</font><font color=red> == </font>1 </font> <font color=green> ! Sets the default material ID for all cells in the TUFLOW FV model domain</font></tt><br>
 +
<tt><font color=blue>Read GIS Mat</font><font color=red> == </font>..\..\TUFLOWFV\model\gis\2d_mat_TC02_FV_001_R.shp </font> <font color=green> ! Sets the TUFLOW FV material values according to attributes in the GIS layer</font></tt><br>
 +
<tt><font color=blue>Material</font><font color=red> == </font>1 </font> <font color=green> ! Defines properties for material ID 1</font></tt><br>
 +
:<tt><font color=blue>Bottom Roughness</font><font color=red> == </font>0.011 </font></tt><br>
 +
<tt><font color=blue>End Material</font></tt><br>
 +
<tt><font color=blue>Material</font><font color=red> == </font>2 </font> <font color=green> ! Defines properties for material ID 2</font></tt><br>
 +
:<tt><font color=blue>Bottom Roughness</font><font color=red> == </font>0.015 </font></tt><br>
 +
<tt><font color=blue>End Material</font></tt><br>
 +
<tt><font color=blue>Material</font><font color=red> == </font>3 </font> <font color=green> ! Defines properties for material ID 3</font></tt><br>
 +
:<tt><font color=blue>Bottom Roughness</font><font color=red> == </font>0.017 </font></tt><br>
 +
<tt><font color=blue>End Material</font></tt><br>
 +
 
 +
<li>In the 'Initial Conditions' section, update the following command to set the initial water level:<br>
 +
<tt><font color=blue>Initial Water Level</font><font color=red> == </font>35.0 </font> <font color=green> ! Specify initial water level (meters)</font></tt><br>
 +
 
 +
<li>In the 'Non-Catchment Boundaries' section, update the following commands to reference the downstream TUFLOW FV boundary and to define its boundary conditions.<br>
 +
<tt><font color=blue>Read GIS Nodestring</font><font color=red> == </font>..\..\TUFLOWFV\model\gis\2d_ns_TC02_DS_boundary_001_L.shp </font> <font color=green> ! GIS nodestring layer defining non-catchment boundary(ies)</font></tt><br>
 +
<tt><font color=blue>BC</font><font color=red> == </font>QN, DS, 0.001 </font> <font color=green> ! Defines BC type, BC name and friction slope</font></tt><br>
 +
<tt><font color=blue>End BC</font></tt><br>
 +
 
 +
<li>In the 'Catchment Boundaries' section, update the following command to reference the upstream (inflow) TUFLOW FV boundary. <font color=red>more info on catchment boundary?</font><br>
 +
<tt><font color=blue>Catchment BC Nodestring</font><font color=red> == </font>..\..\TUFLOWFV\model\gis\2d_ns_TC02_US_boundary_001_L.shp </font> <font color=green> ! GIS nodestring layer defining catchment boundary(ies)</font></tt><br>
 +
 
 +
<li>Above the 'Outputs' section, add the following commands to reference the downstream TUFLOW FV culvert and its parameters. <br>
 +
<tt><font color=blue>Read GIS Nodestring</font><font color=red> == </font>..\..\TUFLOWFV\model\gis\2d_ns_TC02_culverts_001_L.shp </font> <font color=green> ! GIS nodestring layer defining the downstream culvert</font></tt><br>
 +
<tt><font color=blue>Read GIS Nodestring</font><font color=red> == </font>..\..\TUFLOWFV\model\gis\2d_ns_TC02_weir_001_L.shp </font> <font color=green> ! GIS nodestring layer enforcing the road crest at the downstream culvert</font></tt><br>
 +
<tt><font color=blue>Structure</font><font color=red> == </font>Linked Nodestrings, FC01.2_R_US, FC01.2_R_DS </font> <font color=green> ! Defines the structure type, culvert US nodestring ID, culvert DS nodestring ID</font></tt><br>
 +
:<tt><font color=blue>Flux Function</font><font color=red> == </font>Culvert </font> <font color=green> ! Culvert flux function </font></tt><br>
 +
:<tt><font color=blue>Culvert File</font><font color=red> == </font>..\..\TUFLOWFV\model\csv\TC02_culvert_dbase_001.csv, 1</font> <font color=green> ! Reference the culvert database and the number of culverts </font></tt>
 +
<tt><font color=blue>End Structure</font></tt><br>
 +
<tt><font color=blue>Structure</font><font color=red> == </font>Nodestring, FC01.2_W </font> <font color=green> ! Defines the structure type and the nodestring ID</font></tt><br>
 +
:<tt><font color=blue>Flux Function</font><font color=red> == </font>Weir_dz</font> <font color=green> ! Weir_dz flux function </font></tt><br>
 +
:<tt><font color=blue>Properties</font><font color=red> == </font>0.1, 1.705 </font> <font color=green> ! Defines the weir height above face elevation (meters) and the weir coefficient</font></tt>
 +
<tt><font color=blue>End Structure</font></tt><br>
 +
 
 +
<li>In the 'Outputs' section, update/add the following commands. Ensure that the 'Flux' block is removed or commented out. <br>
 +
<tt><font color=blue>Output</font><font color=red> == </font>NetCDF </font> <font color=green></font></tt><br>
 +
:<tt><font color=blue>Output Parameters</font><font color=red> == </font>h, v, d </font> <font color=green> ! Outputs water level, velocity and depth </font></tt><br>
 +
:<tt><font color=blue>Output Interval</font><font color=red> == </font>30 </font> <font color=green> ! Interval to output the data (seconds) </font></tt><br>
 +
:<tt><font color=blue>Suffix</font><font color=red> == </font>HD </font> <font color=green> ! ?? </font></tt>
 +
<tt><font color=blue>End Output</font></tt><br>
 +
<tt><font color=blue>Output</font><font color=red> == </font>Mass </font> <font color=green></font></tt><br>
 +
:<tt><font color=blue>Output Interval</font><font color=red> == </font>30 </font> <font color=green> ! Interval to output the data (seconds) </font></tt>
 +
<tt><font color=blue>End Output</font></tt><br>
 +
 
 +
<li>Remove or comment out the following commands:<br>
 +
<tt><font color=green>! Write Restart dt == 24</tt></font><br>
 +
<tt><font color=green>! Restart Overwrite == 1 </tt></font><br>
 +
 
 +
<li> Save the .tcc.
 +
</ol>
  
 
= Running the Simulation =
 
= Running the Simulation =
 
+
<ol>
 +
<li>In Windows File Explorer, navigate to the '''TUFLOWCatch\runs''' folder. Save a copy of '''_run_TC01_CATCH.bat''' as '''_run_TC02_CATCH.bat''' <font color=red>maybe change name??</font> and open the file in a text editor.
 +
<li>Update the batch file to reference the '''TC02_001.tcc''':<br>
 +
<tt><font color=blue>set </font>exe<font color=red>=</font>"..\..\..\..\exe\TUFLOWCATCH\2025.0.1\TUFLOWCATCH.exe"</tt><br>
 +
<tt><font color=orange>%exe%</font> TC02_001.tcc</font></tt>
 +
<li>Double click the batch file in file explorer to run the simulation. <br>
 +
</ol>
 +
<br>
  
 
= Troubleshooting =
 
= Troubleshooting =
Line 83: Line 161:
  
 
= Check Files and Results Output =
 
= Check Files and Results Output =
Complete the steps outlined in the following links to review check files and simulation results from the TUFLOW CATCH pollutant export model simulation:
+
Complete the steps outlined in the following links to review check files and simulation results from the TUFLOW CATCH hydrology model simulation:
  
<u>[[TUFLOW_CATCH_Tutorial_M02_Check_Files_QGIS | TUFLOW CATCH Tutorial 02 Check Files]]</u><br>
+
:*<u>[[TUFLOW_CATCH_Tutorial_M02_Check_Files_QGIS | TC02 - Check Files]]</u><br>
<u>[[TUFLOW_CATCH_Tutorial_M02_Results_QGIS | TUFLOW CATCH Tutorial 02 Results]]</u><br>
+
:*<u>[[TUFLOW_CATCH_Tutorial_M02_Results_QGIS | TC02 - Results]]</u><br>
  
 
= Conclusion =
 
= Conclusion =

Latest revision as of 15:19, 3 April 2025

Page Under Construction

Introduction

In this module, a TUFLOW CATCH hydrology model is developed.

TUFLOW CATCH Tutorial Module 2 is built from the model created in TUFLOW CATCH Module 1. The completed TUFLOW CATCH Module 01 is provided in the TUFLOW_CATCH_Module_02\Modelling folder of the download dataset as the starting point for this tutorial. If you are not already familiar with TUFLOW CATCH, we recommend completing TUFLOW CATCH Module 1 prior to starting this tutorial.

GIS Inputs

Create, import and view input data:

Simulation Control Files

The following steps will require use of a text editor. The tutorial demonstration uses Notepad++. For its configuration information refer to Notepad++ Tips.

TUFLOW Boundary Control File (TBC)

  1. Save a copy of TC01_001.tbc as TC02_001.tbc in the TUFLOW_CATCH_Module_02\Modelling\TUFLOW\model folder.
  2. Open the TC02_001.tbc in a text editor and update the reference to the 1D/2D culvert connections:
    Read GIS BC == gis\2d_bc_TC02_001_P.shp ! Links the two upstream 1D culverts to the 2D domain
    Read GIS BC == gis\2d_bc_TC02_001_L.shp ! Links the two upstream 1D culverts to the 2D domain
  3. Save the TBC.

TUFLOW ESTRY Control File (ECF)

  1. Save a copy of TC01_001.ecf as TC02_001.ecf in the TUFLOW_CATCH_Module_02\Modelling\TUFLOW\model folder.
  2. Open the TC02_001.ecf in a text editor and update the following line to reference the new 1d_nwk layer (containing the two upstream culverts):
    Read GIS Network == gis\1d_nwk_TC02_001_L.shp ! Defines the two upstream culverts
  3. Save the ECF.

TUFLOW CATCH Control File (TCC)

Global Settings

For this tutorial, leave all commands as is. This section of the .tcc was populated in TUFLOW CATCH Tutorial 1.

Catchment Hydraulic Model

This block contains commands that construct the TUFLOW HPC simulation.

  1. Save a copy of TC01_001.tcc as TC02_001.tcc in the TUFLOW_CATCH_Module_02\Modelling\TUFLOWCatch\runs folder.
  2. Open TC02_001.tcc in a text editor, and update the following commands to reference the new TBC and ECF:
    BC Control File == ..\..\TUFLOW\model\TC02_001.tbc ! Reference the TUFLOW Boundary Conditions Control File
    ESTRY Control File == ..\..\TUFLOW\model\TC02_001.ecf ! Reference the ESTRY (1D) Control File
  3. Remove or comment out the following command using a '!' symbol. The receiving polygon can only be used in the pollutant export configuration of TUFLOW CATCH.
    ! Receiving Polygon == ..\..\TUFLOW\model\gis\2d_rp_TC01_001_R.shp ! GIS layer defining the receiving polygon

Pollutant Export Model

This block contains commands that control the pollutant export (and other constituent) simulation. As this tutorial model is a hydrology simulation, we must set the pollutant export model to 'None', and comment out all commands. The pollutant export model block should look similar to the below:

Catchment Pollutant Export Model == None
! Constant Salinity == 0.0
! Constant WQ_DISS_OXYGEN_MG_L == 8.0
! Time-Series Temperature == Temperature
! Material == ALL ! Default parameters for all materials
 ! SED_CLAY, Method == Shear1, Rate == 0.0, Limit == 100.0, Depth Threshold == 0.02, Deposition Stress == 0.1, Erosion Stress == 0.5, Deposition Velocity == 0.1, Erosion Rate == 0.05
 ! WQ_PATH_ECOLI_ALIVE_CFU_100ML, Method == Washoff1, Rate == 0.0, Limit == 0.0, Time Constant == 3600.00, Rain Threshold == 1.0, Depth Threshold == 0.20, Deposition Velocity == 0.0
 ! WQ_PATH_ECOLI_DEAD_CFU_100ML, Method == Washoff1, Rate == 0.0, Limit == 0.0, Time Constant == 3600.00, Rain Threshold == 1.0, Depth Threshold == 0.20, Deposition Velocity == 0.0
! End Material
! Other material specifications ...
! Other material specifications ...
End Catchment Pollutant Export Model

Receiving Model

This block contains commands that construct the TUFLOW FV simulation. These commands are almost entirely those that would be used in setting up a standalone TUFLOW FV control file (.fvc), with a small number of additional commands that relate to TUFLOW CATCH.

  1. Set the receiving model:
    Receiving Model == TUFLOWFV
  2. do we need to have this command - how to fix the issue that's causing the warning?
    Global Temporal Extrapolation Check == WARNING
  3. In the 'Timestep Commands' section, update the following commands:
    CFL == 0.95  ! Specify the Courant–Friedrichs–Lewy (CFL) number
    Timestep Limits == 0.10,1.0  ! Specify the minimum and maximum timesteps (seconds)
    Display dt == 30  ! Interval of displaying timestep information to the log (seconds)
  4. In the 'Model Parameters' section, update the following commands. All other commands in this section relate to 3D modelling, so they can be removed or ignored is this true?.
    Stability Limits == 100.0, 10.0  ! Specify maximum water level (meters) and velocity (m/s) which indicate an unstable model
    Momentum Mixing Model == Smagorinsky  ! Specify the momentum mixing model
    Global Horizontal Eddy Viscosity == 0.2  ! Specify the Smagorinsky coefficient
    Global Horizontal Eddy Viscosity Limits == 0.05, 99999.  ! Globally sets the minimum and maximum horizontal eddy viscosity limits
    Scalar Mixing Model == Smagorinsky  ! Specify the scalar mixing model
    Global Horizontal Scalar Diffusivity == 0.2  ! Specify the Smagorinsky coefficient
    Global Horizontal Scalar Diffusivity Limits == 0.05, 99999.  ! Globally sets the minimum and maximum horizontal scalar diffusivity limits
  5. At the end of the 'Model Parameters' section, add the following command to set the cell wetting and drying depths:
    Cell Wet/Dry Depths == 5.0e-03, 5.0e-02  ! Specify the cell wetting and drying depths (meters)
  6. In the '2D Geometry' section, update the following commands to reference the TUFLOW FV mesh and the model domain:
    Geometry 2D == ..\..\TUFLOWFV\model\geo\Stream_Mesh_001.2dm  ! 2D geometry input file (mesh file)
    Read Grid Zpts == ..\..\TUFLOWFV\model\geo\DEM.asc  ! Assigns the elevation of Zpts from the grid
  7. In the 'Materials' section, update/add the following commands. They reference the TUFLOW FV materials GIS layer and specify the surface roughness or bed resistance values (e.g. Manning’s n) assigned to each material ID. These commands are the TUFLOW FV equivalent to a materials database (e.g. materials_TC01_001.csv).
    Set Mat == 1  ! Sets the default material ID for all cells in the TUFLOW FV model domain
    Read GIS Mat == ..\..\TUFLOWFV\model\gis\2d_mat_TC02_FV_001_R.shp  ! Sets the TUFLOW FV material values according to attributes in the GIS layer
    Material == 1  ! Defines properties for material ID 1
    Bottom Roughness == 0.011
    End Material
    Material == 2  ! Defines properties for material ID 2
    Bottom Roughness == 0.015
    End Material
    Material == 3  ! Defines properties for material ID 3
    Bottom Roughness == 0.017
    End Material
  8. In the 'Initial Conditions' section, update the following command to set the initial water level:
    Initial Water Level == 35.0  ! Specify initial water level (meters)
  9. In the 'Non-Catchment Boundaries' section, update the following commands to reference the downstream TUFLOW FV boundary and to define its boundary conditions.
    Read GIS Nodestring == ..\..\TUFLOWFV\model\gis\2d_ns_TC02_DS_boundary_001_L.shp  ! GIS nodestring layer defining non-catchment boundary(ies)
    BC == QN, DS, 0.001  ! Defines BC type, BC name and friction slope
    End BC
  10. In the 'Catchment Boundaries' section, update the following command to reference the upstream (inflow) TUFLOW FV boundary. more info on catchment boundary?
    Catchment BC Nodestring == ..\..\TUFLOWFV\model\gis\2d_ns_TC02_US_boundary_001_L.shp  ! GIS nodestring layer defining catchment boundary(ies)
  11. Above the 'Outputs' section, add the following commands to reference the downstream TUFLOW FV culvert and its parameters.
    Read GIS Nodestring == ..\..\TUFLOWFV\model\gis\2d_ns_TC02_culverts_001_L.shp  ! GIS nodestring layer defining the downstream culvert
    Read GIS Nodestring == ..\..\TUFLOWFV\model\gis\2d_ns_TC02_weir_001_L.shp  ! GIS nodestring layer enforcing the road crest at the downstream culvert
    Structure == Linked Nodestrings, FC01.2_R_US, FC01.2_R_DS  ! Defines the structure type, culvert US nodestring ID, culvert DS nodestring ID
    Flux Function == Culvert  ! Culvert flux function
    Culvert File == ..\..\TUFLOWFV\model\csv\TC02_culvert_dbase_001.csv, 1  ! Reference the culvert database and the number of culverts
    End Structure
    Structure == Nodestring, FC01.2_W  ! Defines the structure type and the nodestring ID
    Flux Function == Weir_dz  ! Weir_dz flux function
    Properties == 0.1, 1.705  ! Defines the weir height above face elevation (meters) and the weir coefficient
    End Structure
  12. In the 'Outputs' section, update/add the following commands. Ensure that the 'Flux' block is removed or commented out.
    Output == NetCDF
    Output Parameters == h, v, d  ! Outputs water level, velocity and depth
    Output Interval == 30  ! Interval to output the data (seconds)
    Suffix == HD  ! ??
    End Output
    Output == Mass
    Output Interval == 30  ! Interval to output the data (seconds)
    End Output
  13. Remove or comment out the following commands:
    ! Write Restart dt == 24
    ! Restart Overwrite == 1
  14. Save the .tcc.

Running the Simulation

  1. In Windows File Explorer, navigate to the TUFLOWCatch\runs folder. Save a copy of _run_TC01_CATCH.bat as _run_TC02_CATCH.bat maybe change name?? and open the file in a text editor.
  2. Update the batch file to reference the TC02_001.tcc:
    set exe="..\..\..\..\exe\TUFLOWCATCH\2025.0.1\TUFLOWCATCH.exe"
    %exe% TC02_001.tcc
  3. Double click the batch file in file explorer to run the simulation.


Troubleshooting

See tips on common mistakes and troubleshooting steps if the model doesn't run:


Check Files and Results Output

Complete the steps outlined in the following links to review check files and simulation results from the TUFLOW CATCH hydrology model simulation:

Conclusion