<!-- TE10 Studio documentation: /docs/app/troubleshooting -->
# Troubleshooting and files

## A model doesn't mesh

1. Run **Geometry › Check Geometry...** and fix what it lists, worst first. Imported geometry often needs
   **Heal...** ([Checking and healing](/docs/app/geometry#checking-and-healing)).
2. Look for very thin or tiny features compared with the rest of the model (sub-micron gaps in a
   millimetre model, slivers left by booleans). Remove them, or merge faces with Heal.
3. Partly overlapping objects at the same mesh priority are allowed, but check that the right object wins:
   **Check Model** lists them ([Overlapping objects](/docs/app/geometry#overlapping-objects)).

## A solve fails or stops

- **Check Model** first. It catches missing ports, faces with two boundaries, ports that don't touch a
  conductor, and setups without frequencies.
- Read **Results › Logfile**. The last lines usually say what went wrong. A failed run's files are kept in
  `logs/<setup>/failed-run/` in the results folder.
- **Out of memory**: lower **Maximum unknowns** or the element order, coarsen mesh rules, use symmetry
  planes, or solve on a [cluster](/docs/app/clusters) or in the [cloud](/docs/app/cloud).
- **The linear solver doesn't converge**: usually a model problem (a floating conductor, a port shorted by
  metal, a lumped port across a zero-size gap). Check the ports first.

## Results look wrong

| Symptom | Likely cause |
|---|---|
| S-parameters still change a lot between passes | Not converged: lower **Maximum ΔS per pass**, raise **Maximum refinements** (see [Convergence](/docs/app/results#convergence-and-the-log)) |
| A small model converges in one or two passes but disagrees with measurements | Electrically small: set **Minimum passes** to 3 or more, and a lower ΔS target |
| \|S11\| or \|S21\| above 0 dB | A lossless model with a coarse mesh; or ports referenced to the wrong impedance |
| Strong mode conversion on a symmetric differential pair | Mesh asymmetry: refine the pair with **Max Element Size on Faces** |
| Radiating model shows too much loss or reflection at the boundary | The absorbing boundary is too close: give it at least λ/4 (λ/2 for far fields) |
| Far field doesn't match the port's accepted power | Fields saved only at the solution frequency: check the far-field frequency |
| Wave port reports the wrong impedance | The port face is too small, cuts through a field region, or the ground conductors aren't ticked |

## Where TE10 keeps things

| What | Where |
|---|---|
| The project | `<name>.te10` (JSON) |
| Its results | `<name>.te10results/` beside it ([layout](/docs/app/results#the-results-folder)) |
| The app's log (crashes, errors) | Linux: `~/.local/share/TE10/TE10 Studio/logs/te10studio.log`; Windows: `%LOCALAPPDATA%\TE10\TE10 Studio\logs\te10studio.log` |
| Cluster settings | Your user settings; share them as `.te10cluster` files ([sharing](/docs/app/clusters#sharing-a-clusters-settings-with-colleagues)) |
| AWS key for cloud solves | The `te10` profile in `~/.aws`, readable only by you |
| TE10's SSH key (if you chose key login) | `~/.ssh/te10_ed25519` |

## Environment variables

| Variable | Effect |
|---|---|
| `TE10_PALACE_BIN` | The `palace` program to use instead of TE10's own |
| `TE10_MPIRUN_BIN` | The `mpirun` that goes with it |
| `TE10_CLUSTER_PROFILES` | A shared folder of `.te10cluster` files for your organisation |

## Getting help

When you report a problem, include the version (**Help › About TE10 Studio...**), what you did, and the
log file above. For a failed solve, the `logs/<setup>/` folder of the project's results says the most.

## Report a problem or send feedback

Choose **Help > Report a Problem** or **Help > Send Feedback**. Nothing is sent until you click **Send**, and **Show Exactly What Will Be Sent** displays the full report first. Project files are never attached. The recent app log is attached only if you tick its box, and it can include project and file names.

If the app hits an unexpected error, the error window offers **Report This Problem**.

## Anonymous diagnostics

Diagnostics are off unless you turn them on at first launch or in **Help > Privacy and Diagnostics**. They send the app version, OS type, command counts, solve success or failure, and crash locations in TE10 code. They never send projects, geometry, results, file names, paths, error text, license keys, or computer names. To keep them off for a whole computer or managed install, set the environment variable `TE10_NO_TELEMETRY=1`.
