modelBidirectionalFlow
Generic bi-directional flow between two stocks
Extends from Basics.GenericFlow (Flow Template with two FlowPorts), Icons.BidirectionalFlow (Icon for bidirectional flow classes), Basics.ThreeSO_rate (Generic information output for flow elements).
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 bi-directional flow components where the value for the rate at port A (A_rate) can be set by an equation.
Notes
- A positive rate is associated with a flow from the stock connected to port A (portA) to the one connected to port B, while a negative rate will indicate a flow from B to A.
- The rate of flow at port B is given by the equation
B_rate = - A_rate. - The flow-element will observe the stock-signals (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 |
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 |
Revisions
- Changed type for
A_rate, B_ratetoRealin v2.2