modelIntegralErrorBySign
Integral error by sign (either only positive or only negative errors)
Extends from AixLib.Utilities.KPIs.BaseClasses.PartialIntegralErrorSingleReference (Partial model for integral error with single reference value), Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
This model is a sign-based integrator, which allows for the integration of errors only when they are greater than or less than zero.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | use_itgAct_in (from PartialIntegratorBase) | false | = true, enable activation connector; = false, disable connector, integrator continuously activated |
| Boolean | use_itgRes_in (from PartialIntegratorBase) | false | = true, enable reset connector |
| Boolean | posItg | true | = true, integrate positive errors, = false integrate negative errors |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | y (from PartialIntegratorBase) | Integral error output | |
| Modelica.Blocks.Interfaces.BooleanInput | itgAct_in (from PartialIntegratorBase) | Conditional connector to activate integrator | |
| Modelica.Blocks.Interfaces.BooleanInput | itgRes_in (from PartialIntegratorBase) | Conditional connector to reset integrator | |
| Modelica.Blocks.Interfaces.RealInput | u (from PartialIntegralErrorSingleReference) | Value input | |
| Modelica.Blocks.Interfaces.RealInput | ref (from PartialIntegralErrorSingleReference) | Reference value input | |
| Modelica.Blocks.Interfaces.BooleanOutput | isItgAct | If the integrator is activated |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.BooleanExpression | booExpItgAct (from PartialIntegratorBase) | Output for itgAct_internal | |
| Modelica.Blocks.Math.Feedback | dif (from PartialIntegralErrorSingleReference) | Difference between u and ref | |
| Modelica.Blocks.Logical.Switch | swiErr (from PartialIntegralErrorSingleReference) | Switch for error | |
| Modelica.Blocks.Sources.Constant | conZero (from PartialIntegralErrorSingleReference) | Constant 0 | |
| Modelica.Blocks.Continuous.Integrator | errItg (from PartialIntegralErrorSingleReference) | Error integrator | |
| Modelica.Blocks.Nonlinear.Limiter | lim | Limiter for error | |
| Modelica.Blocks.Sources.BooleanExpression | booExpIsAct | Boolean expression if integrator is activated | |
| Modelica.Blocks.Logical.And | and1 | And logic |
Revisions
-
December 17, 2024, by Jun Jiang:
First implementation (see issue 1534)