modelFilterPosNeg
Filter for only positive or negative values
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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | onlyPositive | true | true if output should only contain positive values |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SISO) | Connector of Real input signal | |
| RealOutput | y (from SISO) | Connector of Real output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.BooleanExpression | booleanExpression | ||
| Modelica.Blocks.Logical.Switch | switch1 | ||
| Modelica.Blocks.Math.Max | max | ||
| Modelica.Blocks.Math.Min | min | ||
| Modelica.Blocks.Sources.RealExpression | realExpression |