MATLAB Examples

HEV PMSM Drive Test Harness

This example shows a test harness for a Permanent Magnet Synchronous Motor (PMSM) drive sized for use in a typical hybrid vehicle. The test harness can be used to determine overall drive losses when operating at a given speed and torque. Tabulated losses information from this test harness can then be used by the Simscape™ Electronics™ Servomotor block for rapid simulation of complete drive cycles whilst still accurately predicting overall system efficiency.



Three-Phase Inverter Subsystem

Simulation Results from Simscape Logging

The plot below shows the measured and commanded rotor speed. The winding currents are also plotted, which explains the high frequency ripple in the motor speed.

The table below shows the power dissipated by individual components in the elec_pmsm_drive model. These totals were calculated from simulation results using logged Simscape™ variables and the losses calculation utility elec_getPowerLossSummary. The total output power in the load, as well as the losses are shown.

Efficiency = 86.4041% when speed = 1400rpm and torque = 200Nm
Losses in watts by component are as follows:
                                LoggingNode                                 Power 
    ____________________________________________________________________    ______

    'elec_motor_pmsm_drive.FEM_Parameterized_PMSM'                          3541.6
    'elec_motor_pmsm_drive.Three_Phase_Inverter.Switch1.IGBT.transistor'     162.4
    'elec_motor_pmsm_drive.Three_Phase_Inverter.Switch4.IGBT.transistor'     152.6
    'elec_motor_pmsm_drive.Three_Phase_Inverter.Switch5.IGBT.transistor'       150
    'elec_motor_pmsm_drive.Three_Phase_Inverter.Switch2.IGBT.transistor'     147.9
    'elec_motor_pmsm_drive.Three_Phase_Inverter.Switch6.IGBT.transistor'     147.8
    'elec_motor_pmsm_drive.Three_Phase_Inverter.Switch3.IGBT.transistor'     147.8
    'elec_motor_pmsm_drive.Three_Phase_Inverter.D3.diode'                     20.6
    'elec_motor_pmsm_drive.Three_Phase_Inverter.D6.diode'                     20.3
    'elec_motor_pmsm_drive.Three_Phase_Inverter.D4.diode'                     20.1
    'elec_motor_pmsm_drive.Three_Phase_Inverter.D5.diode'                     20.1
    'elec_motor_pmsm_drive.Three_Phase_Inverter.D1.diode'                       20
    'elec_motor_pmsm_drive.Three_Phase_Inverter.D2.diode'                     19.5
    'elec_motor_pmsm_drive.Three_Phase_Inverter.C'                            10.7

Simulation Results from Scopes