# Ambient Temperature (`ambient`)

> Holds a thermal node at a fixed temperature, like ground for heat.

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

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

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

## When to use it

Place at least one in every thermal network, on the air or coolant node where your thermal resistances end. Use Thermal Resistance and Thermal Capacitance between it and the device.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a` | thermal | Thermal node held at the temperature t |

## Common parameters

- `t`: Fixed temperature it holds (Default: 25)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `t` | °C | 25 |  | Fixed temperature it holds |
| `pwlTime` | s | optional (off) |  | Times of a temperature profile, rising strictly, with commas; with pwlTemp the profile replaces t |
| `pwlTemp` | °C | optional (off) |  | Temperature at each of those times; straight lines between them, held before the first and after the last |

_Parameter descriptions are in English in both languages._

**Use for:** Room or enclosure air · Coolant or cold plate · Worst-case ambient

**Not for:** A body that warms up → [`cth`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/thermal/cth/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Heat sink temperature | Ts = Ta + P·Rsa | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (heat sinks) |
| Headroom to the limit | Tmax − Ts | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (heat sinks) |

## Quick check

Inputs:

- `ta`: Ambient temperature = 25 °C, `t`
- `p`: Heat into the sink = 30 W
- `rsa`: Sink-to-ambient resistance = 1.5 K/W
- `tmax`: Highest allowed sink temperature = 100 °C

Outputs:

- `tsink`: Heat sink temperature = `ta + p*rsa` °C
- `headroom`: Headroom to the limit = `tmax - tsink` K

## Model logic

- Its node is held at t by replacing that node's row of the thermal network, so any heat flows into it without changing its temperature.
- The t of the first ambient in the circuit is also the starting temperature of every thermal node.
- With pwlTime and pwlTemp (equally many values, times rising strictly) the temperature follows that profile instead of t: straight lines between the points, held before the first and after the last, set at the end of every thermal step. No pin or signal drives it.

## Model

The part holds its net at t in degC (default 25) whatever heat flows into it. The t of the first ambient in the circuit also sets the starting temperature of all thermal nodes.

## Common mistakes

- A thermal network with no ambient does not compile. Add one on the node where the heat leaves.
- t is in degC, so 298 means 298 degC, not 25 degC. A node cut off from the ambient is reported.

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

## Datasheet and sources

t is the worst-case ambient of your application, such as 40 or 85 degC inside an enclosure, not the 25 degC of the datasheet test.

## Example

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

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