Motor model failed to convege error

2 visualizzazioni (ultimi 30 giorni)
Gabriel
Gabriel il 29 Nov 2024
Risposto: Divyanshu il 18 Dic 2024
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.

Risposte (1)

Divyanshu
Divyanshu il 18 Dic 2024
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.

Categorie

Scopri di più su Simscape Electrical in Help Center e File Exchange

Prodotti


Release

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by