MATLAB Answers

help me to understand the following error in closed loop speed ctrl of BLDC motor

10 views (last 30 days)
Jasaswini Mohanty
Jasaswini Mohanty on 26 Aug 2021
Answered: Joel Van Sickel on 30 Aug 2021
  • ['BLDC_speed_loop/Solver Configuration']: Transient initialization at time 0.4, solving for consistent states and modes, failed to converge.
  • Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix.
  • Problems possible for transient initialization, as well as stepsize control for transient solve, due to equations (including nonlinear equations) of one or more components: all components involved'BLDC_speed_loop/BLDC'Equation locations are: 'C:\Program Files\MATLAB\R2021a\toolbox\physmod\elec\library\m\+ee\+electromech\+pmsm\+pm_rotor\+bldc\Xabc.sscp' (no line number info) 'C:\Program Files\MATLAB\R2021a\toolbox\physmod\elec\library\m\+ee\+electromech\+pmsm\+pm_rotor\+bldc\Xabc.sscp' (no line number info) 'C:\Program Files\MATLAB\R2021a\toolbox\physmod\elec\library\m\+ee\+electromech\+pmsm\+pm_rotor\+bldc\Xabc.sscp' (no line number info) 'C:\Program Files\MATLAB\R2021a\toolbox\physmod\elec\library\m\+ee\+electromech\+pmsm\+pm_rotor\+bldc\Xabc.sscp' (no line number info)

Answers (1)

Joel Van Sickel
Joel Van Sickel on 30 Aug 2021
Hello,
this type of error is unfortunately not very useful in debugging a model. It basically means that the solver couldn't handle the simscape portion of your model. This could be due to something in the model being unrealistic, or it could be issues with how the solver is set up. It would be helfpul if you shared you model. The most common cause of this is an unrealistic simulaiton. Examples would be accidentally leaving out free wheeling diodes on an inverter, or accidentally shorting some terminals or leaving something open circuit that shouldn't be. On the solver side, you should always start with ode23t for electrical simulations. The first thing you can do is tighten the tolerance to 1e-4 (not sure it will help with this though). Switching to a local solver with fixed step can often bypass issues like this but if you don't figure out what is wrong you will never be able to go back to variable step which is more accurate and should to be used to validate a fixed step size. Since it specifically happens at 0.4, there might be a switch or some change to the network happening specifically at that time which is causing the simscape network to be unsolvable. This might give you some hints as to what part of the model is causing the issue.
Regards,
Joel

Communities

More Answers in the  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!

Translated by