Hard stop

translational.hard_stop

Free travel between a lower and an upper limit on the position of flange b relative to flange a. Beyond a limit a stiff spring and a damper push back (penalty contact). The contact force never pulls the flanges into the stop.

Ports

NameDomain
atranslational
btranslational

Parameters

NameUnitDefaultRangeDescription
s_minm-0.1Lower limit
s_maxm0.1Upper limit
cN/m10000000 to ∞Contact stiffness
dN.s/m1000 to ∞Contact damping

Variables

NameUnit
s_relm
v_relm/s
fN

Equations

s_rel = b.s - a.s
v_rel = der(b.s) - der(a.s)
0 = a.f + b.f
f = b.f
f = if s_rel > s_max then max(c * (s_rel - s_max) + d * v_rel, 0) else if s_rel < s_min then min(c * (s_rel - s_min) + d * v_rel, 0) else 0