discrete simulink model problem
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Meriem dardouri
il 9 Gen 2018
Commentato: Jim Riggs
il 11 Gen 2018
hello everyone, I realized a control program of a single-phase inverter connected to the grid by an LCL filter under matlab / simulink. In the continuos mode, i have got good results (grid current/voltage) , but when I converted the program to the discrete domain every thing went crasy and nothing went right. I can't find what i did wrong. Can anyone help me please?
2 Commenti
Risposta accettata
Jim Riggs
il 10 Gen 2018
Although I am unable to open and view your model, a very common problem when converting from continuous to discrete is that the discrete solver will be based on a forward Euler method. This is much less precise than the higher-order continuous solvers which are commonly used. The first thing that you should try is to run the discrete model with a very small time step - about 100 times or even 1000 times smaller than you were using with the continuous model. See if this helps.
2 Commenti
Jim Riggs
il 11 Gen 2018
You must apply numerical techniques to improve the accuracy of the method. in the attached paper, I show an example of implementing a generic second-order transfer function using a forward-Euler integration method compared to a second-order Runge-Kutta method. You will note that the second-order method results in significantly more complex equations. But you don't need to actually formulate the model in terms of a closed-form equation the way I did in this paper. You can numerically implement the method as described on pages 3 and 4 of the paper. This should give good performance and allow you to reduce the time step by two orders of magnitude.
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!