After defining subcatchments that generate runoff, you need a conveyance system to transport that water. In SWMM, the pipe network consists of nodes (where water collects or changes direction) and links (that carry water between nodes). This tutorial focuses on junctions and conduits - the most common node and link types.
The terminology and property behavior here follow the EPA SWMM 5.2 User’s Manual. A SWMM model does not establish code compliance; confirm pipe sizes, slopes, cover, and allowable hydraulic grade against the criteria governing the project.
Understanding Nodes and Links
Node Types in SWMM
| Node Type | Purpose |
|---|---|
| Junction | General connection point between conduits |
| Outfall | System discharge point |
| Storage | Ponds, tanks, detention facilities |
| Divider | Splits flow between outlets |
Link Types in SWMM
| Link Type | Purpose |
|---|---|
| Conduit | Pipes, channels, culverts |
| Pump | Lifts water from lower to higher elevation |
| Orifice | Circular or rectangular outlet structure |
| Weir | Overflow structure |
| Outlet | User-defined rating curve outlet |
This tutorial focuses on junctions and conduits, which form the backbone of most drainage models.
Creating Junctions
Junctions represent points in your network where:
- Pipes connect
- Subcatchments discharge
- Flow changes direction
- Manholes or inlets are located
Adding a Junction
- Click the Junction tool in the toolbar
- Click on the map where you want the junction
- The junction appears with an auto-generated ID
Key Junction Properties
Invert Elevation
The elevation of the bottom of the junction.
Setting Invert Elevation:
- Use survey data when available
- Estimate from topography for planning studies
- Maintain consistent datum (e.g., NAVD88, local datum)
Max Depth
The maximum depth of water at the junction (from invert to rim).
- For manholes: Typically 4-15 feet
- For inlets: Typically 1-4 feet
- Water above maximum depth overflows the node unless additional surcharge depth delays overflow
Initial Depth
Starting water depth at the beginning of simulation.
- Usually set to 0 for dry-start simulations
- Set > 0 for continuing a previous storm or wet conditions
Surcharge Depth
Additional depth above max depth before flooding begins.
- Models pressurized conditions in manholes
- Typically 0 for open systems
Ponded Area
Surface area available for ponding when the junction floods.
- Use a non-zero surface area only when the Allow Ponding analysis option is enabled and overflow should be stored on the surface and later returned to the system
- With zero ponded area, overflow is normally lost from the model; zero does not make water back up indefinitely inside the system
Creating Conduits
Conduits convey water between nodes. They can represent:
- Storm sewer pipes
- Culverts
- Open channels
- Ditches and swales
Adding a Conduit
- Click the Conduit tool in the toolbar
- Click on the upstream (inlet) node
- Click on the downstream (outlet) node
- The conduit appears connecting both nodes
Conduit Geometry Properties
Length
The physical length of the conduit in feet or meters.
- SWMM can calculate length from map coordinates if Auto-Length is enabled
- Always verify calculated lengths against design drawings
Roughness (Manning’s n)
The Manning’s roughness coefficient controls flow resistance.
| Material | Manning’s n |
|---|---|
| PVC pipe | 0.009 - 0.011 |
| Concrete pipe | 0.012 - 0.014 |
| Corrugated metal pipe | 0.022 - 0.026 |
| Corrugated plastic pipe | 0.018 - 0.022 |
| Natural channels | 0.025 - 0.050 |
Use our Manning’s Calculator to determine flow capacity
Inlet Offset
The vertical distance from the junction invert to the conduit invert at the inlet end.
- Offset = 0: Conduit invert matches junction invert
- Offset > 0: Conduit enters higher than junction invert
Outlet Offset
The vertical distance from the junction invert to the conduit invert at the outlet end.
Conduit Cross-Section
SWMM supports many conduit shapes. Set the shape in the Cross-Section property group.
Circular Pipes
The most common shape for storm sewers.
| Property | Description |
|---|---|
| Shape | CIRCULAR |
| Max Depth | Pipe diameter |
| Barrels | Number of parallel pipes |
Rectangular Channels
Box culverts and channels.
| Property | Description |
|---|---|
| Shape | RECT_CLOSED (box) or RECT_OPEN (channel) |
| Max Depth | Height |
| Geom2 | Width |
Other Common Shapes
| Shape | Description | Parameters |
|---|---|---|
| TRAPEZOIDAL | Open channel with sloped sides | Bottom width, side slopes, depth |
| TRIANGULAR | V-shaped channel | Top width, depth |
| ARCH | Arch-shaped culvert | Span, rise |
| EGG | Egg-shaped sewer | Diameter |
| HORSESHOE | Horseshoe-shaped tunnel | Height |
Irregular (Natural Channels)
For natural streams and channels with surveyed cross-sections:
- Create a Transect (Project > Add Transect)
- Enter station-elevation data
- Reference the transect name in the conduit
If geometry originated in another model, verify the station/elevation convention, bank locations, roughness segmentation, units, and coordinate system before reproducing it as a SWMM transect.
Flow Direction and Slope
How SWMM Determines Flow Direction
Flow direction depends on:
- Node heads and boundary conditions: These drive the computed hydraulic gradient
- Conduit geometry and elevations: These establish the physical link and invert profile
- Routing method: Dynamic Wave can represent backwater, surcharge, and reverse flow
Calculating Pipe Slope
In DEPTH link-offset mode, calculate the conduit-end elevations from each node invert and its corresponding conduit offset:
Here d_in and d_out are the conduit inlet and outlet offsets above their connected node inverts.
If the project’s Link Offsets option is ELEVATION, the entered inlet and outlet values are
absolute conduit-end elevations instead; do not add the node inverts a second time.
Example:
- Upstream node invert: 100.00 ft; inlet offset: 0.20 ft, so
z_in = 100.20 ft - Downstream node invert: 99.50 ft; outlet offset: 0.10 ft, so
z_out = 99.60 ft - Length: 200 ft
- Slope: (100.20 - 99.60) / 200 = 0.0030 = 0.30%
Design Slopes
SWMM accepts the geometry you enter; it does not choose a code-compliant minimum slope. Establish slopes from surveyed elevations and governing design criteria, then review velocity, depth, surcharge, and hydraulic grade over the required events. Dynamic Wave routing can represent reverse flow, so an adverse conduit is not automatically a software error, but it must be intentional and hydraulically justified.
Building a Pipe Network
Step-by-Step Process
- Start at the outfall: Place your system outlet first
- Work upstream: Add junctions moving toward subcatchments
- Connect with conduits: Draw conduits from upstream to downstream
- Set elevations: Enter surveyed or design inverts and confirm that any adverse reach is intentional
- Verify connectivity: Check that all nodes are connected
Network Connectivity Rules
- Every conduit must connect two nodes
- Confirm that nodes and links form the intended connected network
- Confirm that modeled inflows have an intended boundary, storage, or discharge path
- Investigate isolated or unintended objects reported by review checks
Checking Connectivity
- Run a simulation - SWMM reports disconnected nodes
- Use Report > Status to see connectivity errors
- Visual inspection - trace paths from subcatchments to outfall
Working with Multiple Pipes at Junctions
Pipes Entering a Junction
Multiple pipes can enter a single junction:
- Main trunk line from upstream
- Side branches from lateral areas
- Use inlet offsets to set relative elevations
Pipes Leaving a Junction
Normally one pipe leaves downstream, but:
- Dividers can split flow between outlets
- Multiple parallel conduits model redundant systems
Outfalls
Networks intended to discharge beyond the modeled domain need an outfall boundary. Closed or storage-only conceptual models require a different, explicitly documented mass-balance setup.
Creating an Outfall
- Click the Outfall tool
- Click on the map at the discharge location
- Set properties
Outfall Types
| Type | Description |
|---|---|
| FREE | Stage is the smaller of critical depth and normal depth in the connecting conduit |
| NORMAL | Normal depth at outfall |
| FIXED | Constant tailwater elevation |
| TIDAL | Tidally varying tailwater |
| TIMESERIES | Time-varying tailwater from data |
Conduit Initial Conditions
Initial Flow
Starting flow in the conduit.
- Usually 0 for dry conditions
- Set > 0 for hot-start simulations
Maximum Flow
Optional constraint on conduit flow.
- Use zero for no flow restriction
- Enter a non-zero value only when an explicit maximum-flow constraint is intended
Validating Your Network
Before running simulations, check:
Elevation Consistency
- Select each conduit in the Project Browser or on the map and inspect its Property Editor values
- Review inverts, offsets, length, and the resulting slope against the source geometry
- After a run, inspect warnings in Report > Status and the relevant link summary results
- Investigate unexpected adverse, steep, or nearly flat reaches
Cross-Section Reasonableness
- Verify pipe sizes match design intent
- Confirm size transitions match the intended system
- Ensure roughness values are appropriate
Common Errors
| Error | Cause | Solution |
|---|---|---|
| Disconnected node | No conduits attached | Add missing pipe |
| Unexpected adverse slope | Invert or orientation issue | Verify source elevations and link direction |
| Zero depth | Max depth not set | Enter junction depth |
| Missing intended external boundary | An open-boundary model has no discharge node | Add and support the required outfall boundary condition |
Practical Tips
Using a Backdrop Image
Import an aerial photo or CAD drawing:
- Go to View > Backdrop > Load
- Set the image bounds (coordinates)
- Trace pipes and junctions over the image
Group Editing
SWMM 5.2 does not provide a spreadsheet-style object editor, property paste, or general Excel round trip. For a property that should have one value across a mapped group:
- Use Edit > Select Region to outline the objects
- Choose Edit > Group Edit
- Select the object type, property, operator, and value
- Review the affected objects after applying the change
For advanced data preparation, the User’s Manual documents the plain-text project-file format in Appendix D. Generate or edit that format only with validation, backups, and a subsequent SWMM input review; File > Export is not a generic object-to-Excel command.
Next Steps
With subcatchments generating runoff and a pipe network to convey it, you are ready to:
- Run your model: Running Simulations
- Add storage: Learn about detention ponds and tanks
- Model pumps: Add pump stations to your network
Summary
Junctions and conduits form the conveyance system in SWMM:
- Junctions are connection points defined by invert elevation and depth
- Conduits are pipes or channels defined by shape, size, length, and roughness
- Flow direction follows the computed head gradient and can reverse under Dynamic Wave routing
- Outfalls define external discharge boundaries for models that release flow beyond the modeled domain
Proper network definition provides an intended path from each inflow to storage, a closed-system endpoint, or an external outfall boundary. Closed or storage-only models may have no outfall, but their retained volume, initial conditions, and mass balance must be explicitly reviewed.