Difference between revisions of "XPSWMM Conversion Export SWMM INP"

From Tuflow
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Export SWMM INP Files ==
 
== Export SWMM INP Files ==
SWMM cannot directly read GeoPackage databases. Therefore, we need to export 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>
+
SWMM cannot directly read GeoPackage databases. Therefore, we need to export 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.
 
'''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.
  
Line 10: Line 10:
 
<li> Click '...' and navigate to the '''TUFLOW\model\swmm''' folder. Select the RNF GeoPackage file.
 
<li> Click '...' and navigate to the '''TUFLOW\model\swmm''' folder. Select the RNF GeoPackage file.
 
<li> Repeat steps 4 and 5 for the inlet curves GeoPackage.
 
<li> Repeat steps 4 and 5 for the inlet curves GeoPackage.
<li> Set the output GeoPackage file names to match the input INP file names.
 
 
<li> Click 'Run'. Once the tool has finished, click 'Close'.
 
<li> Click 'Run'. 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'''.
 
<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>
 
<br><br>
{{Video|name=Animation_XPtoTUFLOW_1D_model_11a.mp4|width=1350}}
+
{{Video|name=Animation_XPtoTUFLOW_1D_model_15a.mp4|width=1350}}
 
<br>
 
<br>
 
</ol>
 
</ol>
Line 20: Line 19:
  
 
{{Tips Navigation
 
{{Tips Navigation
|uplink=[[XPSWMM_to_TUFLOW-SWMM#TUFLOW_Control_File_Updates| Continue to Next Step: Update TUFLOW Control Files]]
+
|uplink=[[XPSWMM_to_TUFLOW-SWMM#TUFLOW_Control_Files_Updates| Continue to TUFLOW Control Files Updates Section]]
}}
 
{{Tips Navigation
 
|uplink=[[XPSWMM_to_TUFLOW-SWMM#TUFLOW_Control_File_Updates| Back to Main XPSWMM to TUFLOW Conversion Page]]
 
 
}}
 
}}

Latest revision as of 13:29, 1 March 2024

Export SWMM INP Files

SWMM cannot directly read GeoPackage databases. Therefore, we need to export 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 Write to swmm inp plus icon 01a.png to add another GeoPackage to the tool.
  5. Click '...' and navigate to the TUFLOW\model\swmm folder. Select the RNF GeoPackage file.
  6. Repeat steps 4 and 5 for the inlet curves GeoPackage.
  7. Click 'Run'. Once the tool has finished, click 'Close'.
  8. 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 Continue to TUFLOW Control Files Updates Section