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#

MarkOnMeans
InputA constantThe outer model may set this value, with a number or a formula of its own values
OutputA stock or a variableThe 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:

ActionWhat it does
LabelRename the box
Fold into one blockShow only its inputs and outputs. Offered for a module’s box, the only kind with inputs and outputs
Unfold to see insideOpen a folded box again
Remove the box, keep what is insideTake the box away and leave its contents on the canvas
Delete the box and everything in itWhat it says; it asks you to confirm

Drag a box by its label to move it and everything inside together.

  1. 1A folded module: its input on the left, its output on the right.