QGIS ReFH2 to TUFLOW
Introduction
Originally published in 1999, and subject to continuous development, the Flood Estimation Handbook (FEH) comprises the standard methods for estimating flood frequency in the UK. The rainfall-runoff model is one of two core handbook methods. In 2015, the Centre of Ecology and Hydrology (CEH) and Wallingford Hydro Solutions (http://www.hydrosolutions.co.uk) released a new version of the Revitalised Flood Hydrograph rainfall-runoff model (ReFH2) which allows users to generate design flows and hydrographs from given rainfall events for both catchment and development sites. ReFH2 is a rainfall-runoff model that takes inputs from the FEH web service (https://fehweb.ceh.ac.uk) and generates design rainfall events and provides a method for calculating design runoff from sites or contributing subcatchments. For a full description of the approaches, the reader is referred to their guidance which can be freely accessed at:- https://www.hydrosolutions.co.uk/support/refh2_faq/refh2_literature/. The ReFH2 method is available within the ReFH2 software. Version 3 of the ReFH2 software was released in 2020 which introduced a new model referred to as '2.3' with some changes to the ReFH2 models as well as support for climate-change adjusted rainfall, new default seasonality based on urban extent and use of the BFIHOST19 descriptor.
FEH 2022 Rainfall
FEH2022 is the most up-to-date Depth Duration Frequency (DDF) model for generating design rainfall hyetographs. CEH recommend the use of FEH2022, which supersedes the FEH2013 DDF model and therefore the 1999 method . In order to generate the design rainfall, the user obtains FEH2022 design rainfall depths from the FEH Web Service at https://fehweb.ceh.ac.uk for pre-defined return period/duration combinations. This requires a log on and user credits to purchase the data for the desired location. Data is available at a river catchment scale and as a point value. Both of these provide XML containing the rainfall depths. This is then imported into the ReFH2 software to generate hyetographs based on Flood Studies Report (FSR)/FEH approaches. The ReFH2 2.3 model supports use of both the 2013 and 2022 DDF models. Version 2.2 only supports the 2013 DDF model, an error message will be generated should the user try to use the 2022 DDF rainfall with the 2.2 ReFH2 model.
ReFH2 Runoff
The first version of ReFH was first published in 2005 by Kjeldsen et al 1 as a replacement for the original FEH rainfall-runoff method, the FSR/FEH rainfall-runoff method 2. ReFH2 is the most up-to-date implementation of the methods for the calculation of runoff. Improvements include a mass balance closure improvement to the runoff model and updates to the initial conditions, BF0 and Cini (initial baseflow and initial soil moisture, C, respectively). The data contained in the XML from the FEH2013 Web Service also provides the catchment descriptors to calculate the necessary model parameters within ReFH 2 from which the runoff hydrograph is developed. ReFH2.3 is now the latest ReFH2 model.
Creating Design Rainfall and Runoff within ReFH2 for use with TUFLOW
The following wiki page, Using ReFH2 to Generate TUFLOW Boundary Inputs, provides some information of how to use the ReFH2 software and how to take the outputs and configure them into a format which can be used as a boundary condition within TUFLOW. To further assist this, a QGIS tool in has been developed which allows creation of rainfall and inflow boundaries using ReFH2 without having to go through the ReFH2 user interface. The tool which allows interaction with the ReFH2 software directly without opening the UI. The ReFH2 to TUFLOW tool is part of the TUFLOW plugin which is explained further in the TUFLOW Viewer page. The instructions on the page should be followed to install the QGIS plugin.
ReFH2 Licensing
In order to use the tool, ReFH2 Version 2.27059.19021 or later, must be installed on the local machine which can be downloaded from the following link (https://www.hydrosolutions.co.uk/software/refh-2/refh2_download/). The ReFH2 software requires the relevant local licence.
ReFH2 Tool
To use the ReFH2 to TUFLOW tool, open the TUFLOW plugin menu and scroll down to ‘Extract ReFH2 for TUFLOW’. We encourage feedback from external users, any comments or suggestions should be sent to support@tuflow.com.
Once the ‘Extract ReFH2 for TUFLOW’ tool has been selected, the ReFH2 to TUFLOW Dialog will appear.
The tool has a number of data input sections with the following headings associated with them:-
- Location
- Event Selection
- Input GIS (optional)
- Output.
Each of these sections is described in turn, in the following text.
Location
The first section is where the XML files from the FEH2013 website are loaded into the tool. Both point descriptors and catchment descriptors are supported. The user can then specify whether the location is in England/Wales/Northern Ireland or in Scotland. The ReFH2 software includes Scotland specific algorithms to estimate model parameters from catchment descriptors. More information can be found in the ReFH2 Technical Report. If using the ReFH2.3 engine, the ReFH2.3+ descriptors which contain the BFIHOST19 value should be used. The ReFH2.3+ descriptors were added to the FEH Web Service in November 2019. If the BFIHOST19 parameter is omitted, the 'legacy' 2.2 ReFH2 model used will be needed.
When using Catchment Descriptors, the area value from the XML file will be used. For Point Descriptors, there is no area value within the XML file, so the user is prompted to provide an area in km2. This can be user specified or can be taken from a GIS polygon specified in a later section. If specifying an urban area, also in km2, this is used with Catchment Descriptors for Urban Outputs only. For point descriptors, the urban area is used for both Rural and Urban outputs. The urban area represents the mapped urbanised area within the catchment.
The user can also specify a user-defined Areal Reduction Factor which will override the calculated value by the ReFH2 software. If no value is supplied, the ARF calculated by the ReFH2 software will be used.
Event Selection
Once the relevant location specific data has been input, then the user should first pick the ReFH2 model that they would like to use. The 'legacy' 2.2 and newer 2.3 ReFH2 models are available. In order to use the ReFH2.3 model ReFH2.3+ descriptor files, containing a new BFIHOST19 parameter, are required. If ReFH2.2 parameters are used with the ReFH2.3 engine, an error message will be flagged. The latest Catchment Descriptors contain information for the 2022 DDF model as well as the 2013 DDF model. The 2022 DDF model is recommended by CEH. However, the 2022 DDF parameters cannot be used with the legacy 2.2 ReFH2 model. Both 2013 and 2022 DDF parameters can be used with the 2.3 ReFH2 model by specifying the desired option in the FEH Rainfall model section. The default options are to use the 2022 DDF model witht he 2.3 ReFH2 model.
Once the ReFH2 engine version is selected, the user is then required to pick the events that they are interested in. The user can select from a number of pre-determined return periods or specify their own. All return period boundary conditions will be output in a single csv file for use as a TUFLOW boundary condition.
The user can also specify a duration and a timestep. If no duration is specified, then the ReFH2 to TUFLOW tool will use the recommended duration determined by the ReFH2 software. The recommended duration is a function of the time to peak parameter (Tp) and the catchment average annual rainfall (SAAR). Once the duration is specified, an appropriate timestep is required that meets the requirement that the duration must be an odd multiple of the timestep. Table 1 below shows some common timesteps for some common durations. Where possible it is recommended a timestep between 10% and 20% of the duration should be used.
Duration (HH:MM:SS) | Example Timestep Interval (HH:MM:SS) | Number of intervals for duration period |
---|---|---|
00:15:00 | 00:03:00 | 5 |
00:30:00 | 00:06:00 | 5 |
01:00:00 | 00:12:00 | 5 |
02:00:00 | 00:08:00 | 15 |
03:00:00 | 00:12:00 | 15 |
06:00:00 | 00:24:00 | 15 |
09:00:00 | 00:36:00 | 15 |
12:00:00 | 00:48:00 | 15 |
An error will be shown if the duration is not an odd multiple of the timestep value. It is now possible to generate multiple Return Period-Duration hyetographs and hydrographs at once with the ReFH2 to TUFLOW tool. Each duration will result in a separate output file containing the selected return periods.
Climate Change can also be specified for each of the selected return periods. This requires the addition of a climate change factor. The factor is used to uplift the rainfall in the ReFH2.3 engine from which runoff and baseflows are generated, it is not used to uplift flows directly. The climate change factor is not used when using the ReFH2.2 model. A factor of 1.3 will provide a 30% uplift to the rainfall. Climate change factors are reported in the output hyetographs or hydrographs headings, for example, 'Total flow m3/s (10 year 1.2 CC) - as 100% rural model'.
Finally, the user will select whether to use the summer or winter profiles. These are described in the FEH Supplementary Report No. 1 FEH Supplementary Report No. 1. Note the selection of the winter/summer profile will override the values automatically selected by the ReFH2 engine. This is important to note when comparing outputs to ReFH2 particularly for urban areas. 2. When using an urban area, ReFH2 automatically changes the profile type when the URBEXT2000 is ≥0.3 or 0.15≤Urbext2000 and BFIHost is ≥0.65. The user will need to ensure the correct season profile is used in the ReFH2 to TUFLOW tool. Each seasonal profile will require generating separately and will generate it's own csv file.
Input GIS (optional)
A GIS layer can be used to help specify an area when using point descriptors, or to specify a TUFLOW boundary to a particular region, point or line. The user must specify the ‘Input Catchment Layer’ which is the GIS layer which the feature exists in, specify the ID field and the specific feature that the user is wanting to use to calculate the area or output to.
Output
Once the location, event selection and, if selected, the input GIS are specified, the user then selects the outputs that they are wanting to use within their TUFLOW model. These can be rainfall hyetographs or inflow hydrographs. Rainfall outputs can be applied as 2d_rf or 2d_sa_rf TUFLOW boundaries. The user selects whether they want to use the Gross Design Rainfall, or the Net Design Rainfall where the ReFH2 losses have been applied. The former would usually be applied to TUFLOW with some allowance for losses within TUFLOW, most commonly via 2D Infiltration. The latter will have ReFH2 losses already accounted for so additional losses would not usually be required. As well as the option to specify Gross or Net rainfall, the user can also select the rainfall type. The options are rural and urban. The rural rainfall is the default option which would represent the situation were the subcatchment 100% rural whereas the urban rainfall allows the representation of the URBEXT2000 parameter or Urban Area if specified in the 'Location' section. Further control over the impact of urbanisation can be carried out within the ReFH2 software. Note, that this option will only affect the Net Design Rainfall, it will have no impact on the Gross Design Rainfall. The output in both cases is the Total net rain mm (ARI) which for the rural model is 100% rural and with the urban model is the sum of the Urban net rain mm (ARI) and the Rural net rain mm (ARI). When using point descriptors, it is important to specify an appropriate Urban Extent in the 'Location' section to derive the correct losses for the study area.
The other option is to output an inflow hydrograph which can be output to TUFLOW 1D_bc, 2D_bc and 2d_sa boundaries. The user can again select the rural and urban boundary types. There is also the option to select the inflow, ReFH2 calculates the total runoff as the sum of direct runoff and base flow. The direct runoff is obtained via a soil moisture accounting approach to convert rainfall to direct runoff. The base flow model is based on the linear reservoir concept. Splitting up the runoff hydrographs allows the user to apply the direct runoff as a 2d_sa boundary to apply the flow over a region and then add the base flow as a point or line source elsewhere within the model domain. The ReFH2 to TUFLOW tool allows different combinations of hyetographs and hydrographs to be output (for example, Net Rural Rainfall hyetographs with Urban Direct Total Runoff Hydrographs).
When the tool is run, three csv files are output. The first is the raw output from ReFH2. This contains the timeseries of all the result parameters for the selected return periods of interest. This will have the same name as the XML file which is loaded into the ReFH2 to TUFLOW tool unless the ReFH2 Output File option is used to specify a different name and location for the file (for example, a TUFLOW bc_dbase folder).
A second csv file is the processed data for the output of interest (ie, net rainfall or direct runoff) for the return periods of interest. This file is named as the above raw file but has the suffix ‘_TUFLOW’. As well as only included the selected output time-series, the time format is converted from HH:MM:SS to hours which is the format used by TUFLOW. The first value in the time series is also set to Zero to be valid within a TUFLOW simulation.
The third csv output is a bc_dbase.csv file which links the boundary name to the source csv. An optional Boundary name can be specified to specify the boundary ID which the hyetograph or hydrograph is applied to. When a GIS layer has been used as an input, the input feature will override this setting. This value, or the GIS layer feature, will provide the name for the boundary within the bc_dbase.csv file. Column 1 references the ‘Time (hr)’ data in the processed time series csv file whereas column 2 will reflect the chosen output. Column 2 will contain the ~ARI~ wildcard, such that the column used will depend on the event simulated and specified in the batch file.
A fourth file is also generated which is the TUFLOW Event File (TEF). This defines the event names together with the ~ARI~ wild card value which would be used in the bc_dbase.csv file to link the correct event with the boundary conditions. The use of TUFLOW event is described in a later section.
The zero padding option in the ReFH2 to TUFLOW tool determines how many zeros are added to the event name. For instance:-
- Choosing ‘no zero padding’ will set the event name to ‘1yr’.
- Choosing ‘Auto Pad with zeros’ will pad the event names so that all events have the same number of figures. For example if the 100 year event is the highest event, the 1 year event will be named ‘001yr’, if the 1000year event is the largest, the 1 year event will be named ‘0001yr’.
- Choosing a value will set the padding to that many zeros, for instance 3, will set the name to ‘0001yr’.
The event name will be that which will need be specified in the batch file when using TUFLOW event files.
Finally, if the option to ‘Output to TUFLOW’ GIS is selected, then a GIS file in the correct TUFLOW boundary format containing the point, line or region will be created.
These files can then be merged together by the user where multiple boundary conditions are required in the model domain and moved to the relevant TUFLOW model folders to be used within simulations.
Using TUFLOW Events
In most hydraulic modelling applications there will be a requirement to run a number of return period design events, potentially with a number of different durations. TUFLOW’s event options makes the management of these simulations a simpler process. TUFLOW’s event management structure uses a variety of wildcard characters in the TCF file and the boundary condition database for event inputs. The wildcards are replaced with user defined event specific acronyms when a simulation is run from a batch file. This will significantly reduce the number of repetitive files required to execute a project. TUFLOW event management is shown in the following image.
TUFLOW’s event management will be of use when running multiple return periods and durations events from ReFH2. Currently a single CSV file will be generated for a number of return periods from the ReFH2 software.
The wildcard works on column 2. So we can use this to obtain the return period as specified in the batch file and read the relevant column from a csv file exported directly from ReFH2. For example, in the file directly exported from ReFH2, the 1 year net rainfall column is called "Total flow m3/s (1 year) - as 100% rural model”. We can set column 2 to look for the "Total flow m3/s (~ARI~) – as 100% rural model" bc_dbase setup to read the relevant net rainfall column for the return period of interest based on the ARI wildcard.
Once the bc_base has been set up then a .tef file can be generated which populates the ARI variable above with the relevant return period for the specific simulation.
The .tcf can be named accordingly for example, Dummy_M01_~e1~_001.tcf, and the batch file commands used to set the ~e1~ value.
Start "Tuflow" /wait ".. \2018-03\TUFLOW_iSP_w64.exe" -e1 0001yr "Dummy_m01_~e1~_001.tcf" Start "Tuflow" /wait "..\2018-03\TUFLOW_iSP_w64.exe" -e1 0002yr "Dummy_m01_~e1~_001.tcf" Start "Tuflow" /wait "..s\2018-03\TUFLOW_iSP_w64.exe" -e1 0005yr "Dummy_m01_~e1~_001.tcf"
This will then run the 3 return periods (1yr, 2yr and 5 year) using the correct wildcard as specified in the tef file and using the relevant boundary data.
Summary
This post provides instructions of how to use the ReFH2 to TUFLOW tool within the TUFLOW QGIS plugin to obtain direct rainfall and inflow inputs from the ReFH2 software for use within a TUFLOW model. This requires the input of data from the FEH Web Service and the selection of the appropriate return period/duration combinations of which the user is interested. The tool can output the time-varying rainfall and total runoff (as well as runoff contributions) which can be exported for use within TUFLOW as well as specify a TUFLOW event file to increase efficiency when creating models for multiple return period/duration combinations.
References
1 T.R. Kjeldsen, E.J. Stewart, J.C. Packman, S.S. Folwell & A.C. Bayliss, 2005. Revitalisation of the FSR/FEH rainfall-runoff method. Defra R&D Technical Report FD1913/TR
2 Houghton-Carr, H., 1999. Restatement and application of the Flood Studies Report rainfall-runoff method, Flood Estimation Handbook Volume 4.
Up |
---|
![]() |