ChainA chain of serially connected reservoirs |
![]() |
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
A chain (aka cascade) consists of a series of →reservoirs that are connected in a sequence. Depending upon the Boolean parameter hasFlowPort
the component will either end in a →Cloud or in a →FlowPort.
n |
Value: 2 Type: Integer Description: The number of stocks in the chain |
---|---|
initialValue |
Value: zeros(n) Type: Real[n] Description: Vector of initial values for the stocks in the chain |
maxValue |
Value: fill(inf, n) Type: OutputType[n] Description: Maximum admissable value |
minValue |
Value: fill(-inf, n) Type: OutputType[n] Description: Minimum admissable value |
hasFlowPort |
Value: true Type: Boolean Description: = true, if the outflow from the stock will go to a flow port instead of a cloud |
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 |
hasStockInfoOutput |
Value: false Type: Boolean Description: = true, if a StockInfoOutput should be added to the stock |
![]() |
stockPort |
Type: StockPort Description: Inflow-side of the chain |
---|---|---|
![]() |
flowPort |
Type: FlowPort Description: Outflow side of the chain conditional upon `endWithCloud` switch |
![]() |
u |
Type: RealMultiInput[n] Description: Vector input of transition rates |
![]() |
y |
Type: RealMultiOutput[n] Description: Amounts contained in the stocks |
![]() |
y_stockInfo |
Type: StockInfoOutput[n] Description: Optional StockInfoOutput |
![]() |
reservoir |
Type: Reservoir[n] Description: A single stock drained by an outflow at a given rate |
---|---|---|
![]() |
cloud |
Type: Cloud Description: Reservoir (stock/level) with an infinite capacity |