7.6. Generate SWMM File
7.6.1. SWMM Create Input
By default, the plugin extracts the entire primary wastewater structures. If you check Export only selected network, then both the selected primary and secondary network will be exported.
The
.inp
file is the input file format for SWMM. It contains the wastewater network AND simulation parameters. The network can be extracted from the QGEP data, but the simulation parameters must be set according to your study.The simulation parameters are copied from a provided template
.inp
file. A default file is provided in the plugin folder insrc\swmm_templates\default_qgep_swmm_parameters.inp
, but you can create and use your own template file.By default, the export supposes that you use an Horton Infiltration method. If another method is set in the template
.inp
, you might need to adapt the generated.inp
. See the linked issue
7.6.1.1. QGEP plugin
Launch SWMM Create Input
:
Database
: the name of the service used to connect to the databaseState
: Current or Planned: extract the wastewater structure according to the statusTemplate INP file
: a.inp
from which simulation parameters will be copiedDestination INP file
: the.inp
generated from QGEP dataExport only selected network
: Export primary and secondary selected network
7.6.2. Selection
Usually you will select a subnetwork to be exported with the QGEP button Upstream
and then Select current path
.
If you want to remove from this selection secondary structures:
Open
Selection by expression
on the layervw_qgep_reach
Expression:
"ch_function_hierarchic" in (5066, 5068, 5069, 5070, 5064, 5071, 5062, 5072, 5074)
Choose:
filter current selection
Open
Selection by expression
on the layervw_qgep_wastewater_structure
Expression:
"_channel_function_hierarchic" in (5066, 5068, 5069, 5070, 5064, 5071, 5062, 5072, 5074)
Choose:
filter current selection
7.6.3. Change default export parameters
As mentionned earlier, most of the simulation parameters are copied from the template .inp
file.
Remaining default parameters are currently hard coded in the views within the database qgep_swmm
schema.
The defaults parameters can be edited directly in the view (with PgAdmin).
Bemerkung
The default parameters modified in the views and modified views in general will be overwritten during a datamodel update.