Reference: components

Flow

Updated 3 November 2026 · 1 min read

A flow is a rate that fills or drains a stock, per unit of time. It runs from one stock to another, or between a stock and the world outside the model.

Draw one#

Click Flow in the components list. Click where it starts, then where it ends. Each end is either a stock, or empty canvas, which makes a cloud: the world outside the model, which it doesn’t track.

The flow is drawn as a pipe with a valve in the middle. Its value at the time on the time bar shows under its name.

Settings#

SettingWhat it is
NameIts name; in formulas, one word.
UnitIts stock’s unit per time unit: people/day into a stock of people when the model runs in days.
FormulaThe rate, worked out at every step from t, stocks, constants and variables.

Rules#

  • A flow’s formula can use anything in the model: the time t, every stock, every constant, every variable, and your lookup tables and blocks.
  • One flow can run either way. If its formula goes negative, it moves the quantity backwards, from its end to its start.
  • A flow between two stocks conserves what it moves: what leaves one arrives in the other. Clouds are where a model gains or loses things to the outside.

In the C##

Each flow is a line in Evaluate, worked out after the variables it uses:

double HeatLoss = (CoffeeTemperature - RoomTemperature) / CoolingTime;      // °C/minute, CoffeeTemperature → outside

and appears in Model with a plus sign in the stock it fills and a minus sign in the stock it drains.