modelWetCoilCounterFlowPIControlAutoTuningFailure
Model that demonstrates the use of a heat exchanger with condensation and with autotuning PI feedback control (intentionally designed to fail)
Extends from Modelica.Icons.Example, Buildings.Fluid.HeatExchangers.Examples.BaseClasses.PartialWetCoilCounterFlow.
Information
This example is identical to Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPIControlAutoTuning except that the configuration is intentionally designed to cause a failure, used to test error-handling mechanisms.
The autotuning is triggered twice.- The first one occurs at 100 seconds and it completes successfully, with the tuned PI parameters taking effect at 157 seconds.
- The second one occurs at 2100 seconds. However, the tuning process yields negative control gains, thus the autotuning fails and a warning is issued. The PI gains remain unchanged from the previous tuning.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.Utilities.PIDWithAutotuning.FirstOrderAMIGO | con | Controller | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Constant | resSig | Reset signal | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Pulse | autTunSig | Signal for enabling the autotuning |
Revisions
-
October 21, 2025, by Sen Huang:
First implementation.