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 = TRANSFORM.Types.Reset.Disabled, which is the default, then the integrator is never reset.
  • If reset = TRANSFORM.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 = TRANSFORM.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 TRANSFORM.Blocks.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
TRANSFORM.Types.ResetresetTRANSFORM.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 = TRANSFORM.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 = TRANSFORM.Types.Reset.Input
Modelica.Blocks.Interfaces.BooleanInputtriggerResets the integrator output when trigger becomes true

Revisions

Modified from IBPSA Library