UnidirectionalFlow

Flow from Stock A to Stock B

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

Transition

BusinessSimulation.Flows.Unidirectional

Flow from stock A to stock B at a given rate

Revisions

  • Minor modifications for useA_rate and useB_rate expressions in v2.1.0.