How to speed up the inverter simulation based on blocks of matlab
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a 3 phase inverter simulation based on block ready from matlab (IGBT) .
The simulation is so slow, After runing the solver profiler it lead me to the most block crossing 0 which is a relational operation block that is inside sub blocks responsible for creating sawthoot signal and comparing it with a reference to generate a voltage for inverter (PWM)
My questions: knowing that the block is a matlab block , how it is possible that it takes too much time ?
Question 2 : Some people replacing inverter simulation by using controlled voltage source instead !
which take less time, is this technic effective ?
Photo attached
댓글 수: 2
Raghava S N
2024년 9월 26일
Hi @YASSER, could you please share the model you are working with? That will help in better understanding the issue.
채택된 답변
Joel Van Sickel
2024년 9월 30일
hello Yasser, we need the full model to help with this problem. It could be solver settings, it could be the model, or it is possible that your model is actually simulating well. If you simulate the switching of an inverter, you must have a zero crossing for every time the PWM changes. This is true regardless of software or approach if you want to model the actual switching. So the zero crossings just tell us how many switching cycles that you are simulating. If you want to simulate a lot of switching cycles, it is going to take a long time, that is the nature of power electronics models. If you want to really speed up the simulation, you can use average models instead, and NOT simulate the switching behavior. This is a valid approach for when you are doing the control design or system level simulation. It is not effective for detailed design or power quality analysis. If you want to try and speed things up, you might try using a fixed time step that is your switching cycle time divided by 100. If that doesn't speed things up, you are better off with a variable step model.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!