# Wound-Field Synchronous (`syncWound`)

> A synchronous machine with a field winding and optional damper windings.

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

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

**Group:** Machines · **Kind:** `{"kind":"machine","model":"syncWound"}`

## When to use it

Use it for synchronous motors and generators where the field current sets the excitation. Use Surface PMSM for a magnet rotor.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a` | electrical | Stator phase a, current enters when motoring |
| `b` | electrical | Stator phase b, current enters when motoring |
| `c` | electrical | Stator phase c, current enters when motoring |
| `n` | electrical | Star point, optional |
| `fp` | electrical | Field positive, current in magnetizes the d axis |
| `fn` | electrical | Field negative terminal |
| `shaft` | mechanical | Mechanical shaft, speed in rad/s |

## Common parameters

- `lmd`: Main flux inductance along the field axis (Default: 40m)
- `lmq`: Main flux inductance across the field axis (Default: 25m)
- `rf`: Resistance of the field winding (Default: 5)
- `poles`: Number of poles of the machine (Default: 4)
- `j`: How strongly the rotor resists speeding up (Default: 0.05)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `rs` | Ω | 0.1 |  | Stator winding resistance per phase |
| `lls` | H | 2m |  | Stator inductance that does not reach the rotor |
| `lmd` | H | 40m |  | Main flux inductance along the field axis |
| `lmq` | H | 25m |  | Main flux inductance across the field axis |
| `rf` | Ω | 5 |  | Resistance of the field winding |
| `llf` | H | 3m |  | Leakage inductance of the field winding |
| `rkd` | Ω | 0 |  | Resistance of the field-axis damper |
| `llkd` | H | 1m |  | Leakage inductance of the field-axis damper |
| `rkq` | Ω | 0 |  | Resistance of the cross-axis damper |
| `llkq` | H | 1m |  | Leakage inductance of the cross-axis damper |
| `poles` | — | 4 |  | Number of poles of the machine |
| `j` | kg·m² | 0.05 |  | How strongly the rotor resists speeding up |
| `b` | N·m·s/rad | 0 |  | Friction that grows with speed |
| `w0` | rad/s | 0 |  | Shaft speed at the start |
| `theta0` | rad | 0 |  | Rotor position at the start |

_Parameter descriptions are in English in both languages._

## Model

The rotor model has stator, field and damper windings, with Te = (3/2)·pp·(λd·iq - λq·id). The field current is referred to the stator, so a field current If gives an open-circuit phase EMF with peak ωe·lmd·If. In steady state If = Vf/rf, and a locked field has the time constant (llf + 1.5·lmd)/rf. A damper exists only when rkd or rkq is above zero. The field current is i(M1.f).

## Common mistakes

- The stator alone gives no starting torque. Start the rotor near synchronous speed with w0, or add a damper by setting rkd above zero and bring it up asynchronously, and always feed the field.
- With rkd and rkq at their default of 0 there are no dampers, so the rotor swings against a stiff source with almost no damping. Add dampers to see a realistic decay of the swing.
- A load above the pull-out torque makes the rotor fall out of step. The field values rf and llf are terminal values, not referred to the stator, and poles is a pole count, not pole pairs.

Problems rules: `pin.unconnected`

## Datasheet and sources

Get lmd and lmq from the d-axis and q-axis synchronous reactances minus the leakage, divided by the electrical frequency in rad/s, and treat lls the same way. The open-circuit test on the air-gap line also gives lmd, and rf and llf come from the field winding, with rkd, llkd, rkq and llkq from the damper data.

## Example

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

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