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.

See also

FlowPortStockMultiPort

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 (18)

SplitFlow

BusinessSimulation.CausalLoop

Splitting a flow into n flows

CheckValveInflow

BusinessSimulation.Flows.Unidirectional

Flow is only passed on if it fills the connected stock

CheckValveOutflow

BusinessSimulation.Flows.Unidirectional

Flow is only passed on if it drains the connected stock

Cloud

BusinessSimulation.SourcesOrSinks

Reservoir (stock/level) with an infinite capacity

Account

BusinessSimulation.MoleculesOfStructure.Incubators

Basic model of an account with optional interest

Collector

BusinessSimulation.MoleculesOfStructure.Incubators

A reservoir that aggregates multiple stock ports

SplitFlow

BusinessSimulation.MoleculesOfStructure.Transceivers

Splitting an arbitrary flow into n subflows

Reservoir

BusinessSimulation.MoleculesOfStructure.Transceivers

A single stock drained by an outflow at a given rate

Chain

BusinessSimulation.MoleculesOfStructure.Transceivers

A chain of serially connected reservoirs

StockPortSensor

BusinessSimulation.Sensors

Rate of flow information from stock ports

StockPortSensor_Control

BusinessSimulation.Sensors

Rate of flow information from stock ports

GenericStock

BusinessSimulation.Interfaces.Basics

Generic Stock to collect material or information

GenericStock_Special

BusinessSimulation.Interfaces.Basics

Generic Stock with internal dynamics

GenericStockInfo

BusinessSimulation.Interfaces.Basics

GenericStockInfo_Special

BusinessSimulation.Interfaces.Basics

Delay

BusinessSimulation.Interfaces.PartialCLD

Partial model of a delay for CLD+ modeling

Stock

BusinessSimulation.Interfaces.PartialCLD

Partial stock forCLD+ modeling

BaseSubsystem

BusinessSimulation.Interfaces.PartialSubsystems

Partial subsystem with flexible number of connectors

Extended by (1)

StockMultiPort

BusinessSimulation.Interfaces.Connectors

Used to represent multiple stock connectors