Better solver for simscape power electronics simulation

조회 수: 6 (최근 30일)
Gökhan Bayraktar
Gökhan Bayraktar 2023년 11월 7일
답변: Joel Van Sickel 2023년 11월 8일
Hello,
I have an LLC simulation file in which I need to do power loss breakdown analysis.
I built my model with realistic components(parasitic capacitance, resistance etc.).
My problem is about selecting the correct solver configuration.
At first I was using local solver "Backward Euler" with 2.5 ns sample time. However, I realized that there are something wrong when I am try to find the power loss across an inductor. The power loss calculation ( average of I(t)* V(t) over a switching period ) is not correct.
Then I try to use "Trapezodial Rule" as the solver type. With this the type simulation time has increased a lot but the power loss calculation becomes correct. But the transient of the current and voltage curves distorded.
At last, I used ODE 23t with max step size 2.5 ns, which results significantly better than "Backward Euler" but worse than "Trapezodial Rule" results. But the transient of currents and voltages are better than "Trapezodial Rule". Also simulation run time is shortest in this solver.
So I am aiming to with ODE 23t but is there a way to enhance the accuracy of ODE 23t solver?
I already tried to change "Relative tolerance", "Solver reset method" but not really upgrade.
Any help would help a lot.
Thanks in advance

답변 (2개)

Dr Narayanaswamy P R Iyer
Dr Narayanaswamy P R Iyer 2023년 11월 8일
In case of uncertainty as to which solver to be used, select AUTO solver selection mode from the drop down menu.

Joel Van Sickel
Joel Van Sickel 2023년 11월 8일
You can set your absolute tolerance to be the same as your relative tolerance, and uncheck the option for absolute tolerance. Typically setting both of these to 1e-4 or 1e-5 should be more than enough to get good accuracy. You can also switch to DAESSC for it be very slightly more accurate but also slower. There shouldn't be a problem in how you are getting the inductor losses regardless of solver method. Can you provide screenshots or share a model of how you are determining that the losses are incorrect?

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Electrical Sensors에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by