modelFilterPosNeg

Filter for only positive or negative values
Diagram of FilterPosNeg

Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).

Information

1. Purpose of model

Block that can pass through only positive or negative values.

2. Level of detail, physical effects considered, and physical insight

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

u: input

y: output

5. Nomenclature

(no elements)

6. Governing Equations

(no equations)

7. Remarks for Usage

(none)

8. Validation

(no validation or testing necessary)

9. References

(none)

10. Version History

Model created by Carsten Bode (c.bode@tuhh.de), Nov 2018

Parameters

TypeNameDefaultDescription
BooleanonlyPositivetruetrue if output should only contain positive values

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.BooleanExpressionbooleanExpression
Modelica.Blocks.Logical.Switchswitch1
Modelica.Blocks.Math.Maxmax
Modelica.Blocks.Math.Minmin
Modelica.Blocks.Sources.RealExpressionrealExpression