
A reservoir is a promise: water for a town, for farms, for a power plant, through dry seasons the river alone can't cover. Whether it keeps that promise depends on decades of river flows that nobody can predict. Forebay is a desktop app for reservoir operation studies. You give it a reservoir, a record of the river that fills it and the water people want from it, and it plays the record through, period by period, as if the dam had been running all those years.
One reservoir, four uses, five studies
The operation study works out the lake's water balance each period: inflow, rain, evaporation from the surface it has, seepage, releases and spill, at a monthly, ten-day or daily step. Four uses are served in an order you choose: water supply, environmental flow, irrigation and hydropower. When water is short, the first gets all it wants before the second gets any.
- Irrigation from the crops: a cropping pattern with land preparation, FAO 56 crop coefficients, paddy percolation and effective rain gives the water to divert.
- Hydropower from the releases that pass the turbines, under the net head of the day, with a firm power to keep up.
- Rule curves and rationing: flood control, lower and critical curves, below which each use gets only a share, so the cuts come early and shallow instead of late and deep.
- A search for rule curves by differential evolution, trying thousands of policies for the least shortage, least worst cut, most energy or most firm power.
Beyond one record
One historical record is only one possible future. Forebay makes synthetic inflow records with the same statistics, by the Thomas-Fiering method for monthly and ten-day flows and by fragments for daily ones, and runs the study over a hundred of them to show how much rested on one record. It also finds the storage a draft needs by the sequent peak method, the firm yield at different reliabilities, and routes floods through the lake over an open or gated spillway.

Methods you can check
Every part uses a standard, published method, set out in the app's guide with its equations and sources: Hashimoto, Stedinger and Loucks for performance; FAO 56 for crop water demand; Storn and Price for the rule curve search; Chow, Maidment and Mays for flood routing. Each calculation is checked against hand calculations every time the app is built, and the guide lists plainly what Forebay doesn't do, starting with systems of more than one reservoir.
Get Forebay
Forebay runs on macOS on Apple silicon, with Windows to follow, and comes with example studies ready to run. Download it from forebay.syncster.dev.
Built with Tessel
Forebay is written in Tessel, the small declarative language we made for native desktop apps. The water balance, the optimiser, the synthetic hydrology and every chart in it are Tessel code.
Comments
Post a Comment