modelPIController
Two coupled PI controllers for CHP control
Information
Overview
This is model consists of two PI controllers to control the system both when in operation as well as when shutting down.
Concept
Because changing the controller signal from a certain value to zero is not continuous it will result in unstabilities in the simulation. Therefore, two controllers are implemented. One for the operation as a normal controller and one that change the output signal smoothly from the output of the other controller to zero.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | Kc | Gain of the controller | |
| Modelica.Units.SI.Time | Tc | Time constant (T>0 required) | |
| Real | minCapacity | Minimum controller output in load operation |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Logical.Switch | switch1 | ||
| Modelica.Blocks.Continuous.LimPID | PI | PI controller | |
| Modelica.Blocks.Continuous.LimPID | PI1 | Limited PI controller | |
| Modelica.Blocks.Discrete.TriggeredSampler | triggeredSampler | ||
| Modelica.Blocks.Discrete.TriggeredSampler | triggeredSampler2 | ||
| Modelica.Blocks.Logical.TriggeredTrapezoid | triggeredTrapezoid | ||
| Modelica.Blocks.Logical.Switch | switch3 | ||
| Modelica.Blocks.Math.Product | product | ||
| Modelica.Blocks.Logical.Switch | switch2 | ||
| Modelica.Blocks.Interfaces.RealOutput | y | Controller output signal | |
| Modelica.Blocks.Interfaces.RealInput | setpoint | ||
| Modelica.Blocks.Interfaces.BooleanInput | on | Connector of boolean input signal | |
| Modelica.Blocks.Logical.Not | not1 | ||
| Modelica.Blocks.Interfaces.RealInput | measurement | Connector of second real input signal |
Revisions
-
December 08, 2016 by Moritz Lauster:
Adapted to AixLib conventions -
October 11, 2016 by Pooyan Jahangiri:
Variable names updated and merged with AixLib -
January 23, 2014 by Pooyan Jahangiri:
Formatted documentation appropriately -
January 31, 2011 by Pooyan Jahangiri:
Implemented