BasicStock

Unrestricted reservoir to store information

Diagram

Information

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

This is the general, unrestricted reservoir of the system dynamics methodology, it accumulates information transported by flow components connected to the StockPorts.

Parameters (7)

init

Value: modelSettings.init

Type: InitializationOptions

Description: Provide InitializationOptions (Free, FixedValue, SteadyState)

hasStockInfoOutput

Value: false

Type: Boolean

Description: = true, if a StockInfoOutput should be added to the stock

initialValue

Value: 0

Type: OutputType

Description: Initial level (should be different from 0 to find non-trivial steady state solution)

maxValue

Value: inf

Type: OutputType

Description: Maximum admissable value

minValue

Value: -inf

Type: OutputType

Description: Minimum admissable value

useAssert

Value: false

Type: Boolean

Description: = true, if leaving the admissable range is to cause an error or warning

causeError

Value: true

Type: Boolean

Description: = true, if leaving the admissable range is to cause an error instead of simply a warning

Connectors (6)

y

Type: RealOutput

Description: Level or rate information

y1

Type: RealOutput

Description: Level or rate information

y2

Type: RealOutput

Description: Level or rate information

inflow

Type: StockPort

Description: Inflow port of the stock

outflow

Type: StockPort

Description: Outflow port of the stock

y_stockInfo

Type: StockInfoOutput

Description: Optional StockInfoOutput

Components (3)

modelSettings

Type: ModelSettings

Description: Setting important global variables within a model

stockInfoSensor

Type: StockInfo

Description: Collect basic stock-related information for basic stocks

rangeControl

Type: RangeAssert

Description: Use assert() to check admissable values

Extended by (3)

CapacityRestrictedStock

BusinessSimulation.Stocks

Material stock, that cannot be drained or filled beyond its capacity limits

MaterialStock

BusinessSimulation.Stocks

Reservoir that cannot be drained below zero

InformationLevel

BusinessSimulation.Stocks

Unrestricted reservoir to store information

Revisions

  • Display of %initialValue in the Icon removed in v.2.1.0; it is now taken care of in Icons.Stock.