.BusinessSimulation.Flows.Unidirectional.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

See also

SplitOutflowDynamicStock


Generated at 2025-04-25T18:20:13Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos