add_flow
Add a flow between stocks in a system dynamics model, specifying the rate equation and optional source/destination stocks. Supports lookup tables for graphical functions.
Instructions
Add a flow between stocks in the current model
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |