Surface PMSM (spmsm)
A magnet motor whose d and q inductances are equal.
Group: Machines · Kind: {"kind":"machine","model":"spmsm"}
When to use it
Use it for servo and traction drives with a magnet rotor. Use Interior PMSM when the q inductance is larger, and BLDC Machine for a trapezoidal back-EMF.
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 |
shaft |
mechanical | Mechanical shaft, speed in rad/s |
Common parameters
psif: Magnetic flux of the magnets per phase (Default: 0.1)poles: Number of poles of the machine (Default: 8)rs: Stator winding resistance per phase (Default: 0.2)ls: Stator inductance per phase (Default: 1m)j: How strongly the rotor resists speeding up (Default: 1m)
Parameters
| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
rs |
Ω | 0.2 | Stator winding resistance per phase | |
ls |
H | 1m | Stator inductance per phase | |
l0 |
H | optional (off) | Inductance of the neutral path | |
psif |
Wb | 0.1 | Magnetic flux of the magnets per phase | |
poles |
— | 8 | Number of poles of the machine | |
j |
kg·m² | 1m | 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 machine is written in the dq frame: vd = rs·id + dλd/dt - ωe·λq and vq = rs·iq + dλq/dt + ωe·λd, with λd = Ld·id + psif, λq = Lq·iq, ωe = pp·ωm and Ld = Lq = ls. The torque is Te = (3/2)·pp·psif·iq, so id = 0 gives the most torque per ampere. With the stator open, the line-to-line back-EMF amplitude is sqrt(3)·psif·ωe. There is no cogging or iron loss, and the zero-sequence path through n uses ls.
Common mistakes
- The controller does not know the rotor angle by itself. Field-oriented control needs the angle from a Position Sensor on the same shaft, and the sensor theta0 (mechanical) must equal the machine theta0 (electrical) divided by the pole pairs, or the current vector sits at the wrong angle.
- Driving it open loop from a fixed or ramped three-phase source works only for small loads and slow ramps. When the load passes the pull-out torque, the machine falls out of step and its average torque drops to zero.
- psif is the peak flux per phase, not a line-to-line voltage constant, and poles is the pole count, not pole pairs. A wrong factor of the square root of 3 or of the pole pairs spoils the torque and the back-EMF by the same factor.
Datasheet and sources
Take rs and ls as half the line-to-line resistance and inductance of the star winding, and take poles and j from the datasheet. psif is the peak line-to-line back-EMF per mechanical rad/s divided by the square root of 3 and by the pole pairs, and a value in V rms per krpm gets there by multiplying by the square root of 2 and dividing by 104.72.
Example
Open the example with the command file.openExample and the name demo:spmsm.
Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.