# Heat Source (`qsource`)

> Puts a fixed heat into a thermal node, for a part that is not simulated.

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

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

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

## When to use it

Use it for the losses of parts the circuit does not simulate, such as a controller, a gate driver, a shunt or the resistors of the bill of materials, on the node of the heatsink or board they warm.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a` | thermal | Thermal node the heat goes into |

## Common parameters

- `w`: Heat it puts into its node, such as a controller's or a resistor's loss from the bill of materials; negative takes heat out (Default: optional (off))

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `w` | W | optional (off) |  | Heat it puts into its node, such as a controller's or a resistor's loss from the bill of materials; negative takes heat out |
| `tOn` | °C | optional (off) |  | Thermostat: its node's temperature at which the heat turns on; below tOff it heats when cold, above tOff it acts when hot; give both or neither |
| `tOff` | °C | optional (off) |  | Thermostat: its node's temperature at which the heat turns off again; the source starts off and switches on the thermal step |

_Parameter descriptions are in English in both languages._

**Use for:** Losses of parts not simulated · A gate driver or controller · Heat into a board or a heatsink

**Not for:** A fixed temperature → [`ambient`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/thermal/ambient/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Rise over the ambient | ΔT = P·Rth | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (series thermal resistances) |

## Quick check

Inputs:

- `p`: Heat of the source = 2 W, `w`
- `r`: Thermal resistance to ambient = 5 K/W

Outputs:

- `rise`: Rise over the ambient = `p*r` K

## Model logic

- Its w is added to the heat into node a before each thermal step, so it acts like a device's loss that does not change with time or temperature.
- w may be an expression of the circuit's variables, evaluated once when the circuit compiles.

## Model

A constant heat flow w in W into node a, added to the devices' losses at every thermal step and in a steady-state solve.

## Common mistakes

- w has no default: take it from the part's data sheet (its power dissipation at your operating point) or from a loss you computed; a negative w takes heat out.
- The node needs a path to an Ambient Temperature, or the network does not compile.

Problems rules: `solver.thermal`, `compile.error`

## Datasheet and sources

The power dissipation of an IC at your supply and frequency, or I²·R of a resistor at its current, from your own loss budget.

## Example

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

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