Controller for flow switch box
This block implements a control logic preventing flow reversal
in the service line, for instance with the hydronic configuration
of Buildings.DHC.ETS.Combined.HeatPumpHeatExchanger.
The block requires two input signals representing the mass flow
rate contributing to a positive flow direction
mPos_flow and the mass flow contributing to a reverse
flow direction mRev_flow. The output signal
y switches to maintain mPos_flow ≥
mRev_flow with a temporization avoiding short cycling. Due
to the temporization, the mass flow rate may transiently change
direction as illustrated in
Buildings.DHC.ETS.Combined.Subsystems.Validation.SwitchBox.
- June 21, 2024, by Antoine Gautier:
Added moving average to break the algebraic loop when using
components configured in steady state.
This is for #3906.
- February 28, 2024, by Michael Wetter:
Added hysteresis to avoid chattering if signals are near zero and
have numerical noise.
- February 23, 2021, by Antoine Gautier:
Refactored with CDL connectors.
- January 23, 2020, by Michael Wetter:
Added Buildings.Controls.OBC.CDL.Logical.TrueFalseHold
to avoid the risk of chattering.
- January 12, 2020, by Michael Wetter:
Added documentation.
Generated at 2026-04-06T18:18:36Z by OpenModelicaOpenModelica 1.26.3 using
GenerateDoc.mos