swmm-network

Solid

Build, validate, and route SWMM pipe-network models for urban drainage from raw municipal shapefiles or structured GIS/CAD exports. Use when handling junctions, conduits, outfalls, xsections, network field-mapping configs, or wiring subcatchments to upstream nodes. Requires real pipe data as SHP / GeoJSON / CSV — native CAD (DXF/DWG) is not parsed and must first be exported to one of these. For data-scarce areas where only a bbox is available and no pipe inventory exists, use `swmm-anywhere` instead.

Data & Documents 21 stars 9 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
45
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# SWMM Network (pipe-system layer) Part of [Agentic SWMM](https://github.com/Zhonghao1995/agentic-swmm-workflow) — install the project first for the executable toolchain (aiswmm CLI, SWMM solver, MCP servers). ## What this skill provides - A stable JSON schema for SWMM drainage-network structure. - Two complementary import paths: - **Raw municipal shapefile path** (`prepare_storm_inputs` → `infer_outfall` → `reorient_pipes` → `import_city_network` → `qa`) for typical city storm-pipe + manhole layers that arrive as bare LineString shapefiles. - **Structured asset-DB path** (`import_city_network` directly, or `import_network` for a fully field-mapped GeoJSON/CSV) when the source already contains explicit from/to nodes, inverts, and diameters. - A subcatchment-to-network wiring step (`assign_subcatchment_outlets`) that ensures surface runoff actually enters the pipe network at a real upstream junction rather than dumping straight to the outfall. - Topology / hydraulic-attribute QA (`qa`). - Lightweight introspection (`summary`). - Export from network JSON to core SWMM INP sections (`export_inp`). ## When to use this skill Use when a SWMM model needs a real pipe network. Specifically: - You have municipal storm-pipe shapefile(s) and want them imported into a SWMM-ready network.json. - You have a structured CAD/asset-DB export (CSV / GeoJSON with explicit topology) and want the same. - You need to attach subcatchments to upstream junctions instead of letting them dump to...

Details

Author
Zhonghao1995
Repository
Zhonghao1995/agentic-swmm-workflow
Created
5 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category