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

TypeNameDefaultDescription
Booleanuse_itgAct_in (from PartialIntegratorBase)false= true, enable activation connector; = false, disable connector, integrator continuously activated
Booleanuse_itgRes_in (from PartialIntegratorBase)false= true, enable reset connector
BooleanposItgtrue= true, integrate positive errors, = false integrate negative errors

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputy (from PartialIntegratorBase)Integral error output
Modelica.Blocks.Interfaces.BooleanInputitgAct_in (from PartialIntegratorBase)Conditional connector to activate integrator
Modelica.Blocks.Interfaces.BooleanInputitgRes_in (from PartialIntegratorBase)Conditional connector to reset integrator
Modelica.Blocks.Interfaces.RealInputu (from PartialIntegralErrorSingleReference)Value input
Modelica.Blocks.Interfaces.RealInputref (from PartialIntegralErrorSingleReference)Reference value input
Modelica.Blocks.Interfaces.BooleanOutputisItgActIf the integrator is activated

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.BooleanExpressionbooExpItgAct (from PartialIntegratorBase)Output for itgAct_internal
Modelica.Blocks.Math.Feedbackdif (from PartialIntegralErrorSingleReference)Difference between u and ref
Modelica.Blocks.Logical.SwitchswiErr (from PartialIntegralErrorSingleReference)Switch for error
Modelica.Blocks.Sources.ConstantconZero (from PartialIntegralErrorSingleReference)Constant 0
Modelica.Blocks.Continuous.IntegratorerrItg (from PartialIntegralErrorSingleReference)Error integrator
Modelica.Blocks.Nonlinear.LimiterlimLimiter for error
Modelica.Blocks.Sources.BooleanExpressionbooExpIsActBoolean expression if integrator is activated
Modelica.Blocks.Logical.Andand1And logic

Revisions

  • December 17, 2024, by Jun Jiang:
    First implementation (see issue 1534)