add_flow
Add a flow between stocks in a Stella system dynamics model, specifying the flow rate equation and optionally a graphical lookup table.
Instructions
Add a flow between stocks in the current model
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | No | Session-scoped model ID. Optional; defaults to the current model for this session. | |
| name | Yes | Flow name | |
| equation | Yes | Flow rate equation | |
| units | No | Units | |
| from_stock | No | Source stock (null for external source) | |
| to_stock | No | Destination stock (null for external sink) | |
| non_negative | No | Prevent negative values | |
| x | No | X position (optional, auto-positioned if not specified) | |
| y | No | Y position (optional, auto-positioned if not specified) | |
| graphical_function | No | Graphical function (lookup table) definition |