OutflowDynamicStock

Outflow from a dynamic stockā€”the rate is set by the stock

Information

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

OutflowDynamicStock can be used to model the outflow from a stock with inherent dynamic behavior (e.g., a conveyor or a higher-order delay). In these cases, the stock will set the flow and "signal" it via its →StockPort_Special.  

Implementation

Since neither negative outflows (after all, this is a unidirectional flow) nor preventing an outflow by "stock control" (e.g., the receiving stock at portB has stopInflow = true) are compatible with this flow element, the following assert conditions will have breaches of these conditions cause errors that will stop the simulation:

assert(portA.rate >= 0, "Rate of outflow must never be negative");
assert(not portB.stopInflow, "There must not be capacity restrictions (stopInflow) for the stock at portB");

Notes

  • The OutflowDynamicStock flow will not observe the stopInflow flag of a stock connected to the B-side port. This means that the receiving stock must have sufficient capacity for the matter flowing out and capacity restrictions have to be imposed by an explicit control structure.
  • To model a fractional outflow from a dynamic stock, SplitOutflowDynamicStock should be used.

  • To model a "leak" SplitOutflowDynamicStock can be used with some fraction of the outflow being directed into a →Cloud.

See also

SplitOutflowDynamicStock

Connectors (5)

portA

Type: FlowPort_Special

Description: Flow from/to Stock A (stock signals the rate)

portB

Type: FlowPort

Description: Flow to/from Stock B

y

Type: RealOutput

Description: Rate information

y1

Type: RealOutput

Description: Rate information

y2

Type: RealOutput

Description: Rate information

Used in Examples (6)

SimpleProductionChain

BusinessSimulation.Examples

A first example

SimpleProductionChainII

BusinessSimulation.Examples

Extending the first example to include replacement purchases

SimpleProductionChainIII

BusinessSimulation.Examples

Further extending the first example to explain new product diffusion

SIR

BusinessSimulation.Examples

Classical epidemic model by Kermack and McKendrick

ManagingEmployment

BusinessSimulation.Examples

Human resource planning

AssemblyLine

BusinessSimulation.Examples

Modeling a production process

Used in Components (3)

ExponentialDelay

BusinessSimulation.CausalLoop

Exponential delay of input flow

PipelineDelay

BusinessSimulation.CausalLoop

Fixed or pure delay of input flow

SplitOutflowDynamicStock

BusinessSimulation.Flows.Unidirectional

The outflow from a dynamic stock is split into n outflows proportional to the weights given