Reference: components
Module and boxes
Updated 3 November 2026 · 2 min read
A module is a model with inputs and outputs marked, put into another as a single block that shows only those. This page also covers the boxes that submodels, modules and the oil and gas objects sit in.
Inputs and outputs#
| Mark | On | Means |
|---|---|---|
| Input | A constant | The outer model may set this value, with a number or a formula of its own values |
| Output | A stock or a variable | The outer model may read this value by name |
A constant used in a stock’s starting value can’t be an input, because starting values are fixed before an outer model could feed them.
Add a module#
Click Module in the components list. The dialog lists your models that have inputs or outputs marked; each goes in folded, as one block with its inputs on the left and outputs on the right.
- Click an input on the block to write what feeds it.
- Use an output by its name, with the module’s name in front:
CupCoffeeTemperature.
Boxes#
Every submodel and module sits in a box, and the oil and gas objects make boxes too. Select a box by its label to:
| Action | What it does |
|---|---|
| Label | Rename the box |
| Fold into one block | Show only its inputs and outputs. Offered for a module’s box, the only kind with inputs and outputs |
| Unfold to see inside | Open a folded box again |
| Remove the box, keep what is inside | Take the box away and leave its contents on the canvas |
| Delete the box and everything in it | What it says; it asks you to confirm |
Drag a box by its label to move it and everything inside together.
- 1A folded module: its input on the left, its output on the right.
See also
- Make a model reusable as a moduleMark inputs and outputs, then drop the model into others as a single block.
- SubmodelA whole model inside this one, in its own box.
- Two towns, one outbreakPut a model inside another twice, connect the copies with a flow, and watch the second outbreak follow the first.
- LinkThe arrow that shows one value is used in another's formula.