blockLine
Output the value of the input x along a line specified by two points
Information
Block that outputs y = a + b u,
where
u is an input
and the coefficients a and b
are determined so that the line intercepts the two input points
specified by the two points x1 and f1,
and x2 and f2.
The parameters limitBelow and limitAbove
determine whether x1 and x2 are also used
to limit the input u.
If the limits are used, then this block requires x1 < x2.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | limitBelow | true | If true, limit input u to be no smaller than x1 |
| Boolean | limitAbove | true | If true, limit input u to be no larger than x2 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | x1 | Input for support point x1, with x1 < x2 | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | f1 | Input for support point f(x1) | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | x2 | Input for support point x2, with x2 > x1 | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | f2 | Input for support point f(x2) | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u | Input for independent variable | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | y | Output with f(x) along the line specified by (x1, f1) and (x2, f2) |
Revisions
-
March 2, 2020, by Michael Wetter:
Changed icon to display dynamically the output value. -
March 25, 2018, by Michael Wetter:
Improved documentation, icon and added warning if the limits are used andx1 > x2.
This is for Buildings, issue 1155. -
January 11, 2017, by Michael Wetter:
First implementation.