Simulation Crash Issue with Current Limiter and Motor Drive System
Hello MATLAB Community,
I am currently working on a Simscape model where a battery is connected to a current limiter and subsequently to a "motor and drive" system block. I am experiencing an issue where the simulation crashes as soon as the current limiter attempts to limit the current.
Error Details:
Error:An error occurred during simulation and the simulation was terminated
Caused by:
[‘Model_Name/Solver’]: Transient initialization at time 0.04421663720467431, 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:
‘Model_Name/Current Limiter’
Equation location is:
‘/Applications/MATLAB_R2024a.app/toolbox/physmod/elec/library/m/+ee/+semiconductors/current_limiter_base.sscp'(no line number info)
What I Have Tried
Solver Configuration: I have tried using stiff solvers such as ode15s and ode23t, and adjusted the tolerances.
Initialization: Ensured that all initial conditions are set correctly for the battery, current limiter, and motor system.
Current Limiter Settings: Reviewed and adjusted the current limiter parameters to avoid abrupt changes.
Simulation Step Size: Reduced the step size to capture transient behaviors more accurately.
Zero-Crossing Detection: Enabled zero-crossing detection to handle state changes more smoothly.
Component Parameters: Verified that all component parameters are realistic and consistent.
Protective Measures: Tried introducing capacitors and resistors to smooth out voltage drops and dampen sudden changes.
Despite these efforts, the simulation still crashes. I believe the issue might be related to the current limiter’s interaction with the motor and drive system.
Reference Model
I am using the model configuration similar to the one available here: Battery Electric Vehicle with Motor Cooling in Simscape.
Request for Assistance
I am seeking advice on how to effectively limit the current to the motor and drive system without causing the simulation to crash. Any insights or suggestions on how to resolve this issue would be greatly appreciated.
Thank you in advance for your help!
Best regards, AlexHello MATLAB Community,
I am currently working on a Simscape model where a battery is connected to a current limiter and subsequently to a "motor and drive" system block. I am experiencing an issue where the simulation crashes as soon as the current limiter attempts to limit the current.
Error Details:
Error:An error occurred during simulation and the simulation was terminated
Caused by:
[‘Model_Name/Solver’]: Transient initialization at time 0.04421663720467431, 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:
‘Model_Name/Current Limiter’
Equation location is:
‘/Applications/MATLAB_R2024a.app/toolbox/physmod/elec/library/m/+ee/+semiconductors/current_limiter_base.sscp'(no line number info)
What I Have Tried
Solver Configuration: I have tried using stiff solvers such as ode15s and ode23t, and adjusted the tolerances.
Initialization: Ensured that all initial conditions are set correctly for the battery, current limiter, and motor system.
Current Limiter Settings: Reviewed and adjusted the current limiter parameters to avoid abrupt changes.
Simulation Step Size: Reduced the step size to capture transient behaviors more accurately.
Zero-Crossing Detection: Enabled zero-crossing detection to handle state changes more smoothly.
Component Parameters: Verified that all component parameters are realistic and consistent.
Protective Measures: Tried introducing capacitors and resistors to smooth out voltage drops and dampen sudden changes.
Despite these efforts, the simulation still crashes. I believe the issue might be related to the current limiter’s interaction with the motor and drive system.
Reference Model
I am using the model configuration similar to the one available here: Battery Electric Vehicle with Motor Cooling in Simscape.
Request for Assistance
I am seeking advice on how to effectively limit the current to the motor and drive system without causing the simulation to crash. Any insights or suggestions on how to resolve this issue would be greatly appreciated.
Thank you in advance for your help!
Best regards, Alex Hello MATLAB Community,
I am currently working on a Simscape model where a battery is connected to a current limiter and subsequently to a "motor and drive" system block. I am experiencing an issue where the simulation crashes as soon as the current limiter attempts to limit the current.
Error Details:
Error:An error occurred during simulation and the simulation was terminated
Caused by:
[‘Model_Name/Solver’]: Transient initialization at time 0.04421663720467431, 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:
‘Model_Name/Current Limiter’
Equation location is:
‘/Applications/MATLAB_R2024a.app/toolbox/physmod/elec/library/m/+ee/+semiconductors/current_limiter_base.sscp'(no line number info)
What I Have Tried
Solver Configuration: I have tried using stiff solvers such as ode15s and ode23t, and adjusted the tolerances.
Initialization: Ensured that all initial conditions are set correctly for the battery, current limiter, and motor system.
Current Limiter Settings: Reviewed and adjusted the current limiter parameters to avoid abrupt changes.
Simulation Step Size: Reduced the step size to capture transient behaviors more accurately.
Zero-Crossing Detection: Enabled zero-crossing detection to handle state changes more smoothly.
Component Parameters: Verified that all component parameters are realistic and consistent.
Protective Measures: Tried introducing capacitors and resistors to smooth out voltage drops and dampen sudden changes.
Despite these efforts, the simulation still crashes. I believe the issue might be related to the current limiter’s interaction with the motor and drive system.
Reference Model
I am using the model configuration similar to the one available here: Battery Electric Vehicle with Motor Cooling in Simscape.
Request for Assistance
I am seeking advice on how to effectively limit the current to the motor and drive system without causing the simulation to crash. Any insights or suggestions on how to resolve this issue would be greatly appreciated.
Thank you in advance for your help!
Best regards, Alex simscape, battery_system_management MATLAB Answers — New Questions