Difference between revisions of "QGIS ARR to TUFLOW Example"

From Tuflow
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
__TOC__
 
__TOC__
<br><br>
 
  
 
==Tool setup==
 
==Tool setup==
Line 14: Line 13:
 
==Output==
 
==Output==
 
The tool produces the following outputs:<br>
 
The tool produces the following outputs:<br>
[[File: ARR_example_output_folder_02.png ]]<br><br>
+
[[File: ARR_example_output_folder_03.png ]]<br><br>
[[File: ARR_example_output_folder_data_02.png]]<br><br>
+
[[File: ARR_example_output_folder_data_03.png]]<br><br>
[[File: ARR_example_output_folder_rf_inflow_02.png]]<br><br>
+
[[File: ARR_example_output_folder_rf_inflow_03.png]]<br><br>
  
 
==Log File==
 
==Log File==
Line 33: Line 32:
  
 
'''''Geometry Control File'''''
 
'''''Geometry Control File'''''
  <span style="color:blue;">Set Soil</span> <span style="color:red;">==</span> 1  <span style="color:green;">! globally set all active cells to soil type 1</span>
+
  <span style="color:blue;">Set Soil</span> <span style="color:red;">==</span> 1  <span style="color:green;">! Globally set all active cells to soil type 1</span>
 
  <span style="color:blue;">Read GIS Soil</span> <span style="color:red;">==</span> <path to GIS file>  <span style="color:green;">! Can be used to spatially vary soil type using polygons</span>
 
  <span style="color:blue;">Read GIS Soil</span> <span style="color:red;">==</span> <path to GIS file>  <span style="color:green;">! Can be used to spatially vary soil type using polygons</span>
 
<br>
 
<br>
  
