How to simulate converter using Runge-Kutta?

M

Thread Starter

mr

I have a boost converter that is driving a motor which is also driving a load.

I want to simulate the whole system using Runge-Kutta Numerica method. However I have a problem to take into account the ON/OFF states equations in my algorithm. Does anyone know how to take into duty ratio (that is the ON and OFF states equations of the switch) so that I can simulate and plot the desired graphs?
 
Top