Forebay
Forebay's icon: a dam holding back a lake

How well will the reservoir serve?

Give Forebay a reservoir, a record of the river that fills it, and the water people want from it. It plays the record through, period by period, as if the dam had been running all those years, and tells you how often the town, the farms and the power plant would have had what they needed.

Forebay's Operation tab: thirty years of lake levels and flows, a table of every month, and how each use was served: water supply and the environmental flow in full, irrigation in 95.5% of months, hydropower in 90.6%

What it does

One reservoir, four uses, five studies, at a monthly, ten-day or daily step.

The operation study

The lake's water balance period by period: inflow, rain, evaporation from the surface it has, seepage, releases and spill. It's worked out again as you type.

Four uses, in an order

Water supply, environmental flow, irrigation and hydropower. When water is short, the first gets all it wants before the second gets any. Move them up and down to see what changes.

Irrigation from the crops

Or month by month. A cropping pattern with land preparation, FAO 56 crop coefficients, paddy percolation and three rules for effective rain gives the water to divert, and the duty.

Hydropower

Power from the releases that pass the turbines and from water that would spill, under the net head of the day. A firm power to keep up, with water released for it when needed.

Rule curves and rationing

A flood control level, and lower and critical curves below which each use gets only a share. Many shallow cuts in place of a few deep ones.

A search for rule curves

Differential evolution tries thousands of policies on the record: least shortage, least worst cut, most energy or most firm power. One click puts the best into the study.

Storage and yield

The sequent peak for a draft, the firm yield found by trial runs, and yield against storage at 100, 98, 95 and 90% reliability.

Synthetic inflows

Records that might have been, with the record's statistics: Thomas-Fiering for monthly and ten-day flows, fragments for daily ones. The study over a hundred of them shows how much rested on one record.

Flood routing

A flood through the lake by level pool routing, over an open or gated spillway and through a low outlet: the peak let out, the highest level and the freeboard left.

Reports

The whole study as a PDF, any figure as a picture, any table as CSV. A guide with three tutorials, and its methods and limits, are built in.

A tour

1

The reservoir

Its elevation-area-storage curve, typed in or worked out from areas, the minimum operating and normal high water levels, and what the lake loses to evaporation and gains from rain, month by month.

The Reservoir tab: the storage and area curves against elevation, with the active storage shaded between the two levels
2

The river

Import a CSV, paste from a spreadsheet, or drop a file on the window: a year of months to a line, a date and a flow, or the flows alone. The record through time, through the year, and its duration curve.

The Inflow tab: thirty years of monthly flows, their range through the year, the flow duration curve and a table of monthly means
3

The demands

Two crops of rice a year, a town and a stream left flowing, stacked against what the river brings. The dry-season crop asks for two to four times what the river brings: the reservoir has to make up the rest.

The Demands tab: demands through the year stacked above the mean inflow, firm power, and the irrigation scheme's month-by-month table
4

Find a rule curve

Run as it is, the lake is drawn to its minimum and irrigation's worst month is 70% short. The search finds a curve that rations early in the dry season: the worst cut falls to 47%, and the firm power holds in 97% of months.

The Rule Curves tab: the lower rule curve found, the search's progress, and the study before and with it
5

See the year

With the curve in use: the lake's level at each time of year, from its lowest to its highest, the curve beside it, and the mean flows in and out. Shaded rows of the table are the months that started below the curve.

The Operation tab's Typical Year view: the range of levels through the year with the lower rule curve
6

Test it on other records

A hundred synthetic records of thirty years, each run through the study. The table gives the result one record in twenty did worse than; the bands show where the lake stood.

The Synthetic Inflows tab: the record's statistics beside the synthetic ones, reliability over the traces, and bands of lake level through the year
7

How much can it give?

The storage a draft needs by the sequent peak, and the yield the reservoir keeps up at each size and reliability. Here the last third of the storage adds little.

The Storage-Yield tab: the sequent peak deficit through the record, and yield against active storage at four reliabilities
8

Route a flood

A flood of 1800 m³/s arrives with the lake full. Over a 60 m spillway the peak let out is 779 m³/s, eight and a half hours later, and the lake rises 3.4 m: 3.6 m below the dam's crest.

The Flood Routing tab: inflow and outflow hydrographs, and the lake's level against the spillway and dam crests

How it's worked out

Standard methods, set out in the app's guide with their equations and sources.

PartMethod
Operation studyeach period worked out three times, for evaporation and headWater balance, uses served in their order
PerformanceHashimoto, Stedinger and Loucks (1982)Reliability, resilience, vulnerability, shortage index
Crop water demandAllen and others (1998), FAO 56Kc × ETo, land preparation, percolation
Effective rainUSDA SCS, FAO dependable rain, or a share
Storage for a draftrun twice over the recordSequent peak
YieldBisection over runs of the operation study
Rule curve searchStorn and Price (1997)Differential evolution, DE/rand/1/bin
Synthetic inflowsThomas and Fiering (1962)Seasonal lag-one model, on logarithms; daily by fragments
Flood routingChow, Maidment and Mays (1988)Level pool, storage equation solved for each step

Every calculation is checked against hand calculations each time the app is built: the water balance step by step, rationing, power, the sequent peak, crop demand, the spillway and the statistics of synthetic records.

Examples to start from

The Examples menu opens studies ready to run. Change them to see what matters.

  • Irrigation and power reservoir Thirty years of monthly flows, two crops of rice, a town and a power plant.
  • The same, with rule curves Rationed early in the dry season, to keep the cuts shallow.
  • Town water supply A small reservoir on a flashy stream, ten years of daily flows.
  • Flood control with a gated spillway Room kept for floods through the wet season, at a ten-day step.

What it doesn't do

An engineer should know where a tool stops. Forebay says so in its guide, and here.

  • One reservoir: no systems of reservoirs, and no routing of releases down the river.
  • Flows are means over a period. A monthly study doesn't see a week's flood or a week's drought.
  • Demands repeat every year: irrigation doesn't follow each year's rain, and there's no growth.
  • Rationing follows the lake's level at the start of each period, not a forecast of the inflow.
  • The tailwater level is fixed, and the gates stay as set through a flood.
  • No sediment: the curve is the same in the last year as in the first.
  • The calculations are checked against hand calculations, not yet against published worked examples or other programs.

Forebay is an aid to an engineer's judgment. Check its results against your own before relying on them.

Download

Forebay runs on macOS, with Windows to follow.