Free Course · Self-Paced

Wastewater Collection
Modeling Fundamentals

How a sewer model is built, measured, calibrated and used, from the elements in an EPA SWMM file to capacity and master plan analysis. Everything is on this page, free, with no sign-up.

Free No Sign-Up
10 Sections Read in Order
EPA SWMM Open-Source Engine
Section 1

The big picture: what a sewer model is for

A collection system model is a mathematical copy of your sewers, manholes and pump stations. It shows how full every pipe runs and where water rises out of a manhole. The question it answers most often is what happens when it rains, because rain that leaks into sanitary sewers causes most overflows.

Capacity

Where will it overflow?

Find the pipes that surcharge and the manholes that spill in a design storm.

Growth

Can it take the new development?

Add future flow and see which trunk sewers and pump stations run out of room.

I/I

Where is the rainwater getting in?

Rank basins by how much they respond to rain, and target rehabilitation where it pays off most.

Regulatory

Are we meeting the consent decree?

Show that planned projects bring overflows down to the required level of control.

Three kinds of system

SystemCarriesMain modeling concern
Separate sanitaryWastewater only, by design. In practice, also groundwater and rainwater that leak in.Sanitary sewer overflows (SSOs) caused by infiltration and inflow.
CombinedWastewater and stormwater in one pipe, as designed.Combined sewer overflows (CSOs): how often and how much.
StormStormwater only.Flooding and drainage capacity. Covered in the free Stormwater Modeling Fundamentals course.

This course focuses on separate sanitary systems. The same SWMM elements and process apply to combined systems.

The modeling process

Define purpose

Overflows, growth or rehab targeting set the detail needed.

Collect data

GIS, inverts, pump stations, billing, plant flows.

Build

Network, connectivity, sewersheds and dry weather loads.

Monitor

Temporary flow meters and rain gauges through a wet season.

Calibrate

Dry weather first, then wet weather.

Validate

Check against storms not used to calibrate.

Analyze

Design storms, capacity, deficiencies, alternatives.

Plan

Phase the fixes into a capital plan.

Section 2

Model elements in EPA SWMM

SWMM splits a model into hydrology, which turns rain into runoff, and hydraulics, which routes flow through the pipes. A sanitary model leans on the hydraulics plus a set of inflows loaded at manholes. Everything is saved in a plain-text .inp file.

Nodes

ElementRepresentsKey inputsCommon mistake
JunctionA manhole or a pipe connection.Invert elevation, maximum depth (rim minus invert), surcharge depth, ponded area.A maximum depth that does not reach the rim, so the model reports flooding while the pipe is only surcharged.
OutfallThe downstream end: the treatment plant, a receiving water, or a cut point to another model.Invert and a boundary type: free, normal, fixed stage, tidal or time series.A free outfall where the plant headworks actually back water up the trunk sewer.
Storage unitAny volume larger than a manhole: a wet well, an equalization basin, an in-line tank.Invert, maximum depth, storage curve (area against depth).Modeling a wet well as a junction, which loses the storage the pump cycles depend on.
Flow dividerA structure that splits flow between two pipes.Diverted link and a cutoff, overflow, tabular or weir rule.Expecting divider rules to apply in dynamic wave routing. There they act as plain junctions, so model the weir or orifice explicitly.

Links

ElementRepresentsKey inputsCommon mistake
ConduitA gravity sewer or a force main.Shape and size, length, Manning's n, inlet and outlet offsets, entry and exit losses.Offsets entered as elevations when the model expects depths, or the reverse.
PumpA pump in a lift station.Pump curve, startup and shutoff depths in the wet well. Types 1 to 5 suit different stations (below).An ideal pump used for design work, which passes any inflow with no capacity limit.
OrificeAn opening in a wall or the bottom of a structure, a gate.Shape, size, discharge coefficient, optional flap gate.Forgetting the flap gate on an outlet that cannot flow backward.
WeirAn overflow crest: CSO and SSO relief structures, diversions.Type (transverse, side flow, V-notch, trapezoidal), crest height, length, coefficient.Crest height as an elevation rather than a height above the node invert.
OutletA device with a known rating: flow against head or depth.Rating curve or coefficient and exponent.Using it where a pump or orifice describes the device better.

