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
| Name | Domain |
|---|---|
a | translational |
b | translational |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
s_min | m | -0.1 | Lower limit | |
s_max | m | 0.1 | Upper limit | |
c | N/m | 1000000 | 0 to ∞ | Contact stiffness |
d | N.s/m | 100 | 0 to ∞ | Contact damping |
Variables
| Name | Unit |
|---|---|
s_rel | m |
v_rel | m/s |
f | N |
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