2. The soil types have already been defined in the output '''soils.tsoilf''' file - See Section 6.10.4 in the TUFLOW Manual. This file defines soil type 1 as using the initial / continuing loss method. The values '''<<IL_test>>''' and '''<<CL_test>>''' are variables because they have the triangular brackets '''<< >>''' ("test" in this case is the catchment name).<br>
+
2. The soil types have already been defined in the output '''soils.tsoilf''' file - Refer to the <u>[https://docs.tuflow.com/classic-hpc/manual/latest/ TUFLOW Manual]</u> for more information. This file defines soil type 1 as using the initial / continuing loss method. The values '''<<IL_test>>''' and '''<<CL_test>>''' are variables because they have the triangular brackets '''<< >>''' ("test" in this case is the catchment name).<br>
  
: [[File: ARR_example_tsoilf.PNG]]<Br>
+
: [[File: ARR_example_tsoilf_02.png]]<Br>
: [[File: ARR_example_tsoilf_01.png]]<Br>
 
  
 
3. The IL_test and CL_test values are being set in '''soil_infilatration.trd'''. This file is using <tt>IF statements</tt> to set the values based on the event.<br>
 
3. The IL_test and CL_test values are being set in '''soil_infilatration.trd'''. This file is using <tt>IF statements</tt> to set the values based on the event.<br>
  
: [[File: ARR_example_soil_infiltration_trd.PNG]]<br>
+
: [[File: ARR_example_soil_infiltration_trd_01.png]]<br>
  
 
4. Both the '''soils.tsoilf''' and '''soil_infiltration.trd''' need to be read into the '''TUFLOW Control File (TCF)''' (order does not matter). Both files were copied to the '''TUFLOW/model''' directory.<br>
 
4. Both the '''soils.tsoilf''' and '''soil_infiltration.trd''' need to be read into the '''TUFLOW Control File (TCF)''' (order does not matter). Both files were copied to the '''TUFLOW/model''' directory.<br>
  
 
'''''TUFLOW Control File'''''
 
'''''TUFLOW Control File'''''
  <span style="color:blue;">Read Soils File</span> <span style="color:red;">==</span> ..\model\soils.tsoilf  <span style="color:green;">! location of soils.tsoilf</span>
+
  <span style="color:blue;">Read Soils File</span> <span style="color:red;">==</span> ..\model\soils.tsoilf  <span style="color:green;">! Location of soils file (.tsoilf)</span>
  <span style="color:blue;">Read File</span> <span style="color:red;">==</span> ..\model\soil_infiltration.trd  <span style="color:green;">! read file containing variable values</span>
+
  <span style="color:blue;">Read File</span> <span style="color:red;">==</span> ..\model\soil_infiltration.trd  <span style="color:green;">! Read file containing variable values</span>
 
<br>
 
<br>
  
Line 56: Line 54:
  
 
'''''TUFLOW Control File'''''
 
'''''TUFLOW Control File'''''
  <span style="color:blue;">BC Database</span> <span style="color:red;">==</span> ..\bc_dbase\bc_dbase.csv  <span style="color:green;">! location of boundary database</span>
+
  <span style="color:blue;">BC Database</span> <span style="color:red;">==</span> ..\bc_dbase\bc_dbase.csv  <span style="color:green;">! Location of boundary database</span>
 
<br>
 
<br>
  
Line 66: Line 64:
  
 
'''''TUFLOW Control File'''''
 
'''''TUFLOW Control File'''''
  <span style="color:blue;">Event File</span> <span style="color:red;">==</span> Event_File.tef  <span style="color:green;">! location event database</span>
+
  <span style="color:blue;">Event File</span> <span style="color:red;">==</span> Event_File.tef  <span style="color:green;">! Location of event file (.tef)</span>
  
 
8. When running the model, the following flags can be added to the batch file. The event names must match the names in the '''Event_File.tef''' as stated after the command <tt><font color="blue">Define Event</font> <font color="red">==</font></tt><br>
 
8. When running the model, the following flags can be added to the batch file. The event names must match the names in the '''Event_File.tef''' as stated after the command <tt><font color="blue">Define Event</font> <font color="red">==</font></tt><br>
Line 77: Line 75:
 
  TUFLOW.exe -b -e1 1p -e2 060m -e3 TP05 my_model.tcf
 
  TUFLOW.exe -b -e1 1p -e2 060m -e3 TP05 my_model.tcf
 
  ... and so on
 
  ... and so on
 +
<br>
 +
<br>
 +
 +
{{Tips Navigation
 +
|uplink=[[QGIS_ARR_to_TUFLOW| Back to QGIS ARR to TUFLOW]]
 +
}}

Latest revision as of 10:02, 23 September 2024

This example uses the infiltration loss method, however the approach is very similar for the rainfall excess approach.

Tool setup

  • events = 1% AEP 1hr -> 12hr
  • no climate change scenarios
  • infiltration loss approach
  • other options left as default


ARR example dialog 02.png

Output

The tool produces the following outputs:
ARR example output folder 03.png

ARR example output folder data 03.png

ARR example output folder rf inflow 03.png

Log File

The following warning was found in the log file:

  • WARNING: 15 preburst rainfall depths exceeded storm initial loss (7.4% of entries)


This is can be checked by looking at the burst_initial_loss.csv and burst_initial_loss.png
ARR Burst Initial Losses plot.png
The plot above confirms the warning - some of the initial loss values are negative. This warning should be taken seriously and ARR offers a number of ways to proceed in Book 2, Section 5.9.9. The tool itself also offers support for modelling a complete storm event. For the purpose of this example and simplicity, the model will be assumed to be insensitive to initial loss and negative values will be changed to 0 mm.

TUFLOW Setup

The following is an example of how the output files are all pieced together and read into TUFLOW. The examples aren't complete control file examples, but rather show the commands to be inserted into each control file with a brief explanation on what's going on.

1. Starting with the spatial distribution of the rainfall losses which is defined in the Geometry Control File (TGC).

Geometry Control File

Set Soil == 1  ! Globally set all active cells to soil type 1
Read GIS Soil == <path to GIS file>  ! Can be used to spatially vary soil type using polygons


2. The soil types have already been defined in the output soils.tsoilf file - Refer to the TUFLOW Manual for more information. This file defines soil type 1 as using the initial / continuing loss method. The values <<IL_test>> and <<CL_test>> are variables because they have the triangular brackets << >> ("test" in this case is the catchment name).

ARR example tsoilf 02.png

3. The IL_test and CL_test values are being set in soil_infilatration.trd. This file is using IF statements to set the values based on the event.

ARR example soil infiltration trd 01.png

4. Both the soils.tsoilf and soil_infiltration.trd need to be read into the TUFLOW Control File (TCF) (order does not matter). Both files were copied to the TUFLOW/model directory.

TUFLOW Control File

Read Soils File == ..\model\soils.tsoilf  ! Location of soils file (.tsoilf)
Read File == ..\model\soil_infiltration.trd  ! Read file containing variable values


5. The boundary database and inflow files also need to be read in. bc_dbase.csv and the rf_inflow folder were copied to the TUFLOW/bc_dbase directory.

TUFLOW Control File

BC Database == ..\bc_dbase\bc_dbase.csv  ! Location of boundary database


6. An event database has already been created - Event_File.tef. This file contains an event entry for each of the 1 magnitude, 8 durations (1 hr -> 12 hr), and 10 temporal patterns that was selected in the tool.

ARR example tef.PNG


7. The Event_File.tef also needs to be read into the TCF. The Event_File.tef was copied into the TUFLOW/runs directory.

TUFLOW Control File

Event File == Event_File.tef  ! Location of event file (.tef)

8. When running the model, the following flags can be added to the batch file. The event names must match the names in the Event_File.tef as stated after the command Define Event ==

Run Batch File - in this example, e1 = Event Magnitude, e2 = Event Duration, e3 = Temporal Pattern

TUFLOW.exe -b -e1 1p -e2 060m -e3 TP01 my_model.tcf
TUFLOW.exe -b -e1 1p -e2 060m -e3 TP02 my_model.tcf
TUFLOW.exe -b -e1 1p -e2 060m -e3 TP03 my_model.tcf
TUFLOW.exe -b -e1 1p -e2 060m -e3 TP04 my_model.tcf
TUFLOW.exe -b -e1 1p -e2 060m -e3 TP05 my_model.tcf
... and so on



Up
Go-up.png Back to QGIS ARR to TUFLOW