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

From Tuflow
Jump to navigation Jump to search
Line 27: Line 27:
 
=== Parameters ===
 
=== Parameters ===
 
<ol>
 
<ol>
<li>'''GIS layer with inlet information:''' GIS layer to be converted to SWMM.  
+
<li>'''GIS layer with inlet information:''' XPSWMM GIS layer to be converted to TUFLOW-SWMM.  
<li>'''Inlet name field:''' Name of the GIS inlet layer.
+
<li>'''Inlet name field:''' Name of the XPSWMM GIS layers' field that contains the names of the attributes. I.e. For a node layer, the inlet name field could be 'NodeName'.
<li>'''Inlet elevation field:''' Elevation of the GIS inlet layer.
+
<li>'''Inlet elevation field:''' Name of the XPSWMM GIS layers' field that contains the elevation data.
<li>'''Inlet 2d capture flag (1=has 2d connection) field:''' Determines whether the inlet is connected to the 2D domain.  
+
<li>'''Inlet 2d capture flag (1=has 2d connection) field:''' Name of the XPSWMM GIS layers' field that determines whether the inlet is connected to the 2D domain.  
 
<li>'''Inlet discharge equation coefficient field:''' 'Coefficient' value from the equation above.  
 
<li>'''Inlet discharge equation coefficient field:''' 'Coefficient' value from the equation above.  
 
<li>'''Inlet discharge exponent field:''' 'Exponent' value from the equation above.  
 
<li>'''Inlet discharge exponent field:''' 'Exponent' value from the equation above.  
<li>'''Inlet connection width:''' Inlet connection width.  
+
<li>'''Inlet connection width:''' The length used to assign the number of 2D cells associated with the 1D/2D connections.  
 
<li>'''CRS:''' The CRS (Coordinate Reference System) for the TUFLOW-SWMM project.
 
<li>'''CRS:''' The CRS (Coordinate Reference System) for the TUFLOW-SWMM project.
<li>'''SWMM inp file (for inlet definition and curves):'''  Determines the location and filename of the output SWMM inp file.
+
<li>'''SWMM inp file (for inlet definition and curves):'''  Determines the location and filename of the output 'inlet definition and curves' data. This tool will save both a SWMM (.inp) and a GeoPackage (.gpkg) file to the specified output folder under the specified output name.
<li>'''GeoPackage file for inlet usage (for inlet placement):'''  Determines the location and filename of the output GeoPackage.
+
<li>'''GeoPackage file for inlet usage (for inlet placement):'''  Determines the location and filename of the output inlet usage data. The tool will save this data in a GeoPackage (.gpkg) file.
 
</ol>
 
</ol>
 
<br>
 
<br>

Revision as of 11:01, 29 February 2024

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 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)' as it is 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.

Note: To convert an entire XPSWMM model to TUFLOW-SWMM, see XPSWMM to TUFLOW-SWMM.

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: XPSWMM GIS layer to be converted to TUFLOW-SWMM.
  2. Inlet name field: Name of the XPSWMM GIS layers' field that contains the names of the attributes. I.e. For a node layer, the inlet name field could be 'NodeName'.
  3. Inlet elevation field: Name of the XPSWMM GIS layers' field that contains the elevation data.
  4. Inlet 2d capture flag (1=has 2d connection) field: Name of the XPSWMM GIS layers' field that determines whether the inlet is connected to the 2D domain.
  5. Inlet discharge equation coefficient field: 'Coefficient' value from the equation above.
  6. Inlet discharge exponent field: 'Exponent' value from the equation above.
  7. Inlet connection width: The length used to assign the number of 2D cells associated with the 1D/2D connections.
  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 'inlet definition and curves' data. This tool will save both a SWMM (.inp) and a GeoPackage (.gpkg) file to the specified output folder under the specified output name.
  10. GeoPackage file for inlet usage (for inlet placement): Determines the location and filename of the output inlet usage data. The tool will save this data in a GeoPackage (.gpkg) file.


Convert XPSWMM GIS Inlet Layers to SWMM Dialog a.png


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