https://ntuzxy.github.io/posts/Cap-simulation/
Capacitor simulation - Xueyong