Difference between revisions of "XPSWMM Conversion Export SWMM INP"

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:
 +
===Export INP Files===
 +
SWMM cannot directly read GeoPackage databases. Therefore, we need to convert all three GeoPackage files (HDR, RNF and inlet curves) into the SWMM INP file format. Both the HDR and RNF GeoPackages contain a '''Project--Options''' section, which are identical as they were extracted from the same XPSWMM model. These options are necessary for executing the SWMM simulation. Since '''Project--Options''' is already included in the HDR and RNF, it is not needed in the inlet curves INP file. <br>
 +
'''Note:''' The inlet usage GeoPackage does not need to be converted to a SWMM inp file. Since it contains only one layer, it can be directly read into TUFLOW SWMM.
 +
 +
<ol>
 +
<li> In QGIS, go to TUFLOW >> SWMM in the processing tool list and select '<u>[[QGIS_SWMM_GeoPackage_Write_to_SWMM_inp |GeoPackage - Write to SWMM inp]]</u>'.
 +
<li> In the tool window, select 'Run as Batch Process...' (located at the bottom left). This feature allows us to convert multiple GeoPackages to SWMM inp files in one go.
 +
<li> Under 'GeoPackage Input File', click '...' and navigate to the '''TUFLOW\model\swmm''' folder. Select the HDR GeoPackage file.
 +
<li> Click the plus icon
 +
<li> Click 'Run'.
 +
<li> Once the tool has finished, click the 'Parameters' tab.
 +
<li> Repeat steps 2 and 3 for the RNF and inlet curves GeoPackages.
 +
<li> Once the tool has finished, click 'Close'.
 +
<li> The three SWMM INP files will be located in the '''TUFLOW\model\swmm''' folder, with each file sharing the same filename as their respective GeoPackages. For example, '''1D2D_Urban_HDR_001.gpkg''' > '''1D2D_Urban_HDR_001.inp'''.
 +
<br><br>
 +
{{Video|name=Animation_XPtoTUFLOW_1D_model_11a.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:15, 15 February 2024

Export INP Files

SWMM cannot directly read GeoPackage databases. Therefore, we need to convert all three GeoPackage files (HDR, RNF and inlet curves) into the SWMM INP file format. Both the HDR and RNF GeoPackages contain a Project--Options section, which are identical as they were extracted from the same XPSWMM model. These options are necessary for executing the SWMM simulation. Since Project--Options is already included in the HDR and RNF, it is not needed in the inlet curves INP file.
Note: The inlet usage GeoPackage does not need to be converted to a SWMM inp file. Since it contains only one layer, it can be directly read into TUFLOW SWMM.

  1. In QGIS, go to TUFLOW >> SWMM in the processing tool list and select 'GeoPackage - Write to SWMM inp'.
  2. In the tool window, select 'Run as Batch Process...' (located at the bottom left). This feature allows us to convert multiple GeoPackages to SWMM inp files in one go.
  3. Under 'GeoPackage Input File', click '...' and navigate to the TUFLOW\model\swmm folder. Select the HDR GeoPackage file.
  4. Click the plus icon
  5. Click 'Run'.
  6. Once the tool has finished, click the 'Parameters' tab.
  7. Repeat steps 2 and 3 for the RNF and inlet curves GeoPackages.
  8. Once the tool has finished, click 'Close'.
  9. The three SWMM INP files will be located in the TUFLOW\model\swmm folder, with each file sharing the same filename as their respective GeoPackages. For example, 1D2D_Urban_HDR_001.gpkg > 1D2D_Urban_HDR_001.inp.


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