Interaction

Describes two separate flows to or from sinks or sources

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 interactional flow components where the values for the rates at port A (A_rate) and B (B_rate) can be set by equations. Positive rates will fill the connected stocks, while negative rates will drain them.

Notes

  • 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 (6)

portA

Type: FlowPort

Description: Flow from/to Stock A

portB

Type: FlowPort

Description: Flow to/from Stock B

y_B

Type: RealOutput_B

Description: Rate for flow to and from B (positive value indicates inflow)

y1_B

Type: RealOutput_B

Description: Rate for flow to and from B (positive value indicates inflow)

y1_A

Type: RealOutput_A

Description: Rate for flow to and from A (positive value indicates inflow)

y_A

Type: RealOutput_A

Description: Rate for flow to and from A (positive value indicates inflow)

Revisions

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