I cant seem to gasp why an inductive circuit with RC as a snubber element still produces voltage spikes even when msot online materials suggests that it should be able to solve the issues. The below circuit is used to simulate the spike in LTspice, the inductor is assumed to be perfect with 0 series resistance, C1 is also perfect.
and this is the waveform it produces at v2:
One of the possible conclusions I came up with is that when switch S1 opens the current cannot instantly change and therefore although R3 is small there must still be some voltage across it when there is current passing it.
However when i add some resistance in series with the inductor suddenly these spikes disappear:
the voltage change is expected as the circuit isn't compensated.
The biggest change in the circuit is pretty much where V2 is measured. when measured after R4 (ie in series with inductor) the spikes suddenly disspear. But why is this? Why cant I increase R3 instead of R4 to reduce the inductive kickback.
A side question is, are there any designs where i can completely smooth the voltage kickback without putting in R4? Thanks