modelIntegratorWithReset
Test model for integrator with reset
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This model tests the implementation of Buildings.Utilities.Math.IntegratorWithReset with and without reset, and with different start values and reset values.
The integrator intWitRes1 is triggered by a sample trigger
which becomes true at t=0, while intWitRes2 is triggered
by a boolean pulse with is true at t=0.
Hence, intWitRes1 starts with y(0)=y_reset while
intWitRes2 starts with y(0)=y_start.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.Constant | cons | Constant as source term | |
| Buildings.Utilities.Math.IntegratorWithReset | intWitRes1 | Integrator with reset | |
| Buildings.Utilities.Math.IntegratorWithReset | intWitRes2 | Integrator with reset and y_reset = 2 | |
| Modelica.Blocks.Sources.BooleanPulse | booleanPulse | Boolean pulse | |
| Buildings.Utilities.Math.IntegratorWithReset | intNoReset | Integrator without reset | |
| Modelica.Blocks.Sources.SampleTrigger | sampleTrigger | Sample trigger | |
| Modelica.Blocks.Sources.Ramp | ramp | Ramp as a source term | |
| Buildings.Utilities.Math.IntegratorWithReset | intDef | Integrator with default values |
Revisions
-
September 29, 2016, by Michael Wetter:
Added more test cases and adapted model to new parameterization. -
August 23, 2016, by Michael Wetter:
Extended example to test initialization. -
August 2, 2016, by Philipp Mehrfeld:
First implementation.