Motor model failed to convege error

34 ビュー (過去 30 日間)
Gabriel
Gabriel 2024 年 11 月 29 日 11:08
回答済み: Divyanshu 2024 年 12 月 18 日 6:43
So, I have this Simulink EV model using the simscape library and am using the Motor & Drive (Syatem Level), but when i try to input power and torque over a certain treshold the model won't simulate and points to this failed to converge error.
An error occurred during simulation and the simulation was terminated
Caused by:
['EVmodel32024a/Solver Configuration']: Transient initialization at time 1.022823557191944, solving for consistent states and modes, failed to converge.
Nonlinear solver: failed to converge, residual norm too large.
Here is the set of components with unconverged equations:
'EVmodel32024a/Motor & Drive (System Level)'
Equation location is:
'ee.electromech.motor_and_drive_base'(no line number info)
Equation location is:
'ee.electromech.motor_and_drive_base'(no line number info)
Equation location is:
'ee.electromech.motor_and_drive_base'(no line number info)
Component:Simulink | Category:Block error
that's the error log.
At 150 kW and 360 n*M it works fine, but when I tries to input 300kW and 720 n*M it brokes.
Also couldn't make the intermittent over-torque option word.

回答 (1 件)

Divyanshu
Divyanshu 2024 年 12 月 18 日 6:43
Hello @Gabriel,
I tried to simulate the model by changing the input to 300kW and 720 n*M but for me it is simulating successfully without any issues.
However, to troubleshoot the issue at your end you can try the following steps:
  • Reduce the maximum time step to see if a smaller time step helps the simulation converge.
  • Consider adjusting component parameters such as ‘Open resistance’ or ‘Closed Conductance’ that make the model more realistic and less ideal.
  • Switch your solver and increase your tolerances, for example if you are using 'Variable Step Auto', try 'ode23t' and if your consistency tolerances are 1e-5 try increasing to 1e-3 in solver configuration.
  • Use the Solver Profiler to determine what the solver is doing just before you receive the error. In the step size tab, you should see a graph showing the step spike down as it approaches the time of the error occurring.
  • You can refer this MATLAB answer post for more information.

カテゴリ

Help Center および File ExchangeElectrical Systems についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by