Difference between revisions of "QGIS SWMM Convert XPSWMM GIS Inlet Layers to SWMM"

From Tuflow
Jump to navigation Jump to search
Line 23: Line 23:
 
=== Parameters ===
 
=== Parameters ===
 
<ol>
 
<ol>
<li>'''ESTRY Network Layers [optional]:''' Network layers to be converted and included in the SWMM inp file.
+
<li>'''GIS layer with inlet information:'''
<li>'''ESTRY Node Layers [optional]:''' Node layers to be converted and included in the SWMM inp file.
+
<li>'''Inlet name field:'''
<li>'''ESTRY Pit Layers [optional]:''' Pit layers to be converted and included in the SWMM inp file.
+
<li>'''Inlet elevation field:'''
<li>'''ESTRY Table Link Layers [optional]:''' Table link layers to be converted and included in the SWMM inp file.
+
<li>'''Inlet 2d capture flag (1=has 2d connection) field:'''
<li>'''ESTRY Pit Inlet Database [optional]:''' This is required to convert the pit (inlet) curves for use with SWMM.
+
<li>'''Inlet discharge equation coefficient field:'''
<li>'''Reference cell size for inlet connections:''' The 1D/2D linking for SWMM is always based upon a width while ESTRY can specify (using a negative number) an exact number of cells to use when linking. The reference cell size is used to convert fixed number of linked cells from ESTRY to SWMM.
+
<li>'''Inlet discharge exponent field:'''
<li>'''Network snap tolerance:''' This is the distance to search for nodes snapped to the endpoint of channels.
+
<li>'''Inlet connection width:'''
<li>'''Output CRS:''' The CRS used in the GeoPackage representation of the SWMM inp file.
+
<li>'''CRS:''' The CRS (Coordinate Reference System) for the TUFLOW-SWMM project.
<li>'''Create options, and report tables:''' Whether or not the options and report tables should be generated. This should be yes for stand alone models. No can be used to generate files used for scenarios where these tables are provided in a separate file.
+
<li>'''SWMM inp file (for inlet definition and curves):''' Determines the location and filename of the output SWMM inp file.
<li>'''Options table report step (hh:mm:ss):''' The SWMM report step to use if writing the options table.
+
<li>'''GeoPackage file for inlet usage (for inlet placement):''' Determines the location and filename of the output GeoPackage.
<li>'''Options table minimum surface area:''' This parameter can help stabilize a model.
 
<li>'''SWMM output filename:''' Determines the location and filename of the output SWMM inp file.
 
<li>'''SWMM inlet usage GeoPackage filename:''' Determines the location and filename of the output GeoPackage.
 
 
</ol>
 
</ol>
 
<br>
 
<br>

Revision as of 15:19, 14 December 2023

Introduction

This tool converts an XPSWMM GIS layer with 2D connectivity information for use with TUFLOW-SWMM. The tool works on discharges computed from the equation: Q=coefficient*depthexponent. This processing tool generates a GIS layer that can be used to with the "Read GIS SWMM Inlet Usage" command to link SWMM inlets to a TUFLOW 2D model.

To export the GIS layer required from XPSWMM or the XPSWMM Viewer:

  1. Right click on the nodes layer and choose "Export to GIS."
  2. Expand the tree folders "Hydraulics Node\HDR Node Data"
  3. Select Node 2D Inflow Capture Flag, Gound Elevation(Spill Crest), 2D Inflow Capture Coefficient, and 2D Inflow Capture Exponent
  4. Remove the paranthesis from "Ground Elevation(Spill Crest)." Required for some versions of QGIS
  5. Set the GIS filename
  6. Click Export

The inlets require a name for each combination of coefficient and exponent that must be added to the GIS layer.
Once the layer is setup, run the tool and select the parameters for the appropriate fields. The ground elevation should be used for the "Inlet elevation field." The CRS should match the TUFLOW-SWMM project.

Usage

This tool, Convert - XPSWMM GIS inlet layers to SWMM, can be found in the QGIS processing toolbox panel under 'TUFLOW > SWMM'. To open the Processing Toolbox Panel, navigate to 'Processing' in the menubar and select 'Toolbox'.

Open processing toolbox.png

Parameters

  1. GIS layer with inlet information:
  2. Inlet name field:
  3. Inlet elevation field:
  4. Inlet 2d capture flag (1=has 2d connection) field:
  5. Inlet discharge equation coefficient field:
  6. Inlet discharge exponent field:
  7. Inlet connection width:
  8. CRS: The CRS (Coordinate Reference System) for the TUFLOW-SWMM project.
  9. SWMM inp file (for inlet definition and curves): Determines the location and filename of the output SWMM inp file.
  10. GeoPackage file for inlet usage (for inlet placement): Determines the location and filename of the output GeoPackage.


XPSWMM to SWMM dialog.png

Example



Up
Go-up.png Back to TUFLOW QGIS Plugin Main Page