Friction
- Updated2023-02-17
- 2 minute(s) read
Friction
Implements a discontinuity at zero with linear behavior elsewhere.
Inputs/Outputs

input
Input signal.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.

gain
Slope of the friction element.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default value: 0

offset
Offset of the friction element.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default value: 0

output
Output signal.
This output can return a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Algorithm for Computing the Output Signal
The node uses the following equation to implement a discontinuity at zero with linear behavior elsewhere.
where y is the output signal and u is the input signal.