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.
Abstract:
Wastewater utilities face competing priorities as they work to protect human health and water quality, and to maintain infrastructure in their communities. Budgetary constraints can be especially pronounced among small to medium-sized utilities. Utilities are increasingly turning to so-called intelligent water approaches as a cost-effective alternative to upgrading aging infrastructure. Intelligent water encompasses automated control and real-time decision support technologies and can be applied at scale to large and small utilities alike accommodating differences in needs, capabilities, and funds. Intelligent water upgrades can be designed to optimize existing conveyance, storage, and treatment during storms to help mitigate flooding and combined sewer overflows. The most promising real-time control algorithms coordinate control of upstream and downstream assets and are designed using urban hydrologic and hydraulic modeling software. The capabilities of legacy software, however, can sometimes inhibit the creation of sophisticated control algorithms. In this paper, we present PySWMM - an open-source Python wrapper developed for the EPA Storm Water Management Model (SWMM). PySWMM enables runtime interactions with the SWMM computational engine to flexibly read, modify system parameters, and control digital infrastructure during a simulation. Crucially, it allows modelers to easily combine SWMM with the rich set of scientific computing, big data, and machine learning modules found in the Python ecosystem. We highlight two real-world intelligent water case studies utilizing PySWMM in the cities of Cincinnati and Columbus, Ohio where it has helped to eliminate tens of millions of gallons of combined sewer overflows annually.
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...

