# Varistor (`varistor`)

> A metal-oxide varistor whose current rises steeply above its varistor voltage.

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

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

**Group:** Passive · **Kind:** `{"kind":"varistor"}`

## When to use it

Use it across a mains or supply input to absorb surges with a lot of energy. For a sharper clamp at low voltage, use TVS Diode.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `p` | electrical | One terminal; the part is the same both ways |
| `n` | electrical | The other terminal |

## Common parameters

- `vv`: Varistor voltage at the current iv (Default: 39)
- `vc`: Clamping voltage at the current ic (Default: 77)
- `ic`: Current of the clamping voltage (Default: 10)
- `wmax`: Energy it may absorb in one surge; more raises a warning (Default: 7)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `vv` | V | 39 |  | Varistor voltage at the current iv |
| `iv` | A | 1m |  | Current the varistor voltage is given at |
| `vc` | V | 77 |  | Clamping voltage at the current ic |
| `ic` | A | 10 |  | Current of the clamping voltage |
| `wmax` | J | 7 |  | Energy it may absorb in one surge; more raises a warning |
| `c` | F | 5.85n |  | Capacitance across it; 0 leaves it out |

_Parameter descriptions are in English in both languages._

**Use for:** Mains surge protection · Supply input clamps · Contact and coil protection

**Not for:** Sharp clamps at low voltage → [`tvs`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/switches/tvs/) · Lightning on telecom lines → [`gdt`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/passive/gdt/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Nonlinearity exponent | α = ln(ic/iv)/ln(vc/vv) | IEC 61051-1:2018, terms and definitions (non-linearity exponent) |
| Current at a voltage | I = iv·(V/vv)^α | IEC 61051-1:2018, terms and definitions (varistor voltage, non-linearity exponent) |
| Power at that voltage | P = V·I | Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 2 (power) |

## Quick check

Inputs:

- `vv`: Varistor voltage = 39 V, `vv`
- `iv`: Current of the varistor voltage = 1m A, `iv`
- `vc`: Clamping voltage = 77 V, `vc`
- `ic`: Current of the clamping voltage = 10 A, `ic`
- `v`: Voltage across it = 60 V

Outputs:

- `alpha`: Nonlinearity exponent = `ln(ic/iv)/ln(vc/vv)` —
- `i`: Current at v = `iv*(v/vv)^alpha` A
- `p`: Power at v = `v*i` W

## Model logic

- The current is i = iv·(abs(v)/vv)^α, the same both ways, with α fitted so the law passes through vv at iv and vc at ic.
- Above four times vc the law goes on along its tangent, and a Newton step away from zero goes only as far as the voltage that carries the current the last linearization predicted.
- c, when set, sits across it and is integrated by backward Euler.
- It adds up the energy it absorbs and warns once that goes above wmax; it does not age, fail or change its law.

## Model

The current follows the power law i = iv * (|v| / vv)^α, the same both ways, with the capacitance c across it when c is set. α is fitted so that the law passes through vv at iv and vc at ic. Far above vc the law goes on along a straight line, so nothing overflows. The part is solved by Newton's method with a limited step. It adds up the energy it absorbs, and a warning appears when that energy goes above wmax.

## Common mistakes

- The varistor voltage must be well above the normal peak voltage. Use the maximum DC or rms operating voltage on the data sheet to choose the part.
- The clamp of a varistor is soft. The voltage at a surge current can be twice vv, so check the voltage the next stage sees.

## Datasheet and sources

Take vv at iv (1 mA) from the varistor voltage column, vc at ic from the maximum clamping voltage column, wmax from the energy column (2 ms), and c from the typical capacitance (0 leaves it out). Across the steep law c is a branch of nanoseconds, so it is integrated by backward Euler. The defaults are the EPCOS SIOV-S14K25 (B72214S0250K101), SIOV leaded StandarD series data sheet, March 2018.

## Example

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

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