Difference between revisions of "XPSWMM Conversion Export SWMM Hydrology"

From Tuflow
Jump to navigation Jump to search
(Created page with "{{Tips Navigation |uplink= Back to XPSWMM to TUFLOW Conversion Page }}")
 
Line 1: Line 1:
 +
=== SWMM Hydrology ===
 +
If the XPSWMM model includes EPA SWMM hydrology, the hydrology components can be brought across into TUFLOW SWMM.
 +
 +
First, to confirm the SWMM Hydrology runoff method has been used in the XPSWMM model, review the model settings. In XPSWMM, from the top dropdown menu options, go to Configuration > Mode Properties. Under 'Solve Mode', select 'Methods' Confirm 'SWMM Methods (64 bit)' is selected. <br>
 +
<br>
 +
[[File:XPSWMM_to_TUFLOW_swmm_hydrology_runoff_method_01b.png]]
 +
<br><br>
 +
 +
Convert 1D XPSWMM hydraulics features into a EPA SWMM 5 INP file format for TUFLOW:
 +
<ol>
 +
<li> In XPSWMM, select 'Runoff Mode' from the toolbar.
 +
<br><br>
 +
[[File: XPSWMM_to_TUFLOW_toolbar_runoff_mode_01a.png|700px]]
 +
<br>
 +
<li> From the XPSWMM top dropdown menu options, select File > Import/Export Data > Export to EPASWMM 5. The exported INP file will be saved under the same name and in the same folder location as the .xp project file.
 +
<li> When prompted to save changes, select 'Yes'.
 +
<li> In QGIS, go to TUFLOW >> SWMM in the processing tool list and select '<u>[[QGIS_SWMM_GeoPackage_Create_from_SWMM_inp |GeoPackage - Create from SWMM inp ]]</u>'. This open the dialog shown below.
 +
:* SWMM Input File (inp): Navigate to the folder location of the .xp project file and select the recently exported INP file.
 +
:* CRS for GeoPackage: Select an appropriate Coordinate Reference System (CRS) for the model.
 +
:* GeoPackage output filename: Navigate to the '''TUFLOW\model\swmm''' folder. Save the file with the same name as the SWMM input file, but append 'RNF' to the filename. For example '''1D2D_Urban_001.inp''' > '''1D2D_Urban_RNF_001.gpkg'''.
 +
<li> Click 'Run'. Once the tool is finished, click 'Close'.
 +
<br><br>
 +
{{Video|name=Animation_XPtoTUFLOW_1D_model_08a.mp4|width=1350}}
 +
<br>
 +
<li> This tool has generated a '''Nodes--Junctions''' layer which is a duplicate of the '''Nodes--Junctions''' layer in the HDR GeoPackage. Thus, we will remove the RNF '''Nodes--Junctions''' layer.
 +
<li> In QGIS, from the top dropdown menu options, select View > Panels. Tick on 'Browser Panel'.
 +
<li> In the QGIS Browser Panel, navigate to the '''TUFLOW\model\swmm''' folder and open the RNF GeoPackage layer tree.
 +
:'''Note:''' Within the QGIS Browser Panel, there is a dropdown directory, 'Project Home'. This directory is a shortcut to the location where the QGIS workspace is saved.
 +
<li> Right click '''Nodes--Junctions''' and select Manage > Delete Layer.
 +
<li> In Windows File Explorer, navigate to the '''TUFLOW\model\swmm''' folder. Drag and drop the RNF GeoPackage into QGIS.
 +
<li> In the QGIS Layers panel, move the RNF GeoPackage below the other GeoPackages in the list. This will ensure the data within this database file does not cover the other layers in the project. <br>
 +
'''Note:''' For hydrology, TUFLOW has more advanced, workflow efficient 'Event Scenario Management' options than XPSMM. If your project requires the simulation of multiple hydrology events, please complete <u>[[TUFLOW_SWMM_Tutorial_M04 | TUFLOW SWMM Module 4]]</u> and use the model design concepts in it to upgrade the configuration of your TUFLOW model to accommodate for the simulation of multiple events from a single model.
 +
