# Constant-Power Load (`constantPower`)

> A load that takes constant power, so torque rises as speed falls.

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

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

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

## When to use it

Use it for winders, traction loads and machine tools with a constant-power range. Use Load Torque for a constant torque and Fan Load for a load that rises with speed.

## Pins

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

## Common parameters

- `p`: Power the load draws (Default: required)
- `wmin`: Speed below which the load torque fades (Default: 1)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `p` | W | required |  | Power the load draws |
| `wmin` | rad/s | 1 |  | Speed below which the load torque fades |

_Parameter descriptions are in English in both languages._

## Model

The torque is T = p·ω/max(abs(ω), wmin)², which is p/abs(ω) above wmin and falls linearly to zero below it. The speed is from the last accepted step. The power drawn is p above wmin. A negative p makes the load drive the shaft.

## Common mistakes

- A small wmin gives a very large torque at low speed, and the machine may stall instead of starting. Set wmin to the speed where the real load stops following the constant-power rule.
- p is in W, not kW or hp, and the speed is in rad/s. One hp is 746 W, so enter 746 for 1 hp.
- Below wmin the torque is proportional to speed, so a shaft at rest feels no load torque. A run that starts at 0 begins with an easy start and meets the full torque only above wmin.

## Datasheet and sources

p is the constant shaft power of the load from the application need. wmin is the lowest speed of the constant-power range in rad/s, and it is a design value.

## Example

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

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