DC machine (PM)
Permanent-magnet DC machine with armature resistance and inductance.
- electrical
- rotational
- Modelica Standard Library
- 3 ports
- 6 parameters
dcPmMachineLibraryMachinesDescription
A DC machine whose field comes from permanent magnets. The armature is a resistance and inductance in series with an induced voltage proportional to speed; the torque is proportional to armature current. It runs as a motor or a generator, depending on the direction of power flow.
The machine constant is not entered directly. It is derived from the nominal operating point: the induced voltage at nominal current and speed is VaNominal − Ra · IaNominal.
Example
DC machines Permanent-magnet, shunt, and series DC machines on 100 V, with their shaft speeds.
Also in this example:DC voltageGroundFixed (rotational)Torsion damperSpeed sensor (ideal)DC machine (excited)DC machine (series)
Ports
Conserving terminals 3
-
a+
pin_apPositive armature terminal. Current into pin_ap is the armature current ia; positive ia with positive speed is motoring.
-
a−
pin_anNegative armature terminal.
-
shaft
flangeShaft, rotational. The rotor inertia Jr sits on this flange. The stator is fixed to ground internally.
Parameters
-
Nominal voltage
VaNominal100 V≥ 0
Armature voltage at the nominal operating point, in volts. Must exceed Ra · IaNominal.
-
Nominal current
IaNominal100 A≥ 0
Armature current at the nominal operating point, in amperes.
-
Nominal speed
wNominal149.2 rad/s≥ 0
Speed at the nominal operating point, in rad/s. The default 149.2 rad/s is 1425 rpm.
-
Armature resistance
Ra0.05 Ω≥ 0
Armature resistance, in ohms.
-
Armature inductance
La0.0015 H≥ 0
Armature inductance, in henries. Sets the electrical time constant La/Ra.
-
Rotor inertia
Jr0.15 kg·m²≥ 0
Rotor moment of inertia, in kg·m².
Equations
kΦ = (VaNominal − Ra · IaNominal) / wNominal pin_ap.v − pin_an.v = Ra · ia + La · dia/dt + kΦ · ω τe = kΦ · ia Jr · dω/dt = τe + flange.τ
Implementation
Modelica.Electrical.Machines.BasicMachines.DCMachines.DC_PermanentMagnetAssumptions and limitations
- Constant magnet flux: no armature reaction, saturation, or demagnetization.
- No friction, core, stray-load, or brush losses (the library loss records are left at zero).
- Temperatures are fixed at 20 °C, so Ra does not change with heating.
Tips
- To match a datasheet, enter the rated voltage, current, and speed; the torque constant follows. With the defaults kΦ ≈ 0.637 V·s/rad (N·m/A).
- Drive it from an H-bridge or a DC source; connect a load with Inertia or Shaft load.
Used in
These larger examples use it too. Open them from Examples in the app.
- EV drivetrain
See also
Select a block in Gradara and press F1 to open its page offline.