Flow from Stock A to Stock B
This information is part of the Business
Simulation Library (BSL). Please support this work and
► donate.
Partial model extending from the →GenericFlow
base class. This is a generic class for unidirectional
flow components where the value for the rate at port A
(A_rate) can be set by an equation. The rate has to be
positive; negative values will cause a warning.
Notes
- The unidirectional flow will only allow flows from source (A)
to destination (B). A positive rate is associated with the A-side
port (
portA) and will thus drain the stock connected
to it.
- The rate of flow at port B is given by the equation
B_rate = - A_rate.
- The flow-element will observe the Boolean flags of the
connected stocks (e.g., stopOutflow or
stopInflow) on both ports which may override the intended
rate to give zero flow.
- Minor modifications for
useA_rate and
useB_rate expressions in v2.1.0.
Generated at 2026-04-14T18:18:34Z by OpenModelicaOpenModelica 1.26.3 using
GenerateDoc.mos