Simulation of BLDC Motor - error with derivative of omega
Show older comments
I have implemented the mathematical model of a BLDC motor with trapezoidal Back-EMF. With the parameters in the setup script, the system in the Kommutation_Mini model runs and shows somewhat reasonable behavior. There is also the commutation pattern etc. implemented.
However, when I add the derivative of omega to the total torque equation at the end of the BLDC_Motor.ssc file (line: 110), an error occurs. Of course, I would like to model the inertia of the rotor with this term. Here is the relevant line in the corresponding file:
T - T_m == B_m * w_m ; % J_m * w_m.der +
I attached all the necessary files, but the inertia term is commented out. So, in order to reproduce this error, just add the term to the torque calculation. Why does this error appear?
Error message:
Error:An error occurred during simulation and the simulation was terminated
Caused by:
['BLDC_Motor_Kommutation_Mini/Sensor/Solver Configuration']: When trying to advance one time step, nonlinear solver failed to converge, residual norm too large.
Accepted Answer
More Answers (0)
Categories
Find more on Permanent Magnet in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!