# Droop Control (Grid-Forming) (`droop`)

> Sets an inverter's frequency and voltage amplitude from the power it delivers, so inverters in parallel share a load.

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

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

**Group:** Control · **Kind:** `{"block":"droop","kind":"control"}`

## When to use it

Use it for a grid-forming inverter that runs alone or in parallel with others on an island or microgrid: each inverter sets its own voltage and the droops share the load without a link between them. Use Three-Phase SRF-PLL for a grid-following inverter that injects current into a stiff grid.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `p` | signal | Measured active power the inverter delivers, in W |
| `q` | signal | Measured reactive power, in var, positive for an inductive load |
| `theta` | signal | Angle of the voltage reference, in radians |
| `w` | signal | Angular frequency of the voltage, in rad/s |
| `e` | signal | Amplitude of the voltage reference, peak per phase, in V |

## Common parameters

- `e0`: Voltage amplitude (peak, per phase) at the reactive power qset (Default: required)
- `prated`: Rated active power: the base of kp (Default: required)
- `kp`: Frequency droop per unit: the frequency falls by kp·f0 at the rated power (Default: required)
- `kq`: Voltage droop per unit: the amplitude falls by kq·e0 at the rated reactive power (Default: required)
- `fc`: Cutoff of the filter on the measured powers (Default: required)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `f0` | Hz | 50 |  | Nominal frequency, at the power pset (50 Hz mains, IEC 60038:2009 Table 1) |
| `e0` | V | required |  | Voltage amplitude (peak, per phase) at the reactive power qset |
| `prated` | W | required |  | Rated active power: the base of kp |
| `qrated` | var | optional (off) |  | Rated reactive power: the base of kq (prated when absent) |
| `kp` | — | required |  | Frequency droop per unit: the frequency falls by kp·f0 at the rated power |
| `kq` | — | required |  | Voltage droop per unit: the amplitude falls by kq·e0 at the rated reactive power |
| `fc` | Hz | required |  | Cutoff of the filter on the measured powers |
| `pset` | W | 0 |  | Active power at which the frequency is f0 |
| `qset` | var | 0 |  | Reactive power at which the amplitude is e0 |
| `theta0` | rad | 0 |  | Angle at the start |

_Parameter descriptions are in English in both languages._

## Model

The measured powers pass a first-order low-pass of cutoff fc, Pf and Qf. The frequency is w = 2*pi*f0*(1 - kp*(Pf - pset)/prated) and the amplitude e = e0*(1 - kq*(Qf - qset)/qrated); theta is the integral of w, kept between 0 and 2*pi. kp and kq are per-unit droops: with kp = 0.01 the frequency falls by 1 % of f0 when the power rises by prated. In steady state every inverter on one island runs at the same frequency, so kp1*P1/prated1 = kp2*P2/prated2: inverters with the same per-unit droop share active power by their ratings, whatever the lines between them. w stays between 0 and twice the nominal speed and e between 0 and 2*e0. The filters start at the set points, so the run starts at f0 and e0. The block has no direct feedthrough, so it can sit in the loop it feeds; it then reads the power of the previous step. Feed theta and e to Inverse Park (dq2abc) with d = e and q = 0 to get the three phase voltage references.

## Common mistakes

- The droops assume a mainly inductive output impedance, where active power follows the angle and reactive power the amplitude. With a resistive line (low-voltage cables) the two couple and the sharing drifts; add series inductance or a virtual impedance.
- Reactive power shares by the ratings only when the output impedances are in inverse proportion to the ratings, because the voltages at the inverters differ by the drops along their lines. Expect an error in the reactive share with unequal lines; active power still shares exactly.
- q must be positive for an inductive load (current lagging the voltage), as Instantaneous Power (pq) gives it from the inverter's own voltage and current. A reversed current direction flips both powers and the droops push the wrong way.
- A larger droop or a higher fc makes the sharing faster but less damped; with a few percent of droop keep fc at a few hertz, well below the line frequency, so the filter also removes the ripple at twice the line frequency of an unbalanced load.

Problems rules: `pin.unconnected`

## Datasheet and sources

There is no datasheet. e0 is the phase voltage peak of the grid the inverter forms (230 V rms is 325 V peak), prated and qrated are the inverter's ratings, and kp and kq come from the grid's rules or the microgrid's design: a few percent of frequency droop and a few percent of voltage droop at rated power. fc is a few hertz.

## Example

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

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