Hello Hassan Ali,
I have reviewed the Electric Vehicle (EV) model you shared, and I would like to offer some observations and suggestions for improvement.
Upon examining the waveforms of the DC power, armature current, and speed response, it appears that the "Motor Controller" block may need some adjustments. The armature currents were not sinusoidal, leading to fluctuating power drawn from the DC source, which in turn caused variations in efficiency.
To assess the performance of your model, I replaced the "Drive Cycle Source" block with a "Constant" block set at a value of 10 to capture the step response of the speed and current control loops within the "Motor Controller" block. I have attached the waveforms obtained from these tests for your reference.
Fig 1: Above wave form is of phase 3 current. Motor accelerated for 2 seconds, than steady state was achieved. (current not smooth and sinusoidal)
Fig -2: Zoomed at the steady state part in the fig-1. (currents are not sinusoidal. This causes oscillating power between inverter drive and DC link input.
Fig – 3: speed response of your machine model.Observations:
- The dynamic response of the speed control loop could be improved.
- The armature currents were not sinusoidal, indicating potential issues with the current control loops.
- The controllers' saturation limits might need configuration.
Proposed Solutions:
I have made several modifications to the Simulink model, which I have attached with this answer for your review:
- Redesigned the PI controllers for the outer speed loop and both current loops.
- Change the switching frequency of power converter to 5000Hz.
- Replaced the "Moving Average" filter block with a continuous-time analog filter block using the "Transfer Function" block to better suit the "Variable Step" method used in the model.
- Added analog low-pass filters with a cutoff frequency of 500Hz after the current measurement to serve as anti-aliasing filters.
- Removed the delay element (1/z) from the input and output of the "Inverse Park Transform Block," (inside motor controller block) as additional delays are not necessary here.
- increase the switch on-state resistance to 0.1 ohm.
After implementing these changes, I tested the model with a step input of “33” (not sure about the units of speed) in the speed reference using a "Constant" block. The results were quite promising. They are attached below:
Fig 4: phase 3 current (for modified Simulink model). Motor is accelerating till 2 seconds, after that it decelerates. (Compare it with fig 1, you will see a vast difference.)
Fig 5 : Phase 3 current at steady state. (for modified Simulink model)
Fig -6 : speed response of vehicle. (modified Simulink model)
Results:
- Proper sinusoidal currents were achieved.
- The speed response showed significant improvement.
- Both current controller loops are functioning optimally.
The attached figure illustrates the waveform of DC input power, inverter output power, and mechanical power.
Fig 7 : waveform of DC input power, inverter output power, and mechanical power.
The DC input power is nearly equal to the inverter output power, reflecting a high efficiency of the power converter . During acceleration, the motor draws substantial current, leading to increased on-state losses and reduced efficiency under higher load conditions. Refer to fig 8 for plots of efficiency vs speed.
Efficiency Assessment:
Instead of giving arbitrary speed reference through “Drive cycle source” block, give a constant reference speed of “100”. Let the vehicle accelerate from zero speed. During this period, the motor will be drawing the maximum load current, and hence we will get the worst case electrical efficiency. Now find the mechanical efficiency by formula: (inv. Power/mech power). Also find the electrical efficiency by (inv power/ DC power)
This operation can be done from the Simulink itself, by using division block, as shown in the attached model. (look under the block “scopes”). There is no need to export the data into excel.
The electrical and mechanical efficiency are observed on scope, and attached below for your reference.
Fig 8: Efficiencies
Use this modefied model of EV to carry out any further simulation, I think it should resolve majority of issues faced by you.
Thank you for your attention to these suggestions. Hope this helps you.