Mass with stops
Mass with Coulomb and viscous friction and hard end stops.
- translational
- Modelica Standard Library
- 2 ports
- 7 parameters
massStopsLibraryTranslationalDescription
A sliding mass with viscous, Coulomb, and Stribeck friction against the frame, limited to travel between two hard stops. The mass sticks at zero speed until the net force exceeds the breakaway force.
Reaching a stop is fully inelastic: the position is clamped to the stop and the velocity is reset to zero.
Example
End stops and motion sources A sliding mass that hits its stops, a mass pushed into an elastic stop, and masses driven by speed and position sources.
Also in this example:ConstantSine waveFixed (translational)MassHard stopForce sourceConstant forceVelocity sourcePosition sourcePosition sensorVelocity sensor
Ports
Conserving terminals 2
-
a
flange_aFlange a. Force into the flange is positive.
-
b
flange_bFlange b, at the same position as flange_a.
Parameters
-
Mass
m1 kg≥ 0
Mass, in kilograms. Zero or positive.
-
Upper stop
smax0.5 mUpper stop position, in meters. Must be greater than smin.
-
Lower stop
smin-0.5 mLower stop position, in meters.
-
Viscous friction
F_prop1 N·s/m≥ 0
Viscous friction coefficient, in N·s/m. Zero or positive.
-
Coulomb friction
F_Coulomb5 N≥ 0
Constant (Coulomb) friction force while sliding, in newtons. Zero or positive.
-
Stribeck friction
F_Stribeck10 N≥ 0
Extra friction force at low speed, decaying with speed, in newtons. Zero or positive.
-
Stribeck decay
fexp2 s/m≥ 0
Decay rate of the Stribeck term, in s/m. Zero or positive.
Equations
m · dv/dt = flange_a.f + flange_b.f − f, with v = ds/dt Sliding forward: f = F_prop · v + F_Coulomb + F_Stribeck · e^(−fexp·|v|) Sliding backward: f = F_prop · v − F_Coulomb − F_Stribeck · e^(−fexp·|v|) Stuck (v = 0): |f| ≤ 1.001 · (F_Coulomb + F_Stribeck); f follows from the force balance At s = smin or s = smax: s is held at the stop and v is reset to 0
Implementation
Modelica.Mechanics.Translational.Components.MassWithStopAndFrictionAssumptions and limitations
- The mass is a point; both flanges share its position.
- Impacts at the stops lose all kinetic energy; there is no bounce. For an elastic stop, use Mass with Hard stop.
- Initialization fails if the starting position lies outside smin…smax.
See also
Select a block in Gradara and press F1 to open its page offline.