Traction motor (averaged)
automotive.traction_motor
Electric drive with its inverter as one power converter. The shaft follows the torque command, limited to Tmax at low speed and to the power Pmax above base speed. The DC side draws the shaft power divided by the efficiency when motoring and returns it times the efficiency when braking. Inertia and electrical dynamics are left out.
Ports
| Name | Domain | Direction |
|---|---|---|
tau_ref | signal | in |
p | electrical | |
n | electrical | |
shaft | rotational |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
Tmax | N.m | 250 | 0.000001 to ∞ | Peak torque |
Pmax | W | 50000 | 0.000001 to ∞ | Peak power |
eta | 1 | 0.9 | 0.001 to 1 | Efficiency of motor and inverter |
Variables
| Name | Unit | Description |
|---|---|---|
w | rad/s | Shaft speed |
tau_lim | N.m | Torque limit at the present speed |
tau | N.m | Shaft torque |
Pm | W | Mechanical power |
Equations
w = der(shaft.phi) tau_lim = Pmax / max(abs(w), Pmax / Tmax) tau = max(-tau_lim, min(tau_lim, tau_ref)) shaft.tau = -tau Pm = tau * w 0 = p.i + n.i (p.v - n.v) * p.i = if Pm > 0 then Pm / eta else Pm * eta