Pump curve types

TypeFlow depends onTypical use
Type 1Volume in an off-line wet wellOlder stations with the wet well modeled as storage
Type 2Inlet depth, in stepsIn-line pumps with stepped capacity
Type 3Head difference across the pump (head–flow curve)Most lift stations; uses the manufacturer's curve
Type 4Inlet depth, continuouslyVariable-speed pumps that hold a wet well level
Type 5Head difference, with speed scaling (affinity laws)Variable-speed pumps with a known curve

Inflows and data

  • Dry weather inflow is an average flow at a node, shaped by up to four patterns: monthly, daily, hourly and weekend hourly.
  • RDII inflow applies a unit hydrograph set to the sewershed area behind a node, turning rainfall into infiltration and inflow (Section 4).
  • Direct inflow loads a time series, such as a metered upstream flow or a large industrial discharger.
  • Rain gages supply rainfall time series to unit hydrographs and subcatchments.
  • Subcatchments turn rain into surface runoff using area, width, slope, imperviousness and an infiltration method (Horton, Green-Ampt or Curve Number). They are central to combined and storm models.
  • Controls change pumps, orifices and weirs during a run with rules such as IF NODE WW1 DEPTH > 6 THEN PUMP P1 STATUS = ON.
Section 3

How flow moves through a sewer

Gravity sewers flow part full, like small rivers, until they fill. Once full, they act like pressure pipes and the water level climbs up the manholes. A sewer model has to handle both states, and the switch between them.

Manning's equation

Q = (1.49 / n) × A × R2/3 × S1/2 Q flow (cfs), n Manning roughness, A flow area (ft²), R hydraulic radius = area / wetted perimeter (ft), S slope (ft/ft). Typical n: 0.013 for concrete and clay; 0.010–0.011 for PVC and HDPE.

The full-pipe capacity from Manning's equation is the starting point for every capacity check. Compare it with the peak flow the pipe must carry.

Words you will see in every report

TermMeaning
d/DDepth of flow divided by pipe diameter. 0.5 is half full, 1.0 is full.
q/QFlow divided by full-pipe capacity. It can exceed 1.0 when the pipe is pressurized.
SurchargeThe pipe is full and the hydraulic grade line (HGL) rises above its crown into the manholes.
Flooding / SSOThe HGL reaches the rim and water leaves the system.
BackwaterA downstream restriction (a smaller pipe, a pump station, a high river level) raises water levels upstream.
Self-cleansing velocityAbout 2 ft/s, enough to keep solids moving. Lower velocities let grease and grit settle.

Choosing the routing method

MethodWhat it handlesUse it when
Steady flowMoves the inflow straight through each pipe with no storage or delay.Quick screening only.
Kinematic waveDelay and attenuation in part-full pipes. No backwater and no pressurized flow.Simple tree-shaped systems that never surcharge.
Dynamic waveThe full equations: backwater, surcharge, pressurized flow, reverse flow and looped pipes.Almost every sanitary capacity study. Use a short routing step and check the continuity error.

Check continuity. SWMM reports the flow routing continuity error at the end of every run. Keep it under about 1 to 2%. A larger error usually points to too long a time step, very short pipes or a sudden change in size, not to real physics.

Section 4

Where sewer flow comes from

The flow at any meter is the sum of three parts, and each one is modeled differently. Separating them is the core skill of sewer modeling: it tells you how much capacity goes to customers and how much is lost to leaks and rain.

