# Wind Turbine (`windTurbine`)

> A wind turbine rotor that drives a shaft with the torque the wind gives it.

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

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

**Group:** Sources · **Kind:** `{"element":"windTurbine","kind":"mechanical"}`

## When to use it

Use it for wind energy systems: put it on the shaft of a generator such as a PM synchronous machine (direct drive) or a wound-rotor induction machine (doubly fed), with an inertia for the rotor. For a fixed driving torque, use Load Torque with a negative value.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `shaft` | mechanical | Generator shaft, driven forward |
| `wind` | signal | Wind speed in m/s (an input signal); replaces v when connected |
| `pitch` | signal | Blade pitch angle in degrees (an input signal); replaces beta when connected |

## Common parameters

- `r`: Blade tip radius (Default: 63)
- `v`: Wind speed; the wind pin replaces it when connected (Default: 11.4)
- `beta`: Blade pitch angle; the pitch pin replaces it when connected (Default: 0)
- `gear`: Gearbox ratio, generator speed over rotor speed (Default: 97)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `r` | m | 63 |  | Blade tip radius |
| `v` | m/s | 11.4 |  | Wind speed; the wind pin replaces it when connected |
| `beta` | ° | 0 |  | Blade pitch angle; the pitch pin replaces it when connected |
| `gear` | — | 97 |  | Gearbox ratio, generator speed over rotor speed |
| `rho` | kg/m³ | 1.225 |  | Air density |
| `c1` | — | 0.5176 |  | Coefficient c1 of the Cp(λ, β) fit |
| `c2` | — | 116 |  | Coefficient c2 of the Cp(λ, β) fit |
| `c3` | — | 0.4 |  | Coefficient c3 of the Cp(λ, β) fit |
| `c4` | — | 5 |  | Coefficient c4 of the Cp(λ, β) fit |
| `c5` | — | 21 |  | Coefficient c5 of the Cp(λ, β) fit |
| `c6` | — | 0.0068 |  | Coefficient c6 of the Cp(λ, β) fit |

_Parameter descriptions are in English in both languages._

**Use for:** Direct-drive generators · Doubly fed generators · Maximum power point studies

**Not for:** A fixed driving torque → [`torque`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/mechanical/torque/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Tip-speed ratio | λ = ω·R/v | Heier, Grid Integration of Wind Energy Conversion Systems, 2nd ed. (2006), ch. 2 (tip-speed ratio) |
| Power coefficient fit | Cp = c1·(c2/λi − c3·β − c4)·exp(−c5/λi) + c6·λ | Heier, Grid Integration of Wind Energy Conversion Systems, 2nd ed. (2006), ch. 2 (Cp(λ, β) fit) |
| Power taken from the wind | P = ½·ρ·π·R²·v³·Cp | Heier, Grid Integration of Wind Energy Conversion Systems, 2nd ed. (2006), ch. 2 (power of the wind) |
| Torque on the generator shaft | T = P/(ω·gear) | Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 2 (power) |

## Quick check

Inputs:

- `r`: Blade tip radius = 63 m, `r`
- `v`: Wind speed = 11.4 m/s, `v`
- `beta`: Pitch angle = 0 °, `beta`
- `gear`: Gearbox ratio = 97 —, `gear`
- `rho`: Air density = 1.225 kg/m³, `rho`
- `c1`: Coefficient c1 = 517.6m —, `c1`
- `c2`: Coefficient c2 = 116 —, `c2`
- `c3`: Coefficient c3 = 400m —, `c3`
- `c4`: Coefficient c4 = 5 —, `c4`
- `c5`: Coefficient c5 = 21 —, `c5`
- `c6`: Coefficient c6 = 6.8m —, `c6`
- `wr`: Rotor speed (an example, not a data sheet value) = 1.2 rad/s

Outputs:

- `lam`: Tip-speed ratio = `wr*r/v` —
- `li`: Helper 1/(1/(λ + 0.08β) − 0.035/(β³ + 1)), inverted = `1/(1/(lam + 0.08*beta) - 0.035/(beta^3 + 1))` —
- `cp`: Power coefficient = `c1*(c2/li - c3*beta - c4)*exp(-c5/li) + c6*lam` —
- `pwind`: Power taken from the wind = `0.5*rho*pi*r^2*v^3*cp` W
- `tq`: Torque on the generator shaft = `pwind/wr/gear` N·m

## Model logic

- The rotor turns at the shaft speed divided by gear, and its tip-speed ratio is the rotor speed times r over v.
- The power taken from the wind is 0.5 * rho * pi * r^2 * v^3 * Cp(lambda, beta), with the Cp fit of Heier.
- The torque is that power over the rotor speed, then over gear. Below lambda = 1 it is held at its value there.
- The torque uses the speed of the last accepted step. The rotor inertia is not included: add an Inertia on the shaft.

## Model

The rotor turns at the shaft speed divided by gear. Its tip-speed ratio is lambda = rotor speed * r / v, and the power it takes from the wind is 0.5 * rho * pi * r^2 * v^3 * Cp(lambda, beta), with Cp = c1 * (c2 / li - c3 * beta - c4) * exp(-c5 / li) + c6 * lambda and 1 / li = 1 / (lambda + 0.08 * beta) - 0.035 / (beta^3 + 1), the fit of Heier (1998). The default coefficients give a highest Cp of 0.48 at lambda = 8.1 with flat blades. The torque on the shaft is that power divided by the rotor speed, then by gear. Below lambda = 1 the torque is held at its value there, so it stays finite at standstill. Like the speed-dependent loads, the torque uses the speed of the last accepted step. The torque is i(name) and the power coefficient the signal name:cp. The rotor's inertia is not included: add an Inertia on the shaft.

## Common mistakes

- With flat blades the fit gives almost no torque at low tip-speed ratios, so a turbine at rest against a friction load may never start. Start the shaft turning (w0 of the inertia) or pitch the blades for the start.
- gear multiplies the speed the generator sees. The default 97 is for a geared multi-megawatt turbine; set gear to 1 for a direct-drive generator.
- The rotor's own inertia is large (tens of thousands of tonne square metres for a multi-megawatt rotor). Seen from a geared generator shaft it is divided by gear squared.

## Datasheet and sources

r is half the rotor diameter, v a wind speed of interest (the rated one by default) and gear the gearbox ratio. The defaults are the NREL 5-MW reference turbine (NREL/TP-500-38060, Tables 1-1 and 5-1: 126 m rotor, 11.4 m/s rated wind, 97:1 gearbox) and the Cp coefficients of Heier as given by MathWorks. Fit c1 to c6 to a manufacturer's Cp curve when you have one.

## Example

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

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