# Speed Source (`speed`)

> Forces a shaft to turn at a fixed speed and supplies any torque needed.

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

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

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

## When to use it

Use it for dynamometer, locked-rotor and constant-speed generator tests. Use a machine with a load when the speed should follow the dynamics.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `shaft` | mechanical | Shaft terminal, it holds this shaft at speed w |

## Common parameters

- `w`: Speed forced on the shaft (Default: required)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `w` | rad/s | required |  | Speed forced on the shaft |

_Parameter descriptions are in English in both languages._

## Model

The speed of the shaft net is held at w in rad/s, like a voltage source. The torque it supplies is the result i(WS1), positive when it drives the net. Inertias on the same net no longer accelerate because the speed cannot change, and w is a constant that cannot ramp.

## Common mistakes

- With the shaft held at w, the machine speed no longer reacts to its torque, so Te(M1) can look huge. Read it as a measurement, and note that an inertia on the same net has no effect.
- Do not put two speed sources with different w on one shaft net, because each tries to force its own speed. A shaft net name may match an electrical net name without conflict, since the two sets of names are separate.
- w is in rad/s, not rpm. Multiply rpm by 0.10472, so 1500 rpm is 157.08.

## Datasheet and sources

w is the test or running speed in rad/s. It is 0 for a locked-rotor test, and for a rated-speed test it is the nameplate rpm converted to rad/s.

## Example

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

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