LabsKeep your place in the guideGuide trail

LABS · The reservoir

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

1 · Your shift2 · The reveal3 · The bench
Week 0Ready for your shift

One week takes 1.5 seconds. Pause whenever you need.

Predict

Will the stock rise, hold steady, or fall from its starting value?

Choose an answer to run the experiment.

Dashed pink: your computed trajectory.

Read the current values
Selected model state

Go deeper: compare a separate reference model

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

The reservoir

Can stored water bridge a dry spell? Find out what a larger buffer buys—and what it costs.

Teaching model, not a forecast
A rain barrel for the garden. · a familiar starting point

Rain 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

  1. Add a dry spell
  2. Make that run the new baseline
  3. Change only Reservoir capacity

Look at “Demand supplied” as well as tank size. A larger tank also starts with more water at the same fill percentage.

The default experiment, at a glance

Computed teaching model · not a forecast · model 1.0.0.

79 Mgal initially stored in a 132 Mgal reservoir; demand is 11 Mgal/week.

Computed default results over 100 weeks
Demand supplied100.0 %
Loss / total inflow5.0 %
Lowest reserve79 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.

If the interactive view does not load

This static summary remains available. Reload the page to retry; your saved notebook is not changed.

Reload this experiment

Change the conditions

Try this

Start with a 132 Mgal reservoir. Add the dry spell, save that run as the new baseline, then change only capacity. Check the additional losses and remember that the initial stored water changes with capacity.

STRUCTURE / WEEK 0

On a small screen, swipe the diagram sideways. Current values also appear below the chart.

Week 100

UNDER THE SURFACE

The rules are part
of the result.

Change the settings, inspect the trajectory, and export the values to examine them yourself.

Model details · equations, sources and assumptions

The operator model

Inside the model

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 note

The separate reference model

Next stock = current stock + inflow − supplied demand − actual losses − spill

100 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.

Related reading and experiments

Add a local note

Your note stays in this browser and is included in your complete notebook backup.

NEXT ADVENTURE

Go deeper

Buffers

Start with the reserve, then ask which functions survive.

See these connections on the map

Start fresh?

Clear your tour progress, reading and practice history, saved notebook work, and preferences in this browser. You’ll return to the beginning.

This can’t be undone. Export a notebook backup first if you want to keep your work.

Search the guide

Go deeper: explore the connections

Open this section to load the map.

Open the map