03 November 2015 27 8K Report

I have built a coupling inductor model using basic mathematical algebraic blocks and derivative block, and I know(not for sure) there are algebraic loop in the model. When I set the sample time(discrete solver, fixed step) big enough, the model could be solved without error.However, if the sample time was set too short, singularity would occur and the simulation was terminated. Another tricky phenomenon I've observed is that, the occurrence of this error of singularity also depends on the parameters of the external element(A resistor connected to the custom built coupling inductor). 

So I wonder if anyone who is profesional of matlab/simulink simulation could give me some instruction on how is the solver work and detect singularity error, why a self-made model lacks consistency, and how to use the simulink debugger to analyze and solve these problems?

Thank you very much.

More Qingwei Zhu's questions See All
Similar questions and discussions