sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.29k stars 633 forks source link

Wrong current direcion #631

Closed nshell32 closed 3 years ago

nshell32 commented 3 years ago

In menu->schemes->general->capacitor: When the capacitor is charging, the current direction is true, but when the switch was then switched the capacitor doesn't change the current flow direction to the opposite, but still act like an inductor. On the oscilloscope it looks like the capacitor during switch process changes its voltage direction, but the current still flow as before.

pfalstad commented 3 years ago

wow that was a bad one.. thanks for catching it.