<!-- TE10 Studio documentation: /docs/app/getting-started -->
# Getting started

This page takes you from installing TE10 Studio to having an example project open. Once that works,
go on to the [first simulation tutorial](/docs/app/tutorial-waveguide).

## What you need

| | |
|---|---|
| Operating system | Windows 10 (version 2004 or later) or Windows 11, 64-bit; or Linux on x86-64 |
| Memory | 16 GB or more is a good start. Larger models need more: the solver's memory grows with the mesh, and the app tells you how much a solve needs before it starts |
| Graphics | Any GPU with OpenGL 3.2 or newer (the 3D view) |
| License | A TE10 Studio license key. Without one the app still opens, views and exports projects (read-only) |

Solves on HPC clusters and cloud machines don't use your computer's cores or memory, and they don't
need extra licenses. See [Solving on a cluster](/docs/app/clusters) and [Solving in the cloud](/docs/app/cloud).

## Install

### Windows

1. Run `TE10-Studio-<version>-Setup.exe` and follow the installer.
2. The solver runs inside **WSL 2**, the Linux subsystem built into Windows. The installer sets up TE10's
   own small Linux environment for it (named `te10-solver`), so you don't install Linux or Docker yourself.
   If WSL is switched off on your computer, the installer offers to switch it on. That needs
   administrator rights and a restart.
3. Start **TE10 Studio** from the Start menu.

The installer installs for you alone by default, with no administrator rights needed. It adds a Start menu
entry, opens `.te10` projects with a double-click, and can add a desktop icon. If you tick **Add the te10
command to PATH**, you can run `te10` from any terminal. Otherwise use the full path,
`%LOCALAPPDATA%\Programs\TE10 Studio\te10.exe`. To install a newer version, run its Setup.exe over the old
one. Your settings and license stay.

To check or repair the solver later, open a terminal and run:

```bash
te10 solver status --check
```

`te10 solver setup` installs or updates TE10's WSL solver again, `te10 solver test` runs a small test
solve, and `te10 solver remove` removes it.

### Linux

TE10 Studio comes as an AppImage with the solver inside. Make it executable and run it:

```bash
chmod +x TE10-Studio-*.AppImage
./TE10-Studio-*.AppImage
```

The first start offers to **add TE10 Studio to the applications menu**. This moves the AppImage to
`~/Applications`, adds a menu entry, opens `.te10` projects with a double-click, and puts a `te10` command
in `~/.local/bin`. To do the same later, run `./TE10-Studio-*.AppImage install` once. Nothing needs root.
To upgrade, run the new AppImage's `install` the same way; it replaces the old one in `~/Applications`.

### Uninstall

Uninstalling frees this computer's license seat. It never touches your projects or results.

- **Windows:** **Settings › Apps › TE10 Studio › Uninstall**. This removes the program, its Start menu
  entry, the `te10-solver` WSL environment and the PATH entry. It then asks whether to also remove your
  settings, license key, cluster profiles and logs.
- **Linux:** `te10 uninstall` removes the menu entry, the `te10` command and the AppImage in
  `~/Applications`. Add `--remove-settings` to also remove your settings, license key, cluster profiles
  and logs.

### Where TE10 looks for the solver

TE10 uses the solver it ships with. To use another Palace build, set the environment variables
`TE10_PALACE_BIN` (the `palace` program) and `TE10_MPIRUN_BIN` (the matching `mpirun`) before starting
the app. A Palace build that isn't TE10's own lacks some features: frequency-dependent materials, surface
roughness, lossy wave ports, plane waves and probes need TE10's build.

## First start

The first time TE10 Studio starts, it asks how the mouse should work in the 3D view. Pick the style your
hands already know. You can change it, and every button, wheel action and key, later in
**View › Mouse and Keyboard...**

![Welcome window: choose Click to Select or Double-Click to Select](/docs/img/app/dlg-first-run.webp)

| | Click to Select | Double-Click to Select |
|---|---|---|
| Select | Click (faces in Face mode, objects in Object mode) | Double-click |
| Several faces | Ctrl + click | Keep double-clicking; <kbd>Esc</kbd> clears |
| Selection box | Left-drag on empty space | — |
| Rotate | Middle-drag, or Alt + left-drag | Ctrl + left-drag |
| Pan | Ctrl + middle-drag, or Shift + left-drag | Ctrl + Shift + left-drag |
| Zoom | Shift + middle-drag, or Shift + Alt + left-drag | Left-drag |
| Spin (turn in the screen plane) | — | Shift + left-drag |
| Wheel | Forward zooms in | Back zooms in |

