blockIntegratorOrFirstOrder

Switch between two operators : integrator, first-order filter
Diagram of IntegratorOrFirstOrder

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

TypeNameDefaultDescription
Types.PerUnitK1Integrator gain
Types.TimetFilterFirst-order time constant in s
Initialization
RealY0Value of y at initial time

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu1Connector of first Real input signal
Modelica.Blocks.Interfaces.BooleanInputu2Connector of Boolean input signal
Modelica.Blocks.Interfaces.RealInputu3Connector of second Real input signal
Modelica.Blocks.Interfaces.RealOutputyConnector of Real output signal