Skip to main content

Overview

Design mode is the primary building environment in the Model Playground. This is where you define your model’s structure, set initial values, and configure simulation parameters. All changes made in Design mode update the baseline configuration — the foundation that every scenario builds on.
Changes in Design mode set the baseline for all scenarios. Use Experiment mode for what-if analysis.

What You See

When you enter Design mode, the workspace arranges itself for model building:
  • Design Panel (left) — Full access to all parameter sliders organized by submodel
  • Stock-Flow Diagram (center) — Fully expanded diagram editor with Flow, Causal, Params, and Loops tabs
  • Code Editor (bottom) — Direct Python code editing with Pyodide execution
  • Charts are hidden — Focus stays on model structure, not outputs

Design Panel

The Design Panel on the left gives you access to every parameter in your model: stocks’ initial values, flow rates, auxiliary parameters, and simulation settings.

Parameter Organization

Parameters are grouped by submodel. Expand a section to see its parameters and adjust values using sliders or direct numeric entry.
Parameters that are enabled and will affect the simulation. These appear with full sliders you can adjust.
Parameters that exist in the model but are currently deactivated. You can activate them to include them in your analysis.

Parameter Types

TypeDescriptionExample
Stock Initial ValuesStarting quantities for accumulationsInitial Population = 1000
Flow RatesSpeed of change between stocksGrowth Rate = 0.05
Auxiliary ParametersConstants and coefficientsCarrying Capacity = 10000
Simulation SettingsTime horizon, step size, methoddt = 0.25, time = 100

Stock-Flow Diagram

The diagram editor is fully visible in Design mode with all tabs available:

Flow View

The standard stock-and-flow diagram showing accumulations and rates of change

Causal View

Causal loop diagram showing feedback relationships between variables

Params View

Parameter influence diagram showing how parameters connect to model behavior

Loops View

Identified feedback loops with reinforcing (R) and balancing (B) labels

Code Editor

For advanced users, the Code Editor provides direct access to the underlying Python model code. Models run in the browser using Pyodide — no server required.

Key Features

  • Syntax highlighting for Python
  • Live execution via Pyodide (WebAssembly Python runtime)
  • Inline errors shown directly in the editor
  • Parameter sync — Code changes automatically update available sliders
Editing model code directly is an advanced operation. Make sure you understand the model structure before modifying equations.

Design Workflow

1

Review the model structure

Open Design mode and examine the stock-flow diagram to understand relationships between variables.
2

Set initial values

Use the Design Panel to configure starting values for all stocks. These define the system’s initial state.
3

Configure parameters

Adjust flow rates and auxiliary parameters to represent the system you’re modeling.
4

Set simulation settings

Configure the time horizon, time step (dt), and integration method.
5

Move to Calibrate or Experiment

Once the structure is right, switch to Calibrate mode to match real-world data, or jump straight to Experiment mode for what-if analysis.

Design vs. Other Modes

Design ModeCalibrate ModeExperiment Mode
PurposeDefine model structure and baselineMatch model to real-world dataExplore what-if scenarios
Parameter changes affectBaseline (all scenarios)Baseline (all scenarios)Current scenario only
ChartsHiddenVisibleVisible
Stock-Flow DiagramFully expandedMinimizedAvailable
Code EditorAvailableHiddenHidden

Next Steps

Calibration

Fine-tune parameters to match real-world data

Playground Overview

See all playground modes and how they connect

Stock-Flow Diagrams

Learn more about building and reading stock-flow diagrams

Model Controls

Deep dive into parameter sliders and scenario management