modelDemoBLDCwithPWM

Test example: Brushless DC machine drive

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

A permanent magnet synchronous machine is fed from a constant DC voltage source. The fire signals of the inverter bridge are determined from the output signals of the hall sensor. Thus the currents are electronically commutated from one phase to the next. The magnitude of the voltage applied to the machine is controlled by the PWM signal. After the machine ha accelerated, a load torque step is applied.

Plot the machine's speed smpm.wMechanical, the electrical torque smpm.tauElectrical and the quasi-RMS current quasiRMSsensor.I.

Note:

The maximum DC voltage is set 10% higher than the theoretical DC volatge, thus the duty cacle is limited slightly below 1 to avoid constant switching state of the transistors but to keep pulse voltage.

Note:

The spatial distribution of the magnetic field of the permanent magnet rotor is sinusoidal. Therefore the induced voltage is sinusoidal w.r.t. to time. A machine design with rectangular spatial field distribution leads to trapezoidal induced voltage. Such a design might be better suited for usage as brushless DC machine. However, such a machine model is not yet available.

Parameters

TypeNameDefaultDescription
SI.VoltageVDCsmpmData.VsNominal*Modelica.Electrical.Polyphase.Functions.factorY2DC(smpmData.m)Nominal DC voltage
SI.VoltageVDCmax1.1*VDCmax. DC voltage
SI.FrequencyfS1000Switching frequency
SI.InertiaJLoadsmpmData.JrLoad inertia
ParameterRecords.SmpmDatasmpmDataSynchronous machine data

Components

TypeNameDefaultDescription
Modelica.Magnetic.FundamentalWave.BasicMachines.SynchronousMachines.SM_PermanentMagnetsmpm
Modelica.Electrical.Analog.Basic.Groundground
Modelica.Mechanics.Rotational.Components.InertialoadInertia
Modelica.Electrical.Machines.Utilities.MultiTerminalBoxterminalBox
BLDC.Sensors.HallSensorhallSensor
Modelica.Electrical.PowerConverters.DCAC.Polyphase2Levelinverter
Modelica.Electrical.Analog.Sources.ConstantVoltageconstantVoltage
Utilities.ElectronicCommutatorelectronicCommutator
Modelica.Blocks.Sources.RampvoltageRamp
Modelica.Mechanics.Rotational.Sources.TorqueSteploadTorque
Modelica.Electrical.Polyphase.Sensors.CurrentQuasiRMSSensorcurrentRMSSensor
FromMSL.SignalPWMpwm
Modelica.Electrical.PowerConverters.DCDC.Control.Voltage2DutyCycleadaptor
Modelica.Electrical.Polyphase.Basic.Starstar
Modelica.Electrical.Analog.Sensors.CurrentSensorcurrentSensor