The SimTanka model

Look back to understand what may lie ahead.

SimTanka is a mathematical model that uses real, past daily rainfall to explore how reliably a rainwater harvesting system may meet your water needs. It does not forecast rain; it replays the rain that has already fallen.

“Essentially, all models are wrong, but some are useful.”

George E. P. Box and Norman R. Draper, Empirical Model-Building and Response Surfaces (1987)

Open sourceThe SimTanka code is public on Codeberg.

VIEW ON CODEBERG ↗

A simple model, day by day

How it works

Describe your rainwater harvesting system once. SimTanka then follows it through five years of recorded daily rainfall, asking on every day whether there was enough water to meet the demand.

Your system

Describe the surface that catches rain, your tank size, and daily water needs.

Recorded rain

Five years of real daily rainfall: wet days, dry days, and everything between, from Visual Crossing.

Tank, day by day

Starting from an empty tank, each day’s rain is added and the day’s demand is drawn from it.

Reliability

See the days water was available and the days the system ran out.

SimTanka and RainTank depend on the daily weather records provided by Visual Crossing. We are grateful for their continuing support, without which neither the model nor the app would be possible.

What the paper shows

Useful, within its limits.

A real rainwater harvesting system can never be described fully by a model with only four parameters. The paper tests whether SimTanka is nonetheless useful, with two examples: an orchard watered from a traditional tanka near Jaisalmer, and a garden in Bangalore.

The tank

An optimum, and your choice.

The model finds the tank beyond which a larger one adds little. But the final call is yours: enter any tank size and see its reliability, so that you can weigh reliability against cost.

Later rain

Checked against the future.

Tanks sized on past rainfall were tested on the rain of 2021–2025, which the model had not seen. In every case they did at least as well as predicted.

The data

Robust to the source.

Two independent rainfall records, which differ a good deal at Bangalore, gave approximately the same tank size.

Water demand

Estimating how much water you need.

RainTank does not ask you to guess one fixed daily demand. It builds a day-by-day estimate from the household uses and garden you describe, using local climate and seasonal conditions.

01 · Household

Choose the uses.

Select the household uses that the system will supply. RainTank begins with per-person estimates suited to the local climate.

02 · Garden

Describe the garden.

Add lawns, vegetable beds and plants. Their estimated irrigation needs change with temperature, sunlight and season.

03 · Daily profile

See the year.

The two estimates are combined into a daily demand profile, so the model can test the system through seasonal change.

04 · Your judgement

Review and override.

The estimate is a starting point, not a measurement of your actual use. You can change it to reflect what you know about your building.

The underlying rates, plant areas and irrigation efficiency are transparent modelling assumptions. They make the estimate useful without pretending that every household or garden is the same.

Go deeper

For the curious and the technical.

The model is documented in technical notes and available as open-source code for anyone who wants to examine how it works.

Technical paper

The method behind SimTanka

The water-balance model, the reliability calculation and its assumptions, with two worked examples checked against later rainfall. Version 2, November 2026.

Read the paper (PDF) ↗
arXiv:2404.13080 ↗

Water demand

Water demand model

How RainTank estimates household and garden demand, and the assumptions that users can override.

Read the note (PDF) ↗

Open source

Read the code

Review the implementation, follow the algorithm, or contribute to the SimTanka model on Codeberg.

View on Codeberg ↗