📦 Resource excel

EPA SWMM 5.2 Input Template Generator

The EPA SWMM 5.2 Input Template Generator is an Excel-based tool designed to automate the creation of standardized, syntactically correct input files (.inp) for the U.S. Environmental Protection Agency’s Storm Water Management Model (SWMM) version 5.2. It streamlines data entry by mapping user-defined hydrologic, hydraulic, and control rule parameters from spreadsheet tables to SWMM’s required section-based INP file structure. The generator enforces format compliance, validates unit consistency, and reduces manual errors in model setup for urban drainage and stormwater infrastructure analysis.

📖 Overview

The EPA SWMM 5.2 Input Template Generator serves as a bridge between spreadsheet-based data preparation and SWMM’s text-based input format. It leverages Excel’s structured tables, data validation rules, and VBA (Visual Basic for Applications) macros to convert tabular inputs—such as subcatchment geometry, conduit properties, rainfall time series, and pollutant buildup/washoff parameters—into properly ordered, commented, and formatted .inp files compliant with SWMM 5.2’s syntax specifications. Each worksheet typically corresponds to one SWMM input section (e.g., [SUBCATCHMENTS], [CONDUITS], [TIMESERIES]), with embedded logic to handle dependencies (e.g., linking subcatchments to nodes, routing flows through links, or assigning land uses to subcatchments). The tool also incorporates built-in error-checking—for instance, verifying that referenced node IDs exist, checking for duplicate object names, ensuring consistent units across sections, and flagging missing mandatory fields—thereby improving model reliability before simulation. Practitioners use it during early-stage design, regulatory submittals, scenario testing, and educational instruction to accelerate model development while maintaining traceability and auditability of input assumptions.

📑 Key Components

1 SWMM Section Mapping Engine
2 Input Validation & Consistency Checker
3 Automated .inp File Exporter

🎯 Applications

  • Rapid prototyping of urban stormwater models for master planning
  • Regulatory compliance documentation for municipal separate storm sewer systems (MS4)
  • Academic instruction and hands-on training in hydrologic modeling

📐 Key Formulas

Runoff Coefficient Adjustment

C_adj = C_base × (1 − F_imp × (1 − C_perv) − F_imp × C_imp)

Adjusts the composite runoff coefficient based on impervious fraction (F_imp), impervious runoff coefficient (C_imp), and pervious runoff coefficient (C_perv) for subcatchment-level runoff estimation.

Conduit Flow Capacity (Manning's Equation)

Q = (1.486 / n) × A × R^(2/3) × S^(1/2)

Computes full-flow capacity of conduits using Manning’s roughness coefficient (n), cross-sectional area (A), hydraulic radius (R), and slope (S); used internally to validate conduit sizing against design criteria.

Pollutant Buildup Rate

B(t) = B_max × (1 − e^(−k × t))

Models accumulation of pollutants on land surfaces over antecedent dry days (t), where B_max is maximum buildup and k is the decay constant; mapped from Excel inputs to SWMM [BUILDUP] section.

🔗 Related Concepts

Hydrologic Modeling Urban Drainage Design Model Calibration and Verification

📚 References

#SWMM #Excel Automation #Stormwater Modeling