See the idea
A capacitor stores energy in an electric field. Its voltage cannot change instantaneously in an ideal RC circuit with finite current. After a supply step, current is initially largest and then decays as the capacitor voltage rises.
The time constant τ equals resistance times capacitance, in seconds when R is in ohms and C is in farads. One time constant brings charging voltage to about 63.2% of the supply; five time constants brings it to about 99.3%.
The bench shows separate analytical experiments: charging starts at 0 V; discharging starts at the supply voltage with the source disconnected. Changing a setting recomputes that experiment rather than preserving a physical capacitor’s previous state.
τ = RC Charging: Vc = Vs(1 − e^(−t/τ)) Discharging: Vc = Vs e^(−t/τ)
RC sets the response time; supply voltage sets the charging limit.