blockIntegratorWithReset

Output the integral of the input signal

Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).

Information

This model is similar to Modelica.Blocks.Continuous.Integrator except that it optionally allows to reset the output y of the integrator.

The output of the integrator can be reset as follows:

  • If reset = Buildings.Types.Reset.Disabled, which is the default, then the integrator is never reset.
  • If reset = Buildings.Types.Reset.Parameter, then a boolean input signal trigger is enabled. Whenever the value of this input changes from false to true, the integrator is reset by setting y to the value of the parameter y_reset.
  • If reset = Buildings.Types.Reset.Input, then a boolean input signal trigger is enabled. Whenever the value of this input changes from false to true, the integrator is reset by setting y to the value of the input signal y_reset_in.

See Buildings.Utilities.Math.Examples.IntegratorWithReset for an example.

Implementation

To adjust the icon layer, the code of Modelica.Blocks.Continuous.Integrator has been copied into this model rather than extended.

Parameters

TypeNameDefaultDescription
Realk1Integrator gain
Buildings.Types.ResetresetBuildings.Types.Reset.DisabledType of integrator reset
Initialization
Modelica.Blocks.Types.InitinitTypeModelica.Blocks.Types.Init.InitialStateType of initialization (1: no init, 2: steady state, 3,4: initial output)
Realy_start0Initial or guess value of output (= state)
Integrator reset
Realy_reset0Value to which integrator is reset, used if reset = Buildings.Types.Reset.Parameter

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal
Modelica.Blocks.Interfaces.RealInputy_reset_inInput signal for state to which integrator is reset, enabled if reset = Buildings.Types.Reset.Input
Modelica.Blocks.Interfaces.BooleanInputtriggerResets the integrator output when trigger becomes true

Revisions

  • November 1, 2016, by Michael Wetter:
    Corrected wrong annotation for y_reset, and made rendering of y_reset_in conditional.
    This is for #562.
  • September 29, 2016, by Michael Wetter:
    Refactored model to use a type for configuration of the integrator reset.
  • August 9, 2016, by Michael Wetter:
    Reformulated model using a conditional connector to use the same design pattern as is used in other models.
  • August 9, 2016, by Michael Wetter:
    Revised model.
  • July 18, 2016, by Philipp Mehrfeld:
    First implementation.