How-to guides

Make a model reusable as a module

Updated 3 November 2026 · 2 min read

A module is one of your own models, built and checked once, that goes into other models as a single block: some values in, some results out, everything else hidden. This is how to make a model into one and use it.

Mark what goes in and what comes out#

Open the model you want to reuse, here a cup of coffee cooling.

  • Select each constant the outer model should be able to set, and tick Input. For the cup, that is the room temperature: whoever uses the cup decides what room it is in.
  • Select each stock or variable the outer model should be able to read, and tick Output. For the cup, that is its temperature.
  1. 1Input: the outer model sets this value.

Leave everything else unmarked. A module with two inputs and one output is easy to reuse; one with twenty of each is a model you have copied, not one you have packaged.

Put it into another model#

In the other model, click Module in the components list. The dialog lists your models that have inputs or outputs. Choose one, give it a short name, and add it.

  1. 1Your models that have inputs or outputs.
  2. 2What it will take in and give out.

It arrives folded, as one block with its inputs on the left and its outputs on the right. Every name inside gets the module’s name in front: a module called Cup has the output CupCoffeeTemperature.

  • Feed an input by clicking it on the block and writing what goes in: a number, or a formula of the outer model’s values.
  • Use an output by its name in any formula, like any other value.
  • Look inside by selecting the box and pressing Unfold to see inside. Fold it again when you are done.
  1. 1The module, folded: only its input and output show.

Folding and unfolding#

A module’s box folds because it has inputs and outputs to show. A plain submodel, put in without any marked, goes in open and stays open: there is nothing to show on a folded block. To fold one, mark its inputs and outputs in its own model and add it as a module instead.