# Complete discharging of Initially charged capacitor through Inductor

I have been trying to simulate a parallel resonant circuit in Pspice . The idea of the circuit is to discharge C18 (Cin) completely (This cap is initially charged to 1.3 V) through the inductor and charge C19 completely. In order to speed up the process, I have used two equal bypass capacitors (C20 charged to 1.3V) so that it does not take infinite times to discharge and charge the input and output caps respectively. I have used voltage controlled switches with a duty cycle of 0.5 to illustrate charging and discharging. The operation is similar to a synchronous inverting buck-boost converter wherein:

• In the first pulse "DT"(PW), S2, the C20 discharges, discharging C18, and the energy gets stored in L8.
• During "(1-D)T", the energy stored in L8 gets transferred to C21 which charges C19. This process ideally continues until the charge in C18 is completely replenished and transferred to C19. This strategy is basically used to solve the infamous two capacitor paradox.

The values of L and C have been calculated for an inverting buck-boost converter design using design equations. The driving frequency = resonant frequency.

Now my question is:

1. Looking at the graphs, Energy transferred to C19 is 0.25 of Initial Energy at C18.
2. Likewise, Charge at C19 is half as that of C18. Why?

In this case, there's absolutely no use of having the inductor L8, assuming everything is ideal (resistances have been added to prevent floating nodes in pspice), and this should only happen when two capacitors are connected in parallel with a switch.

• Does the frequency have to be rightly adjusted to charge C19 to 1.3V (initial voltage of C18)? (I have used resonant frequency, but have also tried to tune them, but no use!)
• This is an ideal case. How would I achieve complete charge transfer?