# Circuit Breaker (`breaker`)

> A three-pole breaker that opens at a set time or on overcurrent after a delay, and may close again.

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

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

**Group:** Switches · **Kind:** `{"kind":"breaker"}`

## When to use it

Use it to protect a line, to clear a fault in a protection study, or to connect and disconnect a source at a set time. For a switch that a gate signal drives, use Ideal Switch.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a1` | electrical | Pole a, first side |
| `b1` | electrical | Pole b, first side |
| `c1` | electrical | Pole c, first side |
| `a2` | electrical | Pole a, second side |
| `b2` | electrical | Pole b, second side |
| `c2` | electrical | Pole c, second side |

## Common parameters

- `topen`: Time when it opens (Default: optional (off))
- `tclose`: Time when it closes again after opening at topen (Default: optional (off))
- `itrip`: Peak current that makes it open (Default: optional (off))
- `tdelay`: How long an overcurrent lasts before it opens (Default: 0)
- `treclose`: Time after a trip when it closes again (Default: optional (off))

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `topen` | s | optional (off) |  | Time when it opens |
| `tclose` | s | optional (off) |  | Time when it closes again after opening at topen |
| `itrip` | A | optional (off) |  | Peak current that makes it open |
| `tdelay` | s | 0 |  | How long an overcurrent lasts before it opens |
| `treclose` | s | optional (off) |  | Time after a trip when it closes again |
| `thold` | s | 12m |  | How long an overcurrent is remembered; keep it above half a cycle so a wave counts as one overcurrent |
| `ron` | Ω | 1m |  | Resistance when it is on |
| `roff` | Ω | 100meg |  | Resistance when it is off |

_Parameter descriptions are in English in both languages._

**Use for:** Feeder protection · Fault clearing studies · Reclosing sequences

**Not for:** Gate-controlled switching → [`idealSwitch`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/switches/idealSwitch/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Peak of an rms current | Ipk = √2·Irms | Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 10 (effective value) |
| Conduction loss | P = Irms²·ron | Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 2 (power in a resistor) |
| Leakage across the open gap | I = V/roff | Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 2 (Ohm's law) |

## Quick check

Inputs:

- `irms`: Current, rms = 100 A
- `itrip`: Trip setting, peak = 200 A, `itrip`
- `ron`: On resistance = 1m Ω, `ron`
- `roff`: Off resistance = 100meg Ω, `roff`
- `v`: Voltage across the open breaker, rms = 400 V
- `f`: Line frequency = 50 Hz

Outputs:

- `ipk`: Peak current = `irms*sqrt(2)` A
- `margin`: Trip setting over the peak current = `itrip/ipk` —
- `pcond`: Conduction loss = `irms^2*ron` W
- `ileak`: Leakage current when open = `v/roff` A
- `thmin`: Shortest sensible thold = `1/(2*f)` s

## Model logic

- Before the run each connected pole becomes an ideal switch with an ammeter in series that gives name:ia, name:ib and name:ic.
- All poles open and close together: at topen and tclose, or after an overcurrent above itrip that lasts tdelay.
- The current is compared as a magnitude, and thold keeps the signal up between the peaks of an alternating current.
- After a trip it stays open or closes treclose later; name:closed is 1 while closed. There is no arc and no wait for a current zero.

## Model

Before the run the breaker becomes one ideal switch for each connected pole, with an ammeter in series that gives the signals name:ia, name:ib and name:ic. All poles open and close together. With topen set, it opens at that time, and with tclose set too, it closes again at that time. With itrip set, it opens when the peak current of any pole stays above itrip for tdelay. The current is compared as a magnitude, and thold keeps the signal up between the peaks of an alternating current, so a steady overcurrent counts as one. After a trip it stays open, or closes treclose later when that is set; if the fault is still there it trips again. The signal name:closed is 1 while the breaker is closed. There is no arc and no wait for a current zero: an inductive current is cut at once, and a voltage spike can follow.

## Common mistakes

- itrip is a peak value. A trip level of 100 A rms is about 141 A peak.
- Set tdelay longer than thold. An overcurrent is remembered for thold after each peak, so with a shorter delay the breaker cannot tell a short overcurrent from a long one and opens after a single peak.
- A pole whose two pins have no net is left out, so a single-phase breaker uses only a1 and a2. A breaker with no pole connected is refused.
- A breaker that closes onto a fault that is still there trips again each time and never settles. Set treclose only when the fault is gone by then.
- Opening an inductive current at once puts a large voltage across the open breaker, because roff is large. Add a snubber or a path for the current if the spike matters.

Problems rules: `compile.error`

## Datasheet and sources

itrip is the pickup setting of the protection as a peak current, and tdelay is its time delay. ron is the resistance of the closed main contacts and roff the leakage of the open gap; both are modelling values, not catalogue data.

## Example

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

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