modelInteraction
Describes two separate flows to or from sinks or sources
Extends from Basics.GenericFlow (Flow Template with two FlowPorts), Basics.Interaction4SO (Output connectors for interaction elements reporting rates), Icons.Interaction (Icon for interactional flow classes).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
Partial model extending from the →GenericFlow base class. This is a generic class for interactional flow components where the values for the rates at port A (A_rate) and B (B_rate) can be set by equations. Positive rates will fill the connected stocks, while negative rates will drain them.
Notes
- The flow-element will observe the Boolean flags of the connected stocks (e.g., stopOutflow or stopInflow) on both ports which may override the intended rate to give zero flow.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.FlowPort | portA (from GenericFlow) | Flow from/to Stock A | |
| Connectors.FlowPort | portB (from GenericFlow) | Flow to/from Stock B | |
| RealOutput_B | y_B (from Interaction4SO) | Rate for flow to and from B (positive value indicates inflow) | |
| RealOutput_B | y1_B (from Interaction4SO) | Rate for flow to and from B (positive value indicates inflow) | |
| RealOutput_A | y1_A (from Interaction4SO) | Rate for flow to and from A (positive value indicates inflow) | |
| RealOutput_A | y_A (from Interaction4SO) | Rate for flow to and from A (positive value indicates inflow) |
Revisions
- Changed type for
A_rate, B_rate, setA_rate, setB_ratetoRealin v2.2.