StockMultiPort

Used to represent multiple stock connectors

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.

Connector Variables (3)

stock

Causality: None

Type: Real

Description: Current amount in the stock

stopInflow

Causality: Output

Type: Boolean

Description: = true, if nothing can flow into the stock

stopOutflow

Causality: Output

Type: Boolean

Description: = true, if nothing can flow out of the stock

Flow Variables (1)

rate

Type: Real

Description: Flow that affects the stock

Used in Components (2)

Collector

BusinessSimulation.MoleculesOfStructure.Incubators

A reservoir that aggregates multiple stock ports

BaseSubsystem

BusinessSimulation.Interfaces.PartialSubsystems

Partial subsystem with flexible number of connectors