blockLinearPiecewiseTwo
A two-pieces linear piecewise function
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
This component calcuates the output according to two piecewise linear function as
| x0 ≤ u ≤ x1: | y1 = y10 + u (y11-y10)/(x1-x0) y2 = y20 |
| x1 < u ≤ x2: | y1 = y11 y2 = y20 + (u-x1) (y21-y20)/(x2-x1) |
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x0 | First interval [x0, x1] | |
| Real | x1 | First interval [x0, x1] and second interval (x1, x2] | |
| Real | x2 | Second interval (x1, x2] | |
| Real | y10 | y[1] at u = x0 | |
| Real | y11 | y[1] at u = x1 | |
| Real | y20 | y[2] at u = x1 | |
| Real | y21 | y[2] at u = x2 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | Set point | |
| Modelica.Blocks.Interfaces.RealOutput[2] | y | Connectors of Real output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.SetPoints.Table | y1Tab | Table for y[1] | |
| Buildings.Controls.SetPoints.Table | y2Tab | Table for y[2] |
Revisions
-
July 20, 2011, by Wangda Zuo:
Add comments and merge to library. -
January 18, 2011, by Wangda Zuo:
First implementation.