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.

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 (5)

portA

Type: FlowPort

Description: Flow from/to Stock A

portB

Type: FlowPort

Description: Flow to/from Stock B

y

Type: RealOutput

Description: Rate information

y1

Type: RealOutput

Description: Rate information

y2

Type: RealOutput

Description: Rate information

Extended by (2)

Switching

BusinessSimulation.Flows.Bidirectional

An exchange of matter between two stocks at an exogenous rate

ProportionalSwitching

BusinessSimulation.Flows.Bidirectional

Rate of exchange is proportional to amount in stocks

Revisions

  • Changed type for A_rate, B_rate to Real in v2.2