How to use the TUFLOW link-lines generator tool
    • 26 Jul 2022
    • 7 Minutes to read
    • Dark
      Light

    How to use the TUFLOW link-lines generator tool

    • Dark
      Light

    Article Summary

    This section explains how to use the Flood Modeller tool for defining TUFLOW link lines, i.e. to link a TUFLOW 2D model to a Flood Modeller 1D river network:

    1. Open Flood Modeller and use the Add GIS Data button tool (Home tab of main toolbar) to load your required datasets to the map view. Your required data is selected from the following:
      • A 1D model network. The tool will read cross section data from the active 1D network and create link lines that start / end at the closest locations to the ends of your sections (or ends of active portions if partially deactivated). Therefore, specified network must be fully geo-referenced to work in the tool. If not, then first review the Flood Modeller user guide section on how to geo-reference a 1D model.
      • As an alternative to a georeferenced 1D model network, use a point shape file representing your model nodes (e.g. an imported gxy file from a 1D model). The shapefile must include 1D node labels as attributes.
      • A polyline or polygon shape file representing the boundary of your TUFLOW 2D model, e.g. a bank line marking the edge of your 1D model extent. The link line tool will “trace” along this when creating new TUFLOW HX lines. Furthermore, CN lines created will end at the locations on the shapefile closest to each 1D node point. This shapefile does not require specific attributes. Note the tool offers the alternative option of also using the specified active 1D network. In this case HX lines will be created by joining between section end points (or ends of active portions if partially deactivated).
    2. Select the TUFLOW link line generator tool from the 2D Build tab (main toolbar), as shown below:
      IntegratedimagesTUFLOWlinklinegen1.png
    3. The following new window will then appear:
      IntegratedimagesTUFLOWlinklinegen2.png
      The tool requires the following information to be specified:
      • Select which TUFLOW lines to generate – the tool can be used to generate both TUFLOW boundary lines, HX lines, and TUFLOW 1D-2D connection lines, CN lines. By default, the tool will produce HX and CN lines at the same time and in the same shapefile. This setting enables HX and CN lines to be created in separate files if required.
      • Specify source for 1D nodes - this can be a 1D network (dat) file or a point shape file created by importing a network gxy file into the map. Any compatible files loaded into your map or project view can be selected from a dropdown list in the tool. Alternatively, browse buttons are provided to select a file that is external from your project.
      • Set start and end nodes – the available nodes in the selected 1D network will be listed in two dropdown lists for you to select a start and end node. These are the nodes that define the start and end of the reach that will be linked to your 2D domain, i.e. where water can pass between the models.
      Useful tip:

      Note that the tool can append links calculated for the specified reach to an existing TUFLOW link line shapefile (as an alternative to creating a new file). Thus, if you need to link multiple reaches you can repeat the linking exercise multiple times and append all links to the same shapefile.

      • Specify end of cross section – If you are linking using a georeferenced network then you can link between (or close to) the extreme left or right ends of each defined cross section or the ends of the active portions if you have deactivated areas.
      • Specify path for link lines – If your 1D network is georeferenced then you can select to create HX lines by joining straight lines between the end points of each 1D section. You can also choose to create HX lines on just the right or left banks of your 1D river or along both banks at the same time.
        Alternatively, instead of drawing straight lines between adjacent 1D cross sections, you can specify a polyline or polygon shapefile to trace along. These can be selected from the dropdown list populated with compatible files from your project or by using the browse button to select an external file. If the selected shapefile contains multiple lines or polygons (as separate features) select also the feature that the tool will trace along (a second dropdown list is automatically populated with the ID value of all features in the selected shape file).
      • Specify output file – The name and location for the TUFLOW link line shape file to be generated can be set using the adjacent browse button or by typing the name and location (full path) into the space provided. This can be a new file or you can choose to append calculated link line data to an existing link line shape file, e.g. where multiple river reaches are linked to the same active area (each reach will be calculated separately, but can be combined into a more efficient single file).
        You can choose to also automatically load these data to your map view upon completion of the link line generation process. A tick box is provided entitled “Add to View”, which by default is ticked.
    4. When all the above settings are defined you can proceed with the automated link line generation (by clicking the OK button). Depending upon your input data selection the tool will create HX and CN lines in one of the following ways:

       

      Settings

      HX/CN line definition

      1

      1D network nodes – use active network

      Link line path – use active network

      HX line joins between end points of cross sections (either full sections or just active portions)

      CN line joins from mid-point of section to end point (which is also a point on the HX line)

      2

      1D network nodes – use shapefile (i.e. node points shapefile)

      Link line path – use shapefile (i.e. polyline or polygon)

      HX lines trace along specified shapefile

      CN line joins from node point to closest location on HX line (in some cases a new point will need to be added to the HX line at this location)

      3

      1D network nodes – use active network

      Link line path – use shapefile (i.e. polyline or polygon)

      HX lines trace along specified shapefile

      CN line joins from end points of cross sections (either full sections or just active portions) to closest location on HX line (in some cases a new point will need to be added to the HX line at this location).

      Code will not “know” which end point to use so will need to check both and just use the closest one to the HX line.

      4

      1D network nodes – use shapefile (i.e. node points shapefile)

      Link line path – use active network

      This is not a valid option (and cannot be selected in the tool)

      Note:

      The link line tool will create CN links for interpolate and replicate 1D sections. As these unit types do not include cross section extent data the link line tool will assume a section with the same extent as the upstream river section, extending perpendicular to the river centreline. In some cases, these links may need to be further edited manually to locate correctly. Thus, it is always recommended the link line tool output be reviewed before it is used in a model.

      Furthermore, note the link line tool will not draw HX lines that extend across structures within the 1D network. However, if your 1D network is represented by a shapefile then this functionality depends on your shapefile including a node type attribute to enable structures to be identified.

    5. When the calculation process is completed the tool will ask you if you want to append further link line analyses to your new file. If you answer no, then the window will close and return you to the map view. If you answer yes, then the tool will remain open for you to specify linking between a different range of 1D nodes. These links can then be added to a new link line shapefile or appended as new features in your existing link line shapefile.
      Note:

      The link line generator tool is only provided to help speed up the process of building TUFLOW link lines. It will not always be able to produce all required links in a single “one-click” operation. Furthermore, it will not be able to traverse structures in your 1D network and in some scenarios, it may be confused by a particular 1D setup and make a mistake. Hence it is always recommended that you check your automatically generated link lines carefully as further manual editing may be required to complete your model setup. Manual edits might be:

      • Correcting links that overlap with the adjacent link lines (can sometimes happen when linking around bends). Correction needed to avoid double counting of 1D model inputs to the same cells of a 2D model.
      • Add additional links across reaches that the automatic tool was unable to link across, i.e. fill in any gaps.
      • Positioning of CN lines for interpolate and replicate 1D section nodes.

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.