Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

State discontinuity after switching

0 votes
2,313 views
I am simulating a Vienna Rectifier. It had been running fine until the error "state discontinuity after switching" pops up. How can I rectify the error?
asked Dec 5, 2020 by Morg_Lim (12 points)
Hi,

I tried running your model, but it includes thermal descriptions and at least one component from the Simscape Electrical library. Can you please include the .xml files for the MOSFETs/diodes and provide the parameters for the triangular wave generator in your modulator?

Thanks,

Kris
Hi,

The parameters for the triangular wave generator are a frequency of 50kHz and a sample time of 1e-6 sec with 0 degree phase. Maybe you can run the basicVR.m first before running the model because most of the variables are declared there. The .xml files are as attached. Thank you very much for taking the time to help me.

1 Answer

0 votes
Hi, thank you for including these files and parameters. I have not done a thorough analysis of your model and controller, but the error message refers to the current in the inductor being forced to zero instantaneously such that there is no path for it to go. This is not a typical suggestion for PLECS, but one option is to place a very high impedance (e.g., 1e6) leakage resistance in parallel to your filter inductors to allow a path for the current to flow during the event in question, but otherwise have little effect on normal operation of the system. I just tried this with your model now and it does indeed run successfully with that addition.
answered Dec 9, 2020 by Kris Eberle (1,591 points)
...