sharpie7 / circuitjs1

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

Simulation glitches when components are moved #799

Open carpetbugs opened 2 years ago

carpetbugs commented 2 years ago

The simulation glitches when unrelated objects are moved around. This does not seem to be an issue of trapezoidal approximation because the glitches still occur when trapezoidal approximation is disabled. See this circuit: https://tinyurl.com/2lr4u7rq

pfalstad commented 2 years ago

It seems that the simulator can't find a current path for the inductor, so whenever the circuit changes, it resets the inductor. Adding a clear current path fixes it.

https://tinyurl.com/2qblvzgj