RC Circuit Transients: Capacitor Charging & Discharging Dynamics
1. Core Principles & Theoretical Framework
2. Mathematical Formulation & Algorithmic Pipeline
Kirchhoff's voltage law governing an RC series loop:
3. Numerical Mechanics & Implementation Logic
- Time Discretization: Choose step size $h \ll RC$ (e.g. $h = 0.01 RC$) to ensure numerical stability.
- Transient Update: Advance voltage $V_{n+1} = V_n + \frac{h}{RC}(\mathcal{E} - V_n)$.
- Phase Switching: At specified discharge time $t_{\text{switch}}$, set driving EMF $\mathcal{E} = 0$ to observe decay.
4. Relevant Computational Practice Exercises
- David J. Griffiths, "Introduction to Electrodynamics", Cambridge University Press (2017).