The equations behind hydraulic modeling: How the physics fits together

Zach Mortice November 25, 2026

Hydraulic models run on more than one equation, and each one answers a different question. Follow a single drop of water from a water tower to a floodplain to see where each equation fits.

Diagram following one drop of water through six stops, each labeled with a question a hydraulic model answers and its equation: continuity, Bernoulli with HGL and EGL, the friction equations, momentum, Saint-Venant, and the shallow-water equations. A band at the bottom notes that all of them simplify Navier-Stokes.
Each question a hydraulic model asks has its own equation, and all of them trace back to Navier-Stokes.

The equations used in hydraulic modeling are just about as hidden as the pipes and tanks that store and move the liquids we depend on. Most modelers never solve them by hand. They run in the background of software such as InfoWorks ICM, InfoWorks WS Pro, and InfoDrainage. But peering into these calculations is key to understanding the forces at play – and to knowing why a model needs more than one equation.

Every hydraulic model has to answer the same handful of questions. Where does the water go? How much energy does it have? How much energy does it lose? What changes its motion? And what happens when conditions change over time? Each question has its own equation, or family of equations.

Let’s follow one drop of water through a city to see which equation answers which question.

Where does the water go? Conservation of mass

Our drop of water starts in a water tower, travels through a distribution main, and comes out of a garden hose. Our diligent gardener puts a thumb over half of the hose nozzle, and a stream of water rockets to the far edge of the garden. Why?

The answer is conservation of mass: water can’t be created or destroyed. Whatever flows into part of a system has to flow out or be stored. For water moving through a pipe, that idea becomes the continuity equation:

Q = A × V

Q is the flow rate, A is the cross-sectional area, and V is the average velocity. Squeeze the same flow through half the area, and the velocity doubles.

In a model, continuity is everywhere. Every junction in a distribution network balances the flow coming in against the flow going out, including customer demand. Every tank rises when more water enters than leaves. Software mass-balance checks are continuity at work.

📚 Learn more in Continuity equation explained for hydraulic modeling.

How much energy does the water have? Bernoulli, HGL, and EGL

Our drop came out of the hose under pressure because the water tower sits high above the garden. Water carries energy in three forms: its elevation, its pressure, and its movement. Engineers express each as an equivalent height of water, called head.

Bernoulli’s equation says that in an ideal system with no losses, these three heads add up to a constant total:

Total head = elevation head + pressure head + velocity head

Energy can shift between forms. The water speeding out of the gardener’s nozzle has traded some pressure for velocity.

Engineers track these energies along a system with two lines. The hydraulic grade line (HGL) combines elevation and pressure, and it shows how high water would rise in a vertical tube attached to the pipe. The energy grade line (EGL) adds the energy of motion, so it sits above the HGL.

When a model reports the pressure at a node, it’s comparing the HGL with the ground elevation.

📚Learn more in Hydraulic Grade Line (HGL) and Energy Grade Line (EGL) explained.

How much energy is lost? Friction and resistance

Bernoulli describes an ideal world. In a real pipe, friction against the walls steadily uses up energy, and the EGL slopes downward along the flow. Bends, valves, and fittings take an extra toll, which engineers call minor losses. To account for all this, engineers use the energy equation, which adds head losses, and any energy a pump adds, to Bernoulli’s balance.

Calculating those losses takes a resistance equation, and there are several, each suited to different conditions:

Our drop now leaves the garden, runs down the street, and drops through a road inlet into a storm sewer. The pipe is only partly full, and gravity is doing the work. This is Manning’s territory.

In software, these choices show up as settings and inputs. In InfoWorks WS Pro, a modeler chooses a friction method for pipes and enters roughness values. In InfoWorks ICM, conduit roughness can be based on Colebrook-White or Manning’s expressions. Every roughness value in a model is one of these equations quietly at work.

What changes the water’s motion? Momentum

Continuity tells us where water goes, and the energy equation tells us how much energy it has. But neither fully explains how forces change the water’s motion. That’s the job of momentum: Newton’s second law applied to water.

