How flyback clamp works
L1 starts with the selected current and V2 opens the low-side switch S1 almost immediately; D1 and D2 return that current to the supply rail. Increasing the Zener voltage releases the coil faster but raises switch voltage. R1 represents winding resistance; C1 represents 100 pF of switch-node capacitance; it can ring with the coil after the clamp stops conducting.
Constant 0.7 V diode drop and nominal Zener voltage in the equations. The guest uses a nonlinear Zener; actual clamping varies with current. The short initial on-time is 0.01% of the estimated decay time, keeping the turn-off current close to the selected initial current.
Change the form inputs or click a component value on the schematic. Choose Try in CircuitSim to simulate the configured circuit.