<!-- TE10 Studio documentation: /docs/app/emi-emissions -->
# EMI and radiated emissions

TE10 Studio can help you **predict and debug radiated emissions before you go to a test lab**. It solves the
fields from your board, cable or enclosure, and gives you the electric field at a chosen distance.

!!! warning "Pre-compliance only"
    TE10 Studio doesn't certify a product against CISPR, FCC or any other regulation. A simulation can't replace
    a test at an accredited lab. TE10's emission workflow hasn't yet been compared with chamber measurements, so
    use it to rank designs and find problems, and check your own correlation against a measured product.

## What's built in and what isn't

| Task | In TE10 Studio |
|---|---|
| Import boards, enclosures and existing EM projects | Yes, see [Importing models](/docs/app/importing) |
| Full-wave solve with open (radiating) boundaries | Yes |
| Far-field pattern, radiated power, peak direction | Yes |
| Surface currents and field plots to find the radiator | Yes |
| Field strength at 3 m or 10 m in dBµV/m | With the script below |
| Scaling to your real source spectrum | With the script below |
| Regulatory limit lines | No. Enter the limit from the current edition of your standard |
| Quasi-peak, average or RBW receiver detectors | No |
| Antenna height scan and turntable | No. Sweep the far-field directions instead |
| Reflecting ground plane of a test site | Not modeled by the script. See [Accuracy limits](#accuracy-limits) |
| Conducted emissions (LISN) | No built-in workflow |

## Workflow

1. **Bring in the geometry.** Import the board, plus anything that radiates with it: enclosure, heatsink, attached
   cable and return path. A cable left out of the model can't radiate in the result.
2. **Add the noise source.** Put a [lumped port](/docs/app/ports-boundaries) where the noise enters, such as across
   a driver output or a switching node. Use a resistance close to the source's impedance.
3. **Make the space open.** Add an air box with an absorbing boundary. See [Ports and boundaries](/docs/app/ports-boundaries).
4. **Add a far-field setup.** Use **Far Field...** in the Monitors group, covering the full sphere so the script can
   find the worst direction.
5. **Sweep the band you care about.** Include the source's harmonics. Save far-field data at each frequency you
   want to evaluate.
6. **Convert to field strength** with the script below and compare it with your limit.
7. **Find the radiator.** Use **Surface Current...**, field plots and the 3D pattern, change the design, then solve again.

## Field strength at a test distance

TE10 stores the far field as `r·E` in volts (peak). In free space, at distance `d`, the RMS field is:

```text
E_rms = |r·E| / (√2 · d) · √(P_source / P_incident)
dBµV/m = 20 · log10(E_rms · 1e6)
```

`P_incident` is the power TE10 used to drive the port. `P_source` is your source's available power. For a source with
an open-circuit RMS voltage `V_oc` and resistance `R`, `P_source = V_oc² / (4R)`.

Run this with `te10 run emissions.py`, or from **Tools › Run Script...**:

```python
import numpy as np
import te10_studio.api as em

PROJECT = "board.te10"
SETUP = "S1"
DISTANCE_M = 3.0
FREQ_GHZ = 0.3
V_OC_RMS = 0.1     # noise source, open-circuit RMS volts at this frequency
R_SOURCE = 50.0    # ohms
LIMIT_DBUV_M = 40.0  # enter the limit from your standard

prj = em.Project.open(PROJECT)
result = prj.setups[SETUP].solve(cores=4)
pattern = result.farfield().pattern(FREQ_GHZ)

p_source = V_OC_RMS ** 2 / (4 * R_SOURCE)
scale = np.sqrt(p_source / pattern.p_inc)
e_rms = pattern.values("rE") / (np.sqrt(2) * DISTANCE_M) * scale
db = 20 * np.log10(np.maximum(e_rms, 1e-30) * 1e6)
i = int(np.argmax(db))

print(f"{pattern.freq_ghz:.4f} GHz: {db[i]:.1f} dBuV/m at {DISTANCE_M:g} m")
print(f"Worst direction: theta={pattern.theta[i]:.0f}, phi={pattern.phi[i]:.0f}")
print(f"Margin to limit: {LIMIT_DBUV_M - db[i]:.1f} dB")
```

`pattern(...)` uses the nearest solved frequency, so check the printed frequency.

We checked this formula on a solved half-wave dipole: for 0.401 W radiated and 2.26 dBi directivity it gives
123.5 dBµV/m at 3 m, matching the textbook `E_rms = √(30·P·D) / d`.

### Several sources

Each driven port is its own excitation. Sources at the same frequency add as complex fields, so a true sum needs
their relative phase. If the phases are unknown, an RSS sum gives a typical value, and adding magnitudes gives a
worst case.

## Accuracy limits

- **Ground reflections.** Many test sites have a reflecting floor. The formula is free space, and a reflection can
  raise the received field by up to about 6 dB.
- **Distance.** The formula is valid only in the far field. At the low end of the band, 3 m may not be far enough
  from a large product.
- **Low frequency.** An absorbing boundary needs distance from the model, and a wavelength at 30 MHz is 10 m. Solve
  again with a larger air box and check that the answer holds.
- **Source accuracy.** The result can only be as good as your noise spectrum. Use a measured or circuit-simulated source.
- **Detectors.** Limits use quasi-peak, peak or average detectors. A steady sine maps directly, while pulsed or
  broadband noise doesn't.
- **Missing structure.** Cables, connectors and enclosure seams often dominate emissions and must be in the model.

For design decisions, compare **before and after** on the same model. Relative changes are usually more reliable
than an absolute prediction.
