modelLine

Validation model for the Line block

Information

Validation test for the block AixLib.Controls.OBC.CDL.Reals.Line.

The input u varies from 0.0 to +2.

The block 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.

Components

TypeNameDefaultDescription
AixLib.Controls.OBC.CDL.Reals.Lineline1Block that out the value of the input x along a line specified by two points
AixLib.Controls.OBC.CDL.Reals.Sources.Constantx1Block that generate x1
AixLib.Controls.OBC.CDL.Reals.Sources.Constantf1Block that generate f(x1)
AixLib.Controls.OBC.CDL.Reals.Sources.Constantx2Block that generate x2
AixLib.Controls.OBC.CDL.Reals.Sources.Constantf2Block that generate f(x2)
AixLib.Controls.OBC.CDL.Reals.Sources.Rampramp1Block that generates ramp signal
AixLib.Controls.OBC.CDL.Reals.Lineline2Block that out the value of the input x along a line specified by two points
AixLib.Controls.OBC.CDL.Reals.Lineline3Block that out the value of the input x along a line specified by two points

Revisions

  • March 25, 2018, by Michael Wetter:
    Improved test to validate that the limits are properly used.
  • March 20, 2017, by Jianjun Hu:
    First implementation.