Gravity pulls water downhill, pressure pushes it from high to low, and friction holds it back. Momentum balances these forces against the water’s acceleration. It matters most when flow speeds up, slows down, or changes direction quickly: a surge moving through a sewer as a storm peaks, water slamming into a bend, or a hydraulic jump below a spillway.

For steady flow, engineers can often work with energy alone. Once conditions change over time, momentum becomes essential.

What happens when flow changes over time? Saint-Venant and shallow-water equations

The storm intensifies. Our drop’s storm sewer empties into a river that’s rising fast. Flows and water levels now change minute by minute. This is unsteady flow, and it needs both conservation of mass and conservation of momentum, solved together.

Along a pipe or river channel, that pairing is the Saint-Venant equations. They track how flow and depth change along the channel and through time, which makes them the foundation of 1D hydraulic modeling. InfoWorks ICM’s 1D engine uses them to route flow through sewers, channels, and rivers.

Eventually the river overtops its banks. Broken free of the channel, floodwater no longer follows the rules of a pipe. It creeps beyond the channel’s lip in a thin film, and our drop spreads across the floodplain in every direction. A new set of equations comes to the fore: the model needs the shallow-water equations, the 2D counterpart of Saint-Venant. They average the flow over the water’s depth and track it in two horizontal directions across a mesh of elements. They power the 2D engines in InfoWorks ICM and InfoDrainage, and they’re how models predict flood depths and velocities across streets and floodplains. Linking a 1D sewer network to a 2D surface lets a model follow water as it spills out of a manhole and back into an inlet.

📚 Learn more in 1D vs. 2D hydraulic modeling.

Where does Navier-Stokes fit?

Every equation so far is a simplified form of one fundamental description of fluid motion: the Navier-Stokes equations. They combine conservation of mass with conservation of momentum in full three-dimensional detail, including viscosity.

The engineering equations come from simplifying Navier-Stokes for particular conditions. The shallow-water equations average it over the water’s depth. Saint-Venant averages it over a whole cross section. Bernoulli applies to steady flow with no friction.

📚 Navier-Stokes recently made headlines when AI helped settle a famous mathematical question about it. Read what that means for engineers in The Navier-Stokes equations have been “solved.” What does that mean for hydraulic modeling?

Why not use one equation for everything?

If Navier-Stokes describes everything, why not use it everywhere? Solving it in full 3D across a city’s drainage network would take enormous computing power, and it would need far more detailed data than any utility has. For most questions, it would also add detail that doesn’t change the answer.

Each simplification fits a particular scale and question. A water distribution model needs continuity at every junction and a friction equation for every pipe. A flood model needs shallow-water equations across the surface. Full 3D modeling is usually saved for local problems, such as flow around a bridge pier or through a complex intake. Choosing the right equations is part of choosing the right model.

📚 Learn more in How to build a hydraulic model: from data gathering to decision making.

The equations at a glance

Question a model answersPrincipleEquationsWhere you meet it in a model
Where does the water go?Conservation of massContinuity (Q = A × V)Flow balance at junctions, tank levels, mass-balance checks
How much energy does it have?Conservation of energyBernoulli, HGL and EGLPressures at nodes, grade line profiles
How much energy is lost?Friction and resistanceDarcy-Weisbach, Hazen-Williams, Manning’sRoughness values, friction method settings
What changes its motion?Conservation of momentumMomentum equationSurges, bends, hydraulic jumps
What happens over time?Mass and momentum togetherSaint-Venant (1D), shallow-water (2D)Sewer and river routing, flood depths and velocities
Where does it all come from?Full fluid mechanicsNavier-StokesThe source of the simplifications above

Where the equations have been hiding

In one short trip, our drop of water passed through nearly every equation in hydraulic modeling:

Every time a model reports a pressure, a tank level, a pipe velocity, or a flood depth, these equations are behind the number. Knowing which one is at work makes it easier to judge whether a result makes sense, and to ask the right question when it doesn’t.

Freed from the channel, but never from the bounds of physics, our drop of water keeps moving – and so do the equations that follow it.


Fill up on more of the One Water Blog

Sign up for the One Water Blog LinkedIn newsletter, and we'll keep you updated about our top stories, along with the best content we find online. We only send out a newsletter when we have something interesting to share.