The Mass With Stop And Friction component models a mass sliding with friction on a fixed surface and with perfectly plastic stops in both directions. A finite state machine ensures that the mass transitions correctly from stuck to sliding.
The distance between the left and right flanges is given by parameter . The coordinate corresponds to the midpoint of the two flanges.
With the mass sliding in the positive direction, the frictional force is
When the velocity goes to zero, the mass becomes stuck. It resumes sliding when the magnitude of the applied force exceeds the maximum static friction force,