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