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:
reset = Buildings.Types.Reset.Disabled
, which is the default,
then the integrator is never reset.
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
.
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.
To adjust the icon layer, the code of Modelica.Blocks.Continuous.Integrator has been copied into this model rather than extended.
y_reset
,
and made rendering of y_reset_in
conditional.type
for configuration
of the integrator reset.