modelInteraction

Describes two separate flows to or from sinks or sources

Extends from Basics.GenericFlow (Flow Template with two FlowPorts), Basics.Interaction4SO (Output connectors for interaction elements reporting rates), Icons.Interaction (Icon for interactional flow classes).

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

TypeNameDefaultDescription
Connectors.FlowPortportA (from GenericFlow)Flow from/to Stock A
Connectors.FlowPortportB (from GenericFlow)Flow to/from Stock B
RealOutput_By_B (from Interaction4SO)Rate for flow to and from B (positive value indicates inflow)
RealOutput_By1_B (from Interaction4SO)Rate for flow to and from B (positive value indicates inflow)
RealOutput_Ay1_A (from Interaction4SO)Rate for flow to and from A (positive value indicates inflow)
RealOutput_Ay_A (from Interaction4SO)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.