modelSwitching
An exchange of matter between two stocks at an exogenous rate
Extends from Interfaces.PartialFlows.BidirectionalFlow (Generic bi-directional flow between two stocks).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
This is the classical example for an exchange of "matter" (conserved quantities either matter, energy, or information) between two stocks, where the flow may go in either direction.
Notes
- A positive rate indicates a flow from stock A to stock B.
- A negative rate indicates the reverse flow from stock B to stock A.
See also
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 | |
| Interfaces.Connectors.RealInput | u | Rate input |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from ThreeSO_rate) | Rate information | |
| RealOutput | y1 (from ThreeSO_rate) | Rate information | |
| RealOutput | y2 (from ThreeSO_rate) | Rate information |