modelUnidirectionalFlow
Flow from Stock A to Stock B
Extends from Basics.GenericFlow (Flow Template with two FlowPorts), Icons.UnidirectionalFlow (Icon for unidirectional 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 unidirectional flow components where the value for the rate at port A (A_rate) can be set by an equation. The rate has to be positive; negative values will cause a warning.
Notes
- The unidirectional flow will only allow flows from source (A) to destination (B). A positive rate is associated with the A-side port (
portA) and will thus drain the stock connected to it. - The rate of flow at port B is given by the equation
B_rate = - A_rate.
- 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 |
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
- Minor modifications for
useA_rateanduseB_rateexpressions in v2.1.0.