DC motor
electrical.dc_motor
Permanent magnet DC motor: armature resistance R and inductance L, back EMF and torque constant k, rotor inertia J and viscous friction b, driving the flange.
Ports
| Name | Domain |
|---|---|
p | electrical |
n | electrical |
flange | rotational |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
R | Ohm | 1 | 0 to ∞ | Armature resistance |
L | H | 0.5 | 0 to ∞ | Armature inductance |
k | N.m/A | 0.01 | 0 to ∞ | Torque constant, equal to the back EMF constant in V.s/rad |
J | kg.m2 | 0.01 | 0 to ∞ | Rotor inertia |
b | N.m.s/rad | 0.1 | 0 to ∞ | Viscous friction |
Variables
| Name | Unit |
|---|---|
v | V |
i | A |
phi | rad |
w | rad/s |
Equations
v = p.v - n.v 0 = p.i + n.i i = p.i phi = flange.phi w = der(phi) v = R * i + L * der(i) + k * w J * der(w) = k * i - b * w + flange.tau