https://forum.allaboutcircuits.com/...on-differential-equations.187476/post-1745442

https://github.com/ag88/jbuckconv/releases/tag/v0.2.0

https://github.com/ag88/jbuckconv

The results are somewhat interesting, if a little surprising.

it turns out that the load needs to draw quite some currents for that inductor to look like "continuous conduction mode".

And a quite sizable inductor is needed as if it is too small, the capacitor seemed to dominate.

Note that a diode is not simulated in this study, it is simply treated as 2 phases

On phase, Vin charges up the L, C, R buck converter.

Off phase, Vin is 0, it looks like L, C, R in parallel, Vout is now the buck output voltage

https://forum.allaboutcircuits.com/...on-differential-equations.187476/post-1740535

in this simulation, the inductor is 1 mH, capacitor 10 uF, R 10 ohms (load) and Vin 10 V

If, however, I used a tiny load R = 1000, L 100 uH, C 100 uF, something a little "surprising" is observed. The inductor currents is negative !

In a real buck converter, I'd think this is unlikely, as there is a diode there ! :/

It seemed in this case, there is very little energies stored in the inductor as the currents are small R = 1000 ohms and the RC part dominates the circuit behaviour. i.e. it is pretty much charging the capacitor and discharges across R (load), and across the inductor !

er erm well, it is 'wrong'. well, ok. I'm still struggling and i'd try to model the diode