GUIDED TOUR · STAGE 1 OF 4 · ACCUMULATION
What fills, what drains, what’s left.
Here is a tank. A faucet fills it. A drain empties it. Everything on this site starts here.
Faucet faster than drain
Pause to adjust conditions
Predict
Choose an answer to run the experiment.
What you expected
What happened
Teaching model, not a forecast
The live model could not load. Follow the four steps below, then continue the tour.
The dashed boundary encloses the tank and its flows.
Read the four steps without animation
- Water accumulates when the inflow exceeds the outflow. The tank level is a stock; the faucet and drain are flows.
- Halve 3 US gal/s to 1.5 US gal/s while the drain stays at 1 US gal/s. The level still rises, by 0.5 US gal/s.
- Close the faucet. The 14 US gal left by the first run drains in about 14 seconds at 1 US gal/s. More stored water buys more time: a buffer.
- The dashed boundary says what this model includes. Weather, the water company and your bill stay outside it.
Three things to notice in this tank
1. A stock remembers its flows
Mechanism: the rule that makes the next step happen. In this tank, the level changes by what comes in minus what goes out. The level is the amount in the stock; each flow has a rate. At 1.5 US gal/s in and 1 US gal/s out, turning the faucet down does not lower the level. It only slows the rise.
2. A reserve buys time, at a cost
Close the faucet with 14 US gal in the tank and the drain keeps running for 14 seconds. A stock kept on purpose to absorb a gap between flows is a buffer. A bigger tank buys more time, and costs more to build and to fill.
3. Every model starts with a line
The dashed line is the boundary of this system: the set of parts we chose to trace. The weather, the water company and your bill are outside it, assumed rather than modeled. When a result surprises you, the first question is always where the line was drawn.
Model details · equations, sources and assumptions
System models help us explore possible futures and ask what-if questions. Their usefulness depends on producing a plausible pattern of behavior, not on predicting which scenario will occur.
The tank is a teaching model with one stock, an inflow and an outflow. It uses fixed Euler steps of 0.025 seconds in canonical liters and seconds; scenario presets use round American or metric quantities; changing display units during a run does not change its state.
Stock change = (arriving inflow − actual outflow) × time step. The tank holds 25 US gal. Extra inflow spills; an empty tank cannot supply more water. These are invented teaching conditions, not a forecast for a particular tank.
Go deeper: a bathtub in balance
Use the same systems ideas in another setting. These optional experiments leave your tour progress unchanged.
A bathtub that finds its balance
Predict: The drain stays open. What happens once the faucet matches it?
Selected time: 10 min
- Water · US gal
- 25
- Faucet
- 5 US gal/min
- Drain
- 5 US gal/min
- Water · US gal
Equal flows keep the stock steady. The water continues moving even while the level stops changing.
Read selected values as a table
| Time · min | Water · US gal |
|---|---|
| 0 | 50 |
| 2 | 40 |
| 4 | 30 |
| 6 | 25 |
| 8 | 25 |
| 10 | 25 |
Equations, sources and assumptions
Teaching model, not a forecast. System models help us explore possible futures and ask what-if questions. Their usefulness depends on producing a plausible pattern of behavior, not on predicting which scenario will occur.
Change in stock = inflow − outflow. Initial stock: 50 US gal. Drain: 5 US gal/min. Inflow: 0 before minute 5, then 5 US gal/min.
Teaching adaptation of the bathtub figures. This preset switches the inflow at minute 5 so the stock falls from 50 to 25 gallons, then stays level as inflow matches outflow.
Now you can see
Why a problem keeps growing after you’ve started fixing it, and what a reserve is actually for.
So far you have worked the faucet by hand. What if the tank could turn its own faucet?
Next stage: Closing the loop