Groundwater infiltration (GWI) Base sanitary flow (BSF) Rainfall-derived I/I (RDII) Rain
Sewer flow at one meter over three days, split into its components Groundwater infiltration is a steady 0.25 MGD. Base sanitary flow rides on top with a daily cycle, low near 4 a.m. and peaking in the morning and evening. After rain on day two, rainfall-derived infiltration and inflow adds up to 1.1 MGD within three hours and recedes over the next day, roughly doubling the peak flow. 0.00.51.01.52.0 Day 1Day 2Day 3time, hours over three days flow, MGD rain peak wet weather 2.1 MGD
An example meter over three days. Groundwater infiltration is a steady 0.25 MGD. Base sanitary flow follows the daily routine of the people it serves. Rain on day two adds rainfall-derived I/I within hours and roughly doubles the peak, from about 1.0 to 2.1 MGD.
ComponentWhat it isHow it is estimated
Base sanitary flow (BSF)Wastewater from homes and businesses, with a morning and evening peak.Winter water billing times a return factor, or population times per-capita flow. Shaped by a diurnal pattern.
Groundwater infiltration (GWI)Groundwater seeping through cracked pipes and joints. Steady over a day, higher in wet seasons.Most of the minimum night flow, when almost no one uses water. A common shortcut takes 80–90% of it; the Stevens-Schutzbach method refines this.
Rainfall-derived infiltration and inflow (RDII)Rain that enters through manhole lids, roof drains, cleanouts and saturated soil around leaking pipes.Measured flow minus dry weather flow during and after storms, fitted with unit hydrographs.

Dry weather flow

DWF = BSF + GWI Average dry weather flow (ADWF) is the daily average; peak dry weather flow (PDWF) is the highest hour of a dry day.

Measuring the rain response: the R-value

R = RDII volume / (rainfall depth × sewershed area) The fraction of the rain that falls on a sewershed and ends up in the sewer. A few percent is common; well above 10% points to a basin with severe inflow problems.

The RTK unit hydrograph

SWMM models RDII with three triangular unit hydrographs added together, each describing one path rain takes into the sewer:

Short term

Fast inflow

Peaks within an hour or two. Roof drains, area drains and leaky manhole lids.

Medium term

Rapid infiltration

Peaks within several hours. Water moving through the trench backfill.

Long term

Slow infiltration

Lasts a day or more. Groundwater rising around the pipes.

Each triangle has three parameters: R, the fraction of rain it carries; T, its time to peak; and K, the ratio of recession time to time to peak. Optional initial abstraction terms make small storms produce less RDII than large ones, as they do in the field.

Section 5

Building the model

A sewer model lives or dies on its invert elevations. One wrong invert creates an adverse slope or a false bottleneck that no calibration can explain. Spend the time on the network before loading any flow.

Data inventory

DataTypical sourceUsed for
Sewer networkGIS (gravity mains, force mains, manholes), as-built drawingsGeometry, diameter, material, connectivity
Inverts and rimsSurvey, as-builts, manhole inspections, LiDAR for rimsSlopes, capacity and flooding depth
Pump stationsDrawings, pump curves, wet well dimensions, SCADA set pointsPumps, storage units and controls
Customer loadsWater billing (winter months), land use, population, large usersBase sanitary flow
ConditionCCTV inspection, manhole inspection, smoke testingExplaining I/I and checking suspect pipes
Flow and rainFlow meters, rain gauges, plant influent recordsCalibration (Sections 6 and 7)

Step by step

  1. Decide the extent

    Master plans usually model trunk sewers, often 10 or 12 inches and larger, plus any smaller pipe with a known problem. Loads from the unmodeled pipes are collected at the nearest modeled manhole.

  2. Import and check connectivity

    Confirm every pipe points downstream, every manhole connects, and every flow path reaches an outfall. Check the direction of flow at diversions and at pump station force mains.

  3. Validate inverts

    Look for adverse slopes (an outlet higher than its inlet), drops that do not exist in the field, a pipe invert below the manhole invert, and pipes that get smaller downstream. Confirm suspect values with as-builts or a field visit.

  4. Set up pump stations

    Model each wet well as a storage unit with its real area, each pump with its curve and its on and off levels, and the force main as a conduit from the station to its discharge manhole.

  5. Delineate sewersheds

    Draw the area that drains to each loading manhole. Sewershed areas carry both dry weather loads and the RDII unit hydrographs.

  6. Load dry weather flow

    Assign winter water use from billing to each sewershed, times a return factor, typically 80–95%. Where billing is not available, use population times per-capita flow, commonly 60–100 gallons per person per day. Add large users by hand.

  7. Add patterns and GWI

    Apply weekday and weekend diurnal patterns from meter data, then add GWI as a constant inflow by sewershed, once metering has measured it.

