A Modern Approach to Comparing SWMM Models

David Meyer

ABSTRACT

As collection system models increase in size and complexity, managing multiple SWMM model versions has become a significant challenge for utilities and engineers. Large systemwide models are routinely updated to incorporate new GIS data, field investigations, calibration refinements, design alternatives, and operational changes. While these updates are essential, identifying differences between model versions, especially small but impactful ones, remains time-consuming and error-prone. Traditional approaches rely on manual table reviews, text-based file inspection, or visual scanning within modeling software, methods that are difficult to standardize and impractical for large models.

Although the SWMM INP format is simple and well documented, modern models may contain thousands of interconnected elements. Minor edits such as small invert adjustments, modified conduit lengths, or changes to RTK parameters can meaningfully alter system behavior yet are easily overlooked using conventional review techniques.

To address this challenge, a web-based application called the SWMM Comparison App (currently in BETA) was developed using Python-based parsing and dictionary logic as its foundation. The application reads and structures two INP files into organized data tables and performs line-by-line comparisons to identify added, removed, or modified elements. Numeric fields can be evaluated using user-defined tolerances, allowing reviewers to filter out insignificant rounding differences.

A key enhancement over traditional methods is the inclusion of an interactive spatial viewer. Model elements from both versions are overlaid and color-coded to highlight differences, providing immediate geographic context. Users can explore attribute changes, navigate across model sections, visually assess updates through intuitive map interactions, and export results to Microsoft Excel, shapefile format, or a custom comparison file that can be reloaded in the application for future review.

By combining structured parsing with an interactive geospatial interface, the SWMM Comparison App significantly improves review efficiency, accuracy, and transparency, strengthening QA/QC practices for large-scale models.

 Click here to download a static PDF version of the presentation.


Permanent link: