Go deeper
Buffers
Start with the reserve, then ask which functions survive.
LABS · The reservoir
A city needs water every week. How much use will you restrict?
So far: a stock buys time when inflow falls short. Here the tank supplies a town, and a reserve has a cost.
8 min experiment · Scales up stage 1
Pause to adjust conditions
One week takes 1.5 seconds. Pause whenever you need.
Predict
Choose an answer to run the experiment.
What you expected
What happened
Teaching model, not a forecast
The reveal
Your decisions leave a trace
Drag the dot. Or focus it and use the arrow keys. A shock changes what happens next.
This optional model uses its own starting conditions and decision rule. Opening it does not transfer or reset your operator run. Return to the operator above to continue that same trajectory.
INTERACTIVE EXPERIMENT / STOCKS & FLOWS
Can stored water bridge a dry spell? Find out what a larger buffer buys—and what it costs.
Teaching model, not a forecastRain adds water. The garden uses it. The water already stored carries you through a dry spell. The real question is how long the reserve lasts, starting from how full it is.
Here the barrel becomes a town reservoir. Mgal means one million U.S. gallons. The quantities are invented teaching assumptions.
YOUR FIRST EXPERIMENT
Look at “Demand supplied” as well as tank size. A larger tank also starts with more water at the same fill percentage.
Computed teaching model · not a forecast · model 1.0.0.
79 Mgal initially stored in a 132 Mgal reservoir; demand is 11 Mgal/week.
| Demand supplied | 100.0 % |
|---|---|
| Loss / total inflow | 5.0 % |
| Lowest reserve | 79 Mgal |
When interactive controls are available, predict a change, run the model, pause and inspect an event. The equations and complete assumptions remain readable below.
This static summary remains available. Reload the page to retry; your saved notebook is not changed.
Reload this experimentSTRUCTURE / WEEK 0
On a small screen, swipe the diagram sideways. Current values also appear below the chart.
UNDER THE SURFACE
Change the settings, inspect the trajectory, and export the values to examine them yourself.
Modeled · operator-1.0.0. Deterministic teaching dynamics, integrated at 0.25-week steps. Bench models retain version 1.0.0.
Equations use canonical model units: ML means one million liters (a megaliter); 500 ML is approximately 132.09 million U.S. gallons (Mgal). Stored water changes by inflow − supplied demand − loss − spill. Capacity is 500 ML, initially 60% full. Base demand is 40 ML/week. Inflow is 50 × (1 + 0.25 sin(2π week/52)) ML/week, reduced by 40 in weeks 20–38, with a zero floor. Loss is 0.005 × capacity per week. Restrictions lower requested demand; spill is water above capacity.
The loss rule is capacity-related, not a physical evaporation estimate. A bigger tank starts with more water at the same fill percentage and loses more. Demand supplied is a share of original unrestricted demand; restrictions are not counted as water supplied. Stock versus net flow is a derived diagram, not a two-stock phase portrait.
Every colored trajectory here is computed, drawn with a dashed line. Scale lenses are illustrative analogies: they keep the equations and state, translate labels and physical time constants, and do not turn these curves into observations. A state shock branches the run from the selected week.
Horizontal dragging adds or removes water. Vertical dragging changes inflow for one week; it does not create a second independent stock.
Source and reading noteNext stock = current stock + inflow − supplied demand − actual losses − spill100 weeks, computed in 0.25-week steps. Demand is fixed at 11 Mgal/week. Inflow has a 52-week sinusoidal season with 25% amplitude. Guided dry spell (guided-dry-spell, scenario version 1): subtract 11 Mgal/week during weeks 20–38; inflow cannot fall below zero. Desired capacity-related loss is loss-rate × capacity. Available water is allocated to that loss first, then demand; any remainder above capacity spills. Unmet demand and spill are explicitly counted. Loss is a simplified capacity cost, not a physical evaporation model. Larger capacity starts with more water at the same fill percentage.
Your note stays in this browser and is included in your complete notebook backup.