modelChain

A chain of serially connected reservoirs

Extends from Icons.SubsystemTransceiver (Icon for subsystems with mixed ports), Interfaces.Basics.OutputTypeChoice (Partial model to set output type).

Information

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.

Parameters

TypeNameDefaultDescription
StringiconLabel (from SubsystemTransceiver)""
RealinitialValuezeros(n)Vector of initial values for the stocks in the chain
OutputTypemaxValuefill(inf, n)Maximum admissable value
OutputTypeminValuefill(-inf, n)Minimum admissable value
Structural Parameters
Integern2The number of stocks in the chain
BooleanhasFlowPorttrue= true, if the outflow from the stock will go to a flow port instead of a cloud
BooleanhasStockInfoOutputfalse= true, if a StockInfoOutput should be added to the stock
Advanced
BooleanuseAssertfalse= true, if leaving the admissable range is to cause an error or warning
BooleancauseErrortrue= true, if leaving the admissable range is to cause an error instead of simply a warning

Connectors

TypeNameDefaultDescription
Interfaces.Connectors.StockPortstockPortInflow-side of the chain
Interfaces.Connectors.FlowPortflowPortOutflow side of the chain conditional upon `endWithCloud` switch
Interfaces.Connectors.RealMultiInputuVector input of transition rates
Interfaces.Connectors.StockInfoOutputy_stockInfoOptional StockInfoOutput

Components

TypeNameDefaultDescription
RealMultiOutputyAmounts contained in the stocks