The Coulombic and Viscous Friction block implements a discontinuity at zero and a linear gain otherwise by computing

where, y is the output signal, u is the input signal, Gain is the coefficient of viscous friction parameter, Offset is the coulombic friction value parameter.
Dialog box

Figure 1 Coulomb & Viscous Friction dialog box
Parameters
|
Parameter(s) |
Description |
|
Coefficient of viscous friction(Gain) |
Enter the slope of the viscous friction at nonzero input points. |
|
Coulombic friction value(Offset) |
Enter the coulombic friction value offset. |
|
Sample time |
Enter the time interval between samples. |