Section 6

Flow monitoring

A sewer model cannot be calibrated without measured flow, and RDII cannot be measured without rain. A flow monitoring program places temporary meters through a wet season so that each meter basin sees several real storms.

Designing the program

  1. Divide the system into meter basins

    Choose meter sites so each basin is a manageable size and similar in age, material and land use. Basins of a few thousand to tens of thousands of feet of pipe are common.

  2. Pick good sites

    Area-velocity meters need straight pipe with steady flow. Avoid manholes just downstream of drops, bends, junctions or pump discharges, and avoid backwater from pump stations.

  3. Cover the wet season

    Typically 8 to 12 weeks, timed to catch at least three to five significant storms of different sizes.

  4. Put rain gauges close

    Every meter basin should have a rain gauge nearby. Radar-rainfall data can fill the gaps between gauges.

Checking the data

  • Scattergraphs plot depth against velocity. Healthy free-flow data follows a single curve. Scatter, loops or flat spots point to backwater, debris on the sensor or a failing meter.
  • Balance checks confirm that upstream meters add up, roughly, to the downstream meter.
  • Plant flows provide a sanity check on the total at the bottom of the system.

Analyzing the data

  1. Build the dry weather days

    Pick days with no rain in the previous few days. Average them into a weekday and a weekend diurnal curve for each meter.

  2. Split off GWI

    Estimate GWI from the minimum night flow. What remains is base sanitary flow.

  3. Isolate RDII for each storm

    Subtract the dry weather curve for that day of the week from the measured flow. What is left is RDII.

  4. Rank the basins

    Compare R-values and peak RDII per unit area or per inch-diameter-mile of pipe. The worst basins are where rehabilitation and investigation should start.

Section 7

Calibration

Calibrate dry weather first, then wet weather. If dry weather flow is wrong, every RDII parameter fitted on top of it is wrong too.

The calibration sequence

  1. Dry weather volume

    Adjust base flows and GWI by meter basin until each meter's daily volume matches.

  2. Dry weather shape

    Adjust diurnal patterns until the timing and size of the morning and evening peaks match.

  3. Wet weather volume

    Adjust the R values of the unit hydrographs until the RDII volume of each storm matches.

  4. Wet weather peak and timing

    Split R between the short, medium and long-term triangles and tune T and K until the peak and the recession match.

  5. Depths and surcharge

    Compare modeled and measured depths, especially where pipes surcharge. Mismatches here often point to a downstream restriction, a wrong invert or a pump station setting, not to the flows.

  6. Validate

    Run storms not used in calibration. Parameters that only fit the storms they were tuned on will not predict a design storm.

How close is close enough

A widely used benchmark is the CIWEM Urban Drainage Group code of practice (formerly WaPUG). Many US studies adopt similar targets:

MeasureDry weatherWet weather
Peak flow±10%+25% to −15%
Flow volume±10%+20% to −10%
Depth, not surcharged±0.1 m (≈4 in)±0.1 m (≈4 in)
Depth, surcharged—+0.5 m to −0.1 m (≈+20 in to −4 in)
TimingPeaks and troughs line upPeaks and recession line up

The wet weather targets are deliberately looser, and lean toward overprediction: a model that slightly overstates peak flows is safer for design than one that understates them. Aim to meet them in at least two of three calibration storms.

Section 8

Capacity analysis

With a calibrated model, apply a design condition and see which pipes, manholes and pump stations cannot carry it. The design condition and the pass and fail criteria are policy choices; agree them before you run anything.

Design conditions

Dry weather

Peak dry weather flow

Checks basic pipe capacity and the room left for growth. A pipe that is tight in dry weather has no margin for rain.

Wet weather

Design storm

