When run the model ,the error is shown. before, I had used Ideal mosfet.no error occurred. Now i am using N channel mosfet from simscape.no errorr is. occured

4 views (last 30 days)

I want results from community for how to rectify the issue.

I am developing plant model and controller model for my project using matlab ,simulink,simscape and motor cotrol blockset.in plant model consiist of DC source,three phase inverter(N channel mosfet is used),ipmsm motor.conroller model is consist of MTPA reference for Torque controller and foc model for current controller. When run model ,error is occured.so,how to solve the issue.
show this kind of error:
First solve for initial conditions failed to converge. Trying again with all high priorities relaxed to low.
Component:Simulink | Category:Model warning
Unable to satisfy all initial conditions. The variables involved are listed below.

The following variables are involved in a constraint that conflicts with their targets:

'Inertia.w' (Rotational velocity)

Here are the equations involved:

all components involved
'RE_torque_control_El_N/Angular Velocity Source'
Equation locations are:
'C:\Program Files\MATLAB\R2024b\toolbox\physmod\simscape\library\m\+foundation\+mechanical\+sources\angular_velocity.ssc' (line 36)
'C:\Program Files\MATLAB\R2024b\toolbox\physmod\simscape\library\m\+foundation\+mechanical\+sources\angular_velocity.ssc' (line 37)

'RE_torque_control_El_N/Inertia'
Equation location is:
'C:\Program Files\MATLAB\R2024b\toolbox\physmod\simscape\library\m\+foundation\+mechanical\+rotational\inertia.ssc' (line 45)
Component:Simulink | Category:Model warning
Solver is encountering difficulty in simulating model 'RE_torque_control_El_N' at time 1.0000000000000001e-09. Simulink will continue to simulate with warnings. Please check the model for errors.
Ungroup 1399 similar
Caused by:
Solver was unable to reduce the step size without violating the minimum step size value of 1E-09 for 1 consecutive times at time 0. This usually may be caused by violating algebraic constraints in the differential-algebraic system or by the high stiffness of the system. Try tightening the error tolerances, and/or the tolerances for computing consistent conditions. If the problem persists, please check the system or increase the solver Number of consecutive min steps violation parameter.
Suggested Actions
Open Solver Profiler to explore such issues
Open
Component:Simulink | Category:Block diagram warning
An error occurred during simulation and the simulation was terminated
Caused by:
['RE_torque_control_El_N/Solver Configuration1']: Failed to satisfy dynamic state constraints.
Component:Simulink | Category:Block error

Answers (1)

Joel Van Sickel
Joel Van Sickel on 16 May 2025
Moved: Sabin on 2 Jul 2025
You'll need to share your model files if you want help debugging this specific problem.
One thing you could try is take two of your n channel mosfets and set up a simple model of a syncrhonous buck converter, and see if the simulation works with your paramaterization. If it doesn't work, you can debug it on that much simpler model. If it does work, then try doing it for 2 mosfets in parallel to see if that is what is causing the problem. If that isn't causing the problem, then it might be the connection to the motor that is causing issues. Just trying to speculate on some areas you might look into first in trying to fix this. In general, if you are doing motor control, there is no benefity to using the n-channel mosfet as it won't change the behavior of the motor. If you are doing the detailed design of the ineverter however, then it can make sense to look at the n-channel model so you can make sure you set your dead time correctly and pick correct value for your drivers.

Communities

More Answers in the  Power Electronics Control

Categories

Find more on Specialized Power Systems in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!