connectorStockPort

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.

See also

FlowPort, StockMultiPort

Components

TypeNameDefaultDescription
RealstockCurrent amount in the stock
RealrateFlow that affects the stock
BooleanstopInflow= true, if nothing can flow into the stock
BooleanstopOutflow = true, if nothing can flow out of the stock