connectorStockMultiPort

Used to represent multiple stock connectors

Extends from StockPort (Connector for stock components).

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The StockPort is a composite connector and consists of an acausal connector with the Real potential variable stock indicating the stored amount in a reservoir and the Real flow variable rate indicating the rate of flow into (rate > 0) or out of (rate < 0) the reservoir.

There are also two Boolean output variables, which indicate whether draining the reservoir (stopOutflow) or filling it (stopInflow) is prohibited. Since a generic reservoir will have two ports it is possible to allow inflows and outflows on both ports (standard) or give the stock a clear direction of flow with one port serving as inflow and the other as outflow connector.

Components

TypeNameDefaultDescription
Realstock (from StockPort)Current amount in the stock
Realrate (from StockPort)Flow that affects the stock
BooleanstopInflow (from StockPort)= true, if nothing can flow into the stock
BooleanstopOutflow (from StockPort) = true, if nothing can flow out of the stock