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

TypeNameDefaultDescription
Connectors.FlowPortportA (from GenericFlow)Flow from/to Stock A
Connectors.FlowPortportB (from GenericFlow)Flow to/from Stock B

Components

TypeNameDefaultDescription
RealOutputy (from ThreeSO_rate)Rate information
RealOutputy1 (from ThreeSO_rate)Rate information
RealOutputy2 (from ThreeSO_rate)Rate information

Revisions

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