Zooming follows the mouse pointer in both. See [The workspace](/docs/app/interface#mouse-and-keyboard) for the
full list.

## Enter your license key

Choose **Help › Account...** (or **Account** on the Home tab) and click **Enter License Key…**. Paste
the key from your account page or purchase email.

![The Account window before a key is entered](/docs/img/app/dlg-account.webp)

The Account window shows the license, the plan, how many seats it has, when the subscription renews and
until when this computer may work offline.

**Floating licenses** (shared seats): a computer takes a seat when TE10 starts and gives it back when
TE10 closes. If TE10 crashes, the seat frees itself after a few minutes. When all seats are taken, TE10
opens read-only and takes a seat as soon as one frees up.

**Node-locked licenses** (named computers, shown as *Fixed computers* in the Account window): each activated computer keeps its seat and works offline for up to
30 days at a time. To move the license to another computer, click **Deactivate This Computer** in
the Account window first.

### Read-only mode

Without a key, with all seats taken, or after a subscription ends, TE10 Studio still opens every project
and shows its geometry and results. You can view, plot and export. Editing, meshing and solving are
switched off, and the status bar says why. Your projects and results are always yours.

| The Account window says | Meaning |
|---|---|
| Licensed: this computer holds a seat | Everything works |
| No license key: read-only | Enter a key |
| All seats are in use: read-only | Wait, or ask a colleague to close TE10; the seat is taken automatically |
| Subscription ended: read-only | Renew on your account page (**Manage Subscription...**) |
| The license wasn't renewed within its offline period | Connect to the internet once |
| The system clock is behind the license's last use | Fix the computer's clock, then connect once |

From a terminal: `te10 account status`, `te10 account activate <key>`, `te10 account release` (free this
computer's seat) and `te10 account remove`.

## Open an example

Choose **File › Open Examples...** and pick a project. The examples open ready to solve: press
**Solve** and each one finishes in a few minutes or less on a laptop, then look at the S-parameters,
fields and far fields.

| Example | Shows |
|---|---|
| `WR90_Waveguide` | An empty WR-90 rectangular waveguide, 8–12 GHz |
| `WR90_PTFE_Insert` | The same guide with a PTFE slab: reflections and a matched point |
| `Microstrip_Radiation` | A 50 Ω microstrip on FR-4 inside an air box, with far-field results |
| `Cavity_Eigenmode` | A metal-walled cavity solved for its first three resonances (eigenmode solve) |
| `Patch_Antenna_2p4GHz` | An inset-fed 2.4 GHz patch on FR-4 with a lumped port: match, far field and gain |
| `Lowpass_Filter_2GHz` | A stepped-impedance microstrip low-pass filter with a 2 GHz cutoff |
| `Coax_to_WR90` | A coax probe launching into WR-90 waveguide in front of a shorted end |

The folder also has `scripting/`, the scripts from the [API examples](/docs/api/examples).

![The WR90_PTFE_Insert example with its S-parameters](/docs/img/app/main-sparams-wr90.webp)

## Start a new project

- **File › New Project** (<kbd>Ctrl</kbd>+<kbd>N</kbd>) gives an empty project.
- **File › New from Template...** asks what you are building and sets up the units, solver type,
  frequency range and boundaries for it.

![New Project from Template](/docs/img/app/dlg-new-from-template.webp)

| Template | Units | Solver | Boundaries | Frequencies |
|---|---|---|---|---|
| Antenna | mm | Driven | Open, with space added on every side (radiation and far fields) | 1–6 GHz |
| Planar circuit (microstrip, PCB) | mm | Driven | Ground plane (electric) at Zmin, open elsewhere | 0.5–10 GHz |
| Waveguide or connector (closed) | mm | Driven | Electric (metal) on every side | 8–12 GHz |
| Resonator or cavity (eigenmode) | mm | Eigenmode | Electric on every side | 1–10 GHz |
| Periodic structure (unit cell) | mm | Driven | X and Y periodic, open in Z (put Floquet ports on the Z faces) | 8–12 GHz |
| Superconducting circuit (quantum) | µm | Eigenmode | Electric on every side, for [quantum EPR analysis](/docs/app/results#quantum-epr-analysis) | 3–9 GHz |
| Scattering / RCS (plane wave) | mm | Driven | Open, with space added on every side | 1–3 GHz |

You can change the frequency range in the window before clicking **OK**. The template only fills in settings. You draw or import the geometry yourself.

## Saving and project files

A project is one `.te10` file, plus a folder with the same name ending in `.te10results` for its
results:

```
Filter.te10              the model, materials, ports, setups (a small JSON file)
Filter.te10results/      meshes, solver logs, S-parameters and fields
```

Copy only the `.te10` to share a model without its results. Copy both to keep the results. **Save Project
As...** copies the results to the new name. **File › Archive › Save Archive...** packs the project and its
results into one file, and **Restore Archive...** unpacks one.

Next: [The workspace](/docs/app/interface).
