Model error in Simulink - Singularity error

9 views (last 30 days)
Jyothiraditya Reddy
Jyothiraditya Reddy on 17 Nov 2024 at 11:04
Answered: Shivam Gothi on 17 Nov 2024 at 11:45
I am currently working on a project that involves building a PID controller for voltage and current, with feedback loops for both. I have constructed the circuit based on the control equations. However, when I run the simulation, I encounter a singularity issue that I am unable to resolve.
I would greatly appreciate it if someone could take a look at my model and suggest the necessary changes to overcome this problem. Any advice on tuning the PID parameters or adjusting the feedback loops would also be helpful.

Answers (1)

Shivam Gothi
Shivam Gothi on 17 Nov 2024 at 11:45
From the screenshot of Simulink model attached by you, it is not clear what the circuit is trying to simulate and how the PI inner and outer control loops are working. But, upon investigating the model, I found some potential reasons that are causing the singularity error.
This error mainly occurs when the solver is not able to find a solution for the circuit through iterative methods. In your case, this happens because your circuit has many “open-circuited” paths and many of the components have floating teminals as shown in the below given figure. (Note: Here , the term ”floating terminals” means the terminals that are not connected anywhere.)
Cause of error:
Circuit contains open-circuited paths ,floating terminals and short circuited pulsed voltage source.
Suggestions to fix the error:
Generally, no path of the circuit is kept floating or open circuited. But if your application demands that, connect a high value resistance across the floating terminals and ground.As a next step, look around for all the open circuited paths in your circuits and close the circuit with high value resistance in series.
I hope this answers your question !

Categories

Find more on Get Started with Simscape Electrical 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!