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

TypeNameDefaultDescription
BooleanlimitBelowtrueIf true, limit input u to be no smaller than x1
BooleanlimitAbovetrueIf true, limit input u to be no larger than x2

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInputx1Input for support point x1, with x1 < x2
Buildings.Controls.OBC.CDL.Interfaces.RealInputf1Input for support point f(x1)
Buildings.Controls.OBC.CDL.Interfaces.RealInputx2Input for support point x2, with x2 > x1
Buildings.Controls.OBC.CDL.Interfaces.RealInputf2Input for support point f(x2)
Buildings.Controls.OBC.CDL.Interfaces.RealInputuInput for independent variable
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyOutput 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 and x1 > x2.
    This is for Buildings, issue 1155.
  • January 11, 2017, by Michael Wetter:
    First implementation.