why parameterized MOSFETs simulation doesn't run

조회 수: 10 (최근 30일)
Hassan Ali
Hassan Ali 2023년 12월 11일
댓글: Arka 2023년 12월 28일
Hey,
I have been trying to model a single phase inverter using simscape for now, when I use MOSFET (Ideal/Switching) block, the simulation runs fine, but I need to model a non-linear inverter by parameterizing the N-channel MOSFETs. Firstly, I tried to parameterize the MOSFET according to the datasheet, but the simulation was showing error such as,
"Solver was unable to reduce the step size without violating minimum step size of 1.83569E-15 for 1 consecutive times at time 0.5167. Solver will continue the simulation with the step size restricted to 1.83569E-15 and using an effective relative error tolerance of 0.0015818, which is greater than the specified relative error tolerance of 0.001. This usually may be caused by violating algebraic constraints in the differential-algebraic system or by the high stiffness of the system. Try tightening the error tolerances, and/or the tolerances for computing consistent conditions. If the problem persists, please check the system or increase the solver Number of consecutive min steps violation parameter."
It says open solver profile to resolve, but I'm unabale to understand the solver settings, Now, I haven't parameterized, but the used the same parameters that are already includes in N-channel MOSFET, the issue is still the same.
Looking for your guidance on this matter, as I'm relatively new MATLAB User.
Thank you.

채택된 답변

Arka
Arka 2023년 12월 27일
I understand that you are facing an error with the step size during simulation of a model containing N-channel parameterized MOSFET blocks in Simulink.
It is difficult to provide you a specific answer without investigating the actual model, but one of the instances when this error can occur is when the solver is unable to solve the system/model within the step-size provided.
One of the recommended ways to resolve this error is to increase the number of consecutive minimum steps the model is taking. This value can be modified by expanding the "Additional options" section in "Solver Section" of the "Configuration Parameters" menu.
In this section, you should see a dialog box with the title "Number of consecutive min steps:" next to it. You can try to increase the value in this box.
You can also try to relax all the tolerances in the model from the model's "Configuration Parameters".
Alternatively, if this does not fix the issue, you can also try changing the solver being used, possibly to ode23t (if not using it already).
Hope this helps!
  댓글 수: 2
Hassan Ali
Hassan Ali 2023년 12월 28일
Thank you @Arka, the issue is resolved, sometimes it happens again when I try to run the simulation for longer time , but then again increaisng the consecutive min steps, resolves the issue.
Arka
Arka 2023년 12월 28일
Hi @Hassan Ali, glad to know that this worked for you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by