Brake
rotational.brake
Friction brake between a shaft and the fixed housing. The input u from 0 (released) to 1 (applied) scales the braking torque u tau_max tanh(w / w_s); u outside 0 to 1 is clamped. The tanh smoothing means an applied brake still creeps slightly under load.
Ports
| Name | Domain | Direction |
|---|---|---|
flange | rotational | |
u | signal | in |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
tau_max | N.m | 1 | 0 to ∞ | Braking torque when fully applied |
w_s | rad/s | 0.01 | Speed at which the torque reaches 76 % (tanh 1) of its full value |
Variables
| Name | Unit |
|---|---|
w | rad/s |
tau | N.m |
Equations
w = der(flange.phi) tau = flange.tau tau = min(max(u, 0), 1) * tau_max * tanh(w / w_s)