<br><br>
 +
{{Video|name=Animation_XPtoTUFLOW_1D_model_09a.mp4|width=1350}}
 +
<br>
 +
</ol>
 +
 +
 
{{Tips Navigation
 
{{Tips Navigation
 
|uplink=[[XPSWMM_to_TUFLOW-SWMM#One Dimensional_(1D)_SWMM_Model_Elements| Back to XPSWMM to TUFLOW Conversion Page]]
 
|uplink=[[XPSWMM_to_TUFLOW-SWMM#One Dimensional_(1D)_SWMM_Model_Elements| Back to XPSWMM to TUFLOW Conversion Page]]
 
}}
 
}}

Revision as of 11:14, 15 February 2024

SWMM Hydrology

If the XPSWMM model includes EPA SWMM hydrology, the hydrology components can be brought across into TUFLOW SWMM.

First, to confirm the SWMM Hydrology runoff method has been used in the XPSWMM model, review the model settings. In XPSWMM, from the top dropdown menu options, go to Configuration > Mode Properties. Under 'Solve Mode', select 'Methods' Confirm 'SWMM Methods (64 bit)' is selected.

XPSWMM to TUFLOW swmm hydrology runoff method 01b.png

Convert 1D XPSWMM hydraulics features into a EPA SWMM 5 INP file format for TUFLOW:

  1. In XPSWMM, select 'Runoff Mode' from the toolbar.

    XPSWMM to TUFLOW toolbar runoff mode 01a.png
  2. From the XPSWMM top dropdown menu options, select File > Import/Export Data > Export to EPASWMM 5. The exported INP file will be saved under the same name and in the same folder location as the .xp project file.
  3. When prompted to save changes, select 'Yes'.
  4. In QGIS, go to TUFLOW >> SWMM in the processing tool list and select 'GeoPackage - Create from SWMM inp '. This open the dialog shown below.
    • SWMM Input File (inp): Navigate to the folder location of the .xp project file and select the recently exported INP file.
    • CRS for GeoPackage: Select an appropriate Coordinate Reference System (CRS) for the model.
    • GeoPackage output filename: Navigate to the TUFLOW\model\swmm folder. Save the file with the same name as the SWMM input file, but append 'RNF' to the filename. For example 1D2D_Urban_001.inp > 1D2D_Urban_RNF_001.gpkg.
  5. Click 'Run'. Once the tool is finished, click 'Close'.


  6. This tool has generated a Nodes--Junctions layer which is a duplicate of the Nodes--Junctions layer in the HDR GeoPackage. Thus, we will remove the RNF Nodes--Junctions layer.
  7. In QGIS, from the top dropdown menu options, select View > Panels. Tick on 'Browser Panel'.
  8. In the QGIS Browser Panel, navigate to the TUFLOW\model\swmm folder and open the RNF GeoPackage layer tree.
    Note: Within the QGIS Browser Panel, there is a dropdown directory, 'Project Home'. This directory is a shortcut to the location where the QGIS workspace is saved.
  9. Right click Nodes--Junctions and select Manage > Delete Layer.
  10. In Windows File Explorer, navigate to the TUFLOW\model\swmm folder. Drag and drop the RNF GeoPackage into QGIS.
  11. In the QGIS Layers panel, move the RNF GeoPackage below the other GeoPackages in the list. This will ensure the data within this database file does not cover the other layers in the project.
    Note: For hydrology, TUFLOW has more advanced, workflow efficient 'Event Scenario Management' options than XPSMM. If your project requires the simulation of multiple hydrology events, please complete TUFLOW SWMM Module 4 and use the model design concepts in it to upgrade the configuration of your TUFLOW model to accommodate for the simulation of multiple events from a single model.



Up
Go-up.png Back to XPSWMM to TUFLOW Conversion Page