A synthetic storm such as a 5- or 10-year, 24-hour event, with depths from NOAA Atlas 14 and an SCS distribution. Run on wet antecedent conditions.

Wet weather

Continuous simulation

Years of real rainfall run through the model. It answers how often overflows happen, which a single design storm cannot.

Typical criteria

CriterionTypical valueChecked at
OverflowNo SSODesign storm
FreeboardHGL at least 2 to 3 ft below the rim, or no surcharge at allDesign storm
Depth ratio, d/D≤ 0.5 for smaller pipes, ≤ 0.75 for larger trunksPeak dry weather flow
Minimum velocity≥ 2 ft/sFull-pipe or average dry weather flow
Pump stationFirm capacity (largest pump out of service) ≥ peak wet weather flowDesign storm
Force main velocityAbout 2 to 8 ft/sPumping

These are common values, not a standard. Use your state's design rules, the regulator's requirements and your utility's own policy.

Reading the results

  • Profiles plot the HGL along a sewer from upstream to downstream. They show where the grade line climbs out of the pipe, and whether a pipe is too small or is only backed up by a restriction downstream.
  • Surcharge maps color pipes by d/D or peak q/Q and manholes by freeboard.
  • Overflow tables list each spilling manhole with its peak rate and volume.
  • The real bottleneck is often downstream of the first pipe that surcharges. Fix the restriction, not the symptom.
Section 9

Master plan analysis

A collection system master plan shows what it takes to carry today's and tomorrow's flow at the required level of service, as a sequenced list of costed projects. Every project in it should trace back to a model run.

The master planning process

  1. Set planning horizons

    Typically existing conditions, a near-term horizon of 5 to 10 years, and buildout.

  2. Project future flow

    Convert land use and population projections into future base sanitary flow, using unit flow factors by land use or per-capita flow. Assign it to the sewersheds where growth will happen. New sewers usually get lower RDII than old ones.

  3. Build the scenario matrix

    Run each horizon at peak dry weather and at the design storm. Existing conditions with the design storm shows today's deficiencies; buildout shows the full need.

  4. Find deficiencies

    List every pipe, manhole and pump station that breaks a criterion. Group neighboring deficiencies that share one cause into a single problem area.

  5. Develop alternatives

    For each problem area, test the options below in the model. A relief sewer upstream can push the problem to the next pipe down, so always re-run the whole system.

  6. Cost and compare

    Apply unit costs per foot by diameter and depth, plus pump station and storage costs, contingency and soft costs. Compare life-cycle cost, not only capital cost: storage and pumping carry operating costs that pipes do not.

  7. Phase into a capital plan

    Existing overflows come first, then capacity needed for growth, timed to when development is expected. Coordinate with the rehabilitation program and with road works.

Alternatives to test

OptionHow it helpsWatch for
Upsize (replace)More capacity in the same alignmentBypass pumping during construction; more flow passed downstream
Relief sewer (parallel)Adds capacity while keeping the old pipe in serviceRoom in the street; flow split between the two pipes
StorageHolds the wet weather peak and releases it laterOdor, cleaning, operating cost; needs a site
I/I reductionRemoves RDII at its source by lining pipes, sealing manholes and disconnecting roof drainsReal removal is often less than planned, as water finds the next weakest point. Plan conservatively and confirm by metering.
Pump station upgradeLarger pumps, more pumps, or a larger wet wellThe force main and the gravity sewer downstream must take the extra flow
DiversionMoves flow to a pipe or basin with spare capacityUses up capacity that growth may need later

The best plans usually combine options: I/I reduction where basins respond strongly to rain, storage where peaks are short and sharp, and pipe where growth needs permanent capacity.

Section 10

Where to go next

Most utilities do every step on this page by hand: weeks of invert cleanup, storm-by-storm RDII fitting and one design storm run at a time. The Wastewater practitioner track teaches you to automate the same workflow on your own system.

Wastewater Systems — Foundation

Build the SWMM model from GIS by script, run design storms and continuous simulations in the cloud, calibrate RDII automatically against your own flow meters, and drive it all through an AI agent. Two days, live online, on your own sewershed.