Here is the revised sim circuit with SW3 swapped around so that the 30V+ is going to the Source.
I'm not sure why there is a current in the inductor at the start since SW1 is open but it must be due to C1 charging. Then there is the second spike when SW1 closes, and the charge redistributes through the coil. Also, the voltage across C1 is the same as C2 and gradually climbs rather than a higher initial voltage across C1 dropping as it equalises with C2.
The initial spike may be due to stray capacitances (from M2 and other sources) contributing to the initial charging of C1. I will try swapping SW1 for a voltage-controlled switch and see if that removes it.

I'm not sure why there is a current in the inductor at the start since SW1 is open but it must be due to C1 charging. Then there is the second spike when SW1 closes, and the charge redistributes through the coil. Also, the voltage across C1 is the same as C2 and gradually climbs rather than a higher initial voltage across C1 dropping as it equalises with C2.
The initial spike may be due to stray capacitances (from M2 and other sources) contributing to the initial charging of C1. I will try swapping SW1 for a voltage-controlled switch and see if that removes it.

Last edited:







