Related Experiment Video
Updated: May 13, 2025

Vegetated Treatment Systems for Removing Contaminants Associated with Surface Water Toxicity in Agriculture and Urban Runoff
Published on: May 15, 2017
Intelligent control of combined sewer systems using PySWMM-A Python wrapper for EPA's Stormwater Management Model
M E Tryby1, C A Buahin1, B E McDonnell2
1United States Environmental Protection Agency, Office of Research and Development, Andrew W. Breidenbach Environmental Research Center, Cincinnati, 45268, OH, USA.
Intelligent water systems use automated controls to manage wastewater infrastructure, reducing combined sewer overflows. PySWMM, an open-source tool, enhances these systems by integrating with Python
Area of Science:
- Environmental Engineering
- Water Resource Management
- Computational Hydraulics
Background:
- Wastewater utilities balance public health and infrastructure maintenance under budget constraints.
- Small to medium-sized utilities often face significant financial limitations.
- Aging infrastructure necessitates cost-effective solutions beyond traditional upgrades.
Purpose of the Study:
- To introduce PySWMM, an open-source Python wrapper for the EPA Storm Water Management Model (SWMM).
- To enable advanced real-time control strategies for intelligent water systems.
- To demonstrate the application of PySWMM in mitigating combined sewer overflows.
Main Methods:
- Developed PySWMM as a Python interface for the SWMM computational engine.
- Facilitated runtime interaction to modify SWMM parameters and control simulations.
- Integrated SWMM with Python's scientific computing, big data, and machine learning libraries.
- Applied PySWMM in real-world case studies in Cincinnati and Columbus, Ohio.
Main Results:
- PySWMM allows flexible runtime control and parameter modification of SWMM simulations.
- The tool enables the integration of advanced algorithms with established hydrologic and hydraulic models.
- Case studies demonstrated significant reductions in combined sewer overflows.
Conclusions:
- PySWMM offers a powerful, open-source solution for developing sophisticated intelligent water control strategies.
- The integration of PySWMM with Python's ecosystem facilitates data-driven optimization of wastewater systems.
- Intelligent water approaches, enabled by tools like PySWMM, are effective in addressing combined sewer overflows and improving water quality.
More Related Videos
Related Concept Videos
Conservation of Mass in Moving, Nondeforming Control Volume
In the context of a detention basin, the conservation of mass states that the total mass of water entering the basin must equal the mass leaving the basin plus any accumulation of...
Multiple Pipe Systems
Series Configuration
In a series configuration, fluid flows sequentially from one pipe...
PID Controller
Weir
Control Volume and System Representations
The control volume approach considers a stationary region in space through which fluid flows. This region is bounded by a control surface. For instance, in the case of water...
Conservation of Mass in Fixed, Nondeforming Control Volume
In the case of a sewer pipe, which can be modeled...

