blockIntegratorOrFirstOrder
Switch between two operators : integrator, first-order filter
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
The IntegratorOrFirstOrder switches, depending on the logical connector u2 (the middle connector) between the two possible input signals u1 (upper connector) and u3 (lower connector) and applies different operations to them.
If u2 is true, the output signal y is the result of an integration of u1.
If u2 is false, the output signal y is the result of a first order filter applied to u3.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Types.PerUnit | K | 1 | Integrator gain |
| Types.Time | tFilter | First-order time constant in s | |
| Initialization | |||
| Real | Y0 | Value of y at initial time | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u1 | Connector of first Real input signal | |
| Modelica.Blocks.Interfaces.BooleanInput | u2 | Connector of Boolean input signal | |
| Modelica.Blocks.Interfaces.RealInput | u3 | Connector of second Real input signal | |
| Modelica.Blocks.Interfaces.RealOutput | y | Connector of Real output signal |