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
| Type | Name | Default | Description |
|---|---|---|---|
| String | iconLabel (from SubsystemTransceiver) | "" | |
| Real | initialValue | zeros(n) | Vector of initial values for the stocks in the chain |
| OutputType | maxValue | fill(inf, n) | Maximum admissable value |
| OutputType | minValue | fill(-inf, n) | Minimum admissable value |
| Structural Parameters | |||
| Integer | n | 2 | The number of stocks in the chain |
| Boolean | hasFlowPort | true | = true, if the outflow from the stock will go to a flow port instead of a cloud |
| Boolean | hasStockInfoOutput | false | = true, if a StockInfoOutput should be added to the stock |
| Advanced | |||
| Boolean | useAssert | false | = true, if leaving the admissable range is to cause an error or warning |
| Boolean | causeError | true | = true, if leaving the admissable range is to cause an error instead of simply a warning |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Connectors.StockPort | stockPort | Inflow-side of the chain | |
| Interfaces.Connectors.FlowPort | flowPort | Outflow side of the chain conditional upon `endWithCloud` switch | |
| Interfaces.Connectors.RealMultiInput | u | Vector input of transition rates | |
| Interfaces.Connectors.StockInfoOutput | y_stockInfo | Optional StockInfoOutput |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealMultiOutput | y | Amounts contained in the stocks |