Sparse matrix converter simulation
Wednesday, May 09, 2007 by HongJunX
I am focused on sparse matrix converter simulation these days.Because I want to combine it with Indirect torque control.One day for learning the modulation strategy,one day for creating matlab/simulink based simulation system,and one day for debugging.I use s-function to implement the modulation strategy.It is easy to use,but hard to debug.Because matlab m language is a "weak type language" as compared to c/c++.We do not need to define a variable before we can use it.This mechanism make coding more convenient but at the other side error-prone.So we must be more careful when coding.Actually,debug my code had wasted much of my time.The most stupid error I made is that I defined the zero space vector as v0=[000000],it should be defined as v0=[010101].It is hard to find this error,because the simulation result showed that the output phase to phase voltages seems right when the system is unloaded.But once system operated with three-phase balanced RL load,the phase to phase output voltage becomes awesome.In order to find out what causes the problem,I had to check my code line by line.And finally,it was proved that the zero vector which I had wrongly defined cause it.Now it works fine.Simulation graphs are listed below:
Simulation parameters:
Three-phase balanced RL load:R=1ohm,L=5e-3H;
Simulation step time:1e-6s;
Modulation frequency:10kHz;
Reference space vector:Vs=200v,f=50Hz
![]() | ![]() |
![]() | ![]() |
![]() | ![]() |
Simulation parameters:
Three-phase balanced RL load:R=1ohm,L=5e-3H;
Simulation step time:1e-6s;
Modulation frequency:10kHz;
Reference space vector:Vs=200v,f=50Hz
0 Comments:
Post a Comment