# Friction (`friction`)

> Drag that grows in step with speed, from a shaft to the frame.

![friction](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/friction.svg)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/mechanical/friction/)

**Group:** Mechanical · **Kind:** `{"element":"friction","kind":"mechanical"}`

## When to use it

Use it for bearing and air drag that grow with speed. Use Fan Load for drag that grows with speed squared, and Load Torque for a constant load.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `shaft` | mechanical | Shaft terminal, the torque always opposes the speed |

## Common parameters

- `b`: Friction that grows with speed (Default: required)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `b` | N·m·s/rad | required |  | Friction that grows with speed |

_Parameter descriptions are in English in both languages._

## Model

The torque is T = b·ω in N·m with ω in rad/s, and it opposes the rotation. The element is a conductance b from the shaft net to the frame. The loss power is b·ω², and there is no static friction or Stribeck effect. The torque is i(B1).

## Common mistakes

- b must be greater than zero, and a zero value is refused. To have no friction, leave the part out, and remember that a machine has its own b (default 0) that adds to this one.
- Viscous friction does not hold a shaft that is already stopped. A load that needs a breakaway torque also needs a Load Torque part, which still cannot show static friction that reverses with the direction of motion.
- The unit is N·m·s/rad, not N·m/rpm. Multiply a value given per rpm by about 9.55 to convert it.

Problems rules: `compile.error`

## Datasheet and sources

b is the no-load drag torque divided by the speed, in rad/s, at which it was measured. A bearing or fan datasheet gives the drag torque at one speed, so divide it by that speed.

## Example

Open the example with the command `file.openExample` and the name `demo:friction`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
