Transient · DC step into undamped LC

L–C–SW Resonant Switch

A series VIN–SW–L–C loop. The switch is gated by a control voltage, closing for exactly half a resonant period so it opens at a current zero-crossing — charging the capacitor to twice the source voltage. The waveform below is computed live by Python (NumPy + Matplotlib) running in your browser via Pyodide.

VIN = 3 V
L = 1 mH
C = 1 µF
fLC = —
T = —
VC,peak = —
Schematicstatic
Series L – C – SW circuit (DC source VIN) + VIN = 3 V L = 1 mH i_L + C = 1 µF V_C SW SW ctrl (3 V = ON / 0 V = OFF) GND VIN — DC source net (blue) V_C — capacitor-voltage net (green) i_L — loop current direction (dark red) SW control input (dark yellow)
Waveformlive · pyodide
Idle — press Run to load Python and simulate.
Output appears here.
SW control VIN VC iL

This page runs the same model as series_LC_switch.py / series_LC_switch.m (RK4 integration of iL′=(VIN−VC)/L, VC′=iL/C, gated by the switch). Requires an internet connection to fetch Pyodide from the CDN. First run downloads NumPy + Matplotlib and may take ~15–30 s.