why parameterized MOSFETs simulation doesn't run
10 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Electrical Sensors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!