# Nonlinear Rectifier Load (`rectifierLoad`)

> A single-phase diode bridge with a smoothing capacitor and a load resistor, the classic load that draws harmonic current from the line.

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

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

**Group:** Sources · **Kind:** `{"kind":"rectifierLoad"}`

## When to use it

Use it for the front end of an off-line power supply or any capacitor-input rectifier seen from the AC side: to test an inverter or UPS with a nonlinear load, to see the voltage distortion a weak line gets, or as the harmonic source for a filter or power-factor study. For a load that draws a sine, use a resistor.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `l` | electrical | Line terminal of the AC input |
| `n` | electrical | Neutral terminal of the AC input |

## Common parameters

- `c`: Smoothing capacitance on the DC side (Default: required)
- `r`: Load resistance across the capacitor (Default: required)
- `rs`: Line resistance in series with the bridge input; 0 for none (Default: 0)
- `ls`: Line inductance in series with the bridge input; 0 for none (Default: 0)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `c` | F | required |  | Smoothing capacitance on the DC side |
| `r` | Ω | required |  | Load resistance across the capacitor |
| `rs` | Ω | 0 |  | Line resistance in series with the bridge input; 0 for none |
| `ls` | H | 0 |  | Line inductance in series with the bridge input; 0 for none |
| `ron` | Ω | 1m |  | Resistance when it is on |
| `roff` | Ω | 1meg |  | Resistance when it is off |
| `vf` | V | 0 |  | Voltage lost while it conducts |
| `v0` | V | 0 |  | Capacitor voltage at the start |

_Parameter descriptions are in English in both languages._

**Use for:** Harmonic studies of a supply · Inrush and crest-factor checks · The input of a switch-mode supply

**Not for:** A DC-side constant-power load → [`powerLoad`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/sources/powerLoad/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Peak of the line | Vpk = √2·Vrms | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 5 (single-phase diode-bridge rectifier with a capacitor filter) |
| Peak-to-peak ripple | ΔV ≈ I/(2·f·C) | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 5 (single-phase diode-bridge rectifier with a capacitor filter) |
| Discharge time constant | τ = R·C | Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 8 (RC natural response) |

## Quick check

Inputs:

- `vac`: Line voltage, rms = 230 V
- `f`: Line frequency = 50 Hz
- `c`: Smoothing capacitance = 2.2m F, `c`
- `r`: Load resistance = 470 Ω, `r`

Outputs:

- `vpk`: Peak of the line = `vac*sqrt(2)` V
- `idc`: DC load current near the peak = `vpk/r` A
- `ripple`: Peak-to-peak ripple = `idc/(2*f*c)` V
- `tau`: Discharge time constant = `r*c` s

## Model logic

- The line goes through rs and ls, each left out when 0, into a bridge of four ideal diodes that charges c with r across it.
- The diodes conduct only while the line is above the capacitor voltage, so the current comes in short peaks near each crest.
- The DC side runs between the nets NL1:p and NL1:m for a load named NL1, and the capacitor is NL1.c.
- The load is expanded into these parts before the solve, so it simulates like the same circuit drawn by hand.

## Model

The line goes through rs and ls (each left out when 0) into a bridge of four ideal diodes (ron, roff, vf), which charges c, with r across it. The diodes conduct only while the line voltage is above the capacitor voltage, so the current comes in short peaks near each crest, with a high crest factor and odd harmonics. For a load named NL1 the DC side runs between the nets NL1:p and NL1:m, so the DC voltage is v(NL1:p) − v(NL1:m); the capacitor is NL1.c, and with rs set i(NL1.rs) is the line current. The load is expanded into these parts before it is solved, so it simulates like the same circuit drawn by hand.

## Common mistakes

- With rs and ls at 0 the peaks are limited only by the diodes' ron and the source, so they can be far higher than a real line allows. Set the line impedance of the supply you stand for.
- The capacitor starts at v0 (0 V by default), so the first half-cycles draw a large inrush. Start c near the line peak, or judge the harmonics after the run has settled.

## Datasheet and sources

c and r have no default: they are the load you stand for (the bulk capacitor of the supply and its DC load, about v² / P for a load of P watts). A test standard's reference nonlinear load sizes them from its own rules. The diode defaults are the ideal diodes of the three-phase bridge, not a part.

## Example

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

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