sharpie7 / circuitjs1

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

capacitors and grounding? #738

Closed v-alisei closed 2 years ago

v-alisei commented 2 years ago

Hello. I'm new to electronics. And have been confused with schematic attached. I would appreciate any help and explanations about what is going on. Thanks. image circuit-20220323-0300.circuitjs.txt

pfalstad commented 2 years ago

looks right. When you click that switch, all you're doing is changing which node is considered ground. there's no current flow.

the voltage source and the resistor are not part of a complete circuit, and can be ignored (unless one of the other switches is clicked). and the capacitor is not part of a complete circuit either, so there will not be any current through it regardless of that switch position.

v-alisei commented 2 years ago

I see... you know, your program gives an intuition that when we have a charged capacitor, there is two options: either we have electron shortage on positive terminal, or surplus on negative, while in real life both of them are necessary and happening in the same time) Maybe there is a way to show this somehow. Anyways, your program is great tool for learning! Thank you!