CalcWorldHub
Water engineering · CalcWorldHub

Detention Storage from Inflow and Outflow Hydrographs

A detention-storage estimate compares how much water enters over time with a specified release hydrograph. This calculator integrates the difference between sampled inflow and outflow, then reports the cumulative storage range and any initial storage needed to keep the modeled balance nonnegative. It does not design an outlet or prove that a proposed release can be achieved.

Open calculator
Matched inflow and release hydrographs form a net-flow trace whose cumulative volume sets detention storage.

Share this article

Paired inflow and outflow curves produce a signed net-flow series that is integrated into storage.
Storage follows cumulative inflow minus prescribed outflow.

Prepare matching hydrographs

Enter inflow and outflow as two lists of sampled rates in cubic metres per second. The lists must have the same number of values and at least two points, and they share a uniform time step in seconds. The outflow list is a release plan supplied by the user; the calculator does not solve an outlet rating from stage or storage.

At each sample, net flow is inflow minus outflow. Positive net flow adds water to the cumulative balance, while negative net flow removes it. A series that starts with outflow greater than inflow can produce a negative cumulative balance before later inflow arrives; that is why required initial storage is reported separately.

Trapezoidal volume integration

Between adjacent sample times, the calculator assumes net flow changes linearly and integrates it with a trapezoid: ΔV = (q₀ + q₁)Δt/2, where q = I − O. Summing those signed volumes gives the cumulative balance at the sample points. The time step must be finite and greater than zero; a smaller time interval can represent more detail only if the underlying hydrographs support it.

When net flow changes sign within a time step, the cumulative-volume curve reaches a local minimum or maximum inside that interval. The evaluator locates the zero crossing of the linearly interpolated net flow and includes the corresponding extremum. This matters because checking sample endpoints alone could miss the actual storage range.

Interpret the storage outputs

Let V(t) be the cumulative signed volume, with V(0)=0. The active storage range is max(V) − min(V). If the lowest cumulative point is below zero, the required initial storage is −min(0,V); that offset lets the modeled storage remain nonnegative. The final storage with that initial offset reflects the cumulative balance at the end of the supplied series.

A zero required initial storage does not mean no physical storage is needed: a positive maximum cumulative volume still represents water that must be held during the event. Conversely, a series with no net increase can still need initial water if its release exceeds inflow early. Read the minimum, maximum, range, initial requirement, and final balance together.

Feasibility is outside this calculation

HEC-HMS reservoir routing connects storage, inflow, and outflow through continuity and a selected routing method. This calculator uses a simpler prescribed-outflow comparison. It has no stage-storage curve, outlet rating, spillway, operating rule, downstream boundary, or maximum water level. Therefore, it cannot verify that a real basin can follow the entered release sequence.

If an outflow ordinate is larger than inflow, the model permits that deficit and accounts for its volume. In practice, the release may depend on water already stored, gate capacity, tailwater, safety constraints, and permit conditions. Check the hydrograph’s physical feasibility with an appropriate routing and structure model before using it for design.

Choose time resolution and reporting

Use a single time unit throughout. The calculator integrates rates in m³/s against seconds, so the volume output is in cubic metres. Do not enter an hourly interval as 1 unless the rates are converted to cubic metres per hour; use 3,600 seconds for one hour. Confirm that every ordinate belongs to the same time grid and that no peaks were lost when the source data were sampled.

Record whether the hydrographs are measured, design, or proposed. The cumulative range is conditional on the supplied data and linear interpolation; it omits other storage gains or losses unless those effects are already included in the flow series.

Worked examples

Work through the inputs in the same units used by the calculator, and compare the intermediate terms before interpreting the final value.

A release peak that creates an interior storage maximum

Inputs: Inflow = [0, 4, 8, 4, 0] m³/s; outflow = [0, 1, 3, 3, 1] m³/s; Δt = 600 s.

Calculation: Net flow = [0, 3, 5, 1, −1] m³/s. Cumulative endpoints reach 5,100 m³; the final 1→−1 interval peaks halfway through at 5,250 m³. Range = 5,250 − 0 = 5,250 m³; initial storage = 0 m³.

The interior zero crossing in the last interval raises the maximum 150 m³ above its ending sample value. The prescribed release is not checked against an outlet.

An early deficit and a missed interior minimum

Inputs: Inflow = [1, 5, 2, 0] m³/s; outflow = [2, 3, 3, 1] m³/s; Δt = 300 s.

Calculation: Net flow = [−1, 2, −1, −1] m³/s. The first interval minimum is −50 m³ at its zero crossing; the next interval peaks at 350 m³. Range = 350 − (−50) = 400 m³; initial storage = 50 m³.

The initial offset supports the early prescribed deficit. The final cumulative endpoint is 0 m³, so final storage after the 50 m³ offset is 50 m³.

A cumulative-volume curve marks its minimum, maximum, and required storage range.
Interior zero crossings can set the true storage extrema.

Sources and further reading

Share this article

Browse all articles · Calculator: Detention storage from cumulative inflow outflow hydrographs calculator