# Thermal Resistance (`rth`)

> Slows the flow of heat between two thermal nodes, in K/W.

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

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

**Group:** Thermal · **Kind:** `{"element":"rth","kind":"thermal"}`

## When to use it

Use it for case-to-sink, sink-to-ambient and other conduction paths. Use Thermal Capacitance for stored heat and Ambient Temperature for a fixed temperature.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a` | thermal | Thermal node; heat flows to b when a is hotter |
| `b` | thermal | The other thermal node |

## Common parameters

- `r`: Resistance to heat flowing through (Default: required)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `r` | K/W | required |  | Resistance to heat flowing through |
| `part` | — | optional (off) |  | Catalogue thermal pad, grease or phase-change material the resistance was read from; it puts the interface on the bill of materials, and the solver never reads it |
| `footprint` | — | optional (off) |  | KiCad library id of the footprint a thermal pad sits on, when the board holds it; board.addFootprints places it with every pad on no net; information only, not simulated |

_Parameter descriptions are in English in both languages._

**Use for:** Case-to-sink paths · Sink-to-ambient paths · Conduction through a layer

**Not for:** Heat stored in a body → [`cth`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/thermal/cth/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Temperature rise across it | ΔT = P·Rth | Incropera, DeWitt, Bergman & Lavine, Fundamentals of Heat and Mass Transfer, 7th ed. (2011), §3.1 (thermal resistance) |
| Temperature of the hot side | Ta + P·Rth | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (heat sinks, series thermal resistances) |

## Quick check

Inputs:

- `p`: Heat flowing through = 10 W
- `r`: Thermal resistance = 500m K/W, `r`
- `ta`: Temperature of the cold side = 25 °C

Outputs:

- `dt`: Temperature rise across it = `p*r` K
- `tj`: Temperature of the hot side = `ta + dt` °C

## Model logic

- It is a conductance 1/r between two nodes of the thermal network, a linear system of its own, apart from the electrical matrix.
- The thermal network takes one backward Euler step after each accepted circuit step, with that step's losses as heat, or steps on its own grid when thermalStep is set.
- A switch reads its loss tables at its thermal node's temperature from the step before, so heating and losses are coupled one step apart.
- r is fixed: it does not change with temperature or airflow.

## Model

The thermal domain follows the electrical analogy. Temperature in degC plays the part of voltage and heat flow in W plays the part of current, so the heat flow from a to b is (T(a) - T(b)) / r. Thermal nets are separate from electrical nets, and a switch sends its losses into the net named in its thermal parameter.

## Common mistakes

- Every thermal network needs a path to an Ambient Temperature part. A node with no path to a fixed temperature or a heat capacity is reported, and a network with no ambient at all does not compile.
- Thermal pins connect to thermal nets only. Joining one to an electrical net is flagged.

Problems rules: `solver.thermal`, `pin.domain_mismatch`

## Datasheet and sources

r comes from the datasheet thermal resistances: junction-to-case from the device, case-to-sink from the interface material, and sink-to-ambient from the heat sink. Resistances in series add up.

## Example

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

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