You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed an energy conservation issue in this trivial circuit:
We can observe that when the switch is closed then opened, it dissipates no power; so where has the energy gone?
Thinking what should happen: if all components are ideal, we would get infinite voltage across the inductor.
Which means "overvoltage" in this simulator, and would typically halt the simulation.
Investigating the reason for the present behaviour of the simulator, a clear trend emerges: #799 :
It seems that the simulator can't find a current path for the inductor, so […] it resets the inductor.
The simulator doesn't think one of the inductors has a current path, so it zeroes out the current. […]
There is probably a better way to fix this.
I suggest that a better way to fix this is to interrupt the simulation. Teleporting it silently to a different state isn't a good idea!
It could be as trivial as a pop-up that says it happened, so that at least the physics law violation isn't happening silently.
I think the patch is something trivial like:
+alert("Resetting inductors because no current path was found. Energy conservation will break.")`
The helpfully informed user can then reflect upon his design choices, or insert a MΩ resistor, pF capacitor or such, to simulate the real circuit better in such a circumstance if desired!
The text was updated successfully, but these errors were encountered:
I noticed an energy conservation issue in this trivial circuit:
We can observe that when the switch is closed then opened, it dissipates no power; so where has the energy gone?
Thinking what should happen: if all components are ideal, we would get infinite voltage across the inductor.
Which means "overvoltage" in this simulator, and would typically halt the simulation.
Investigating the reason for the present behaviour of the simulator, a clear trend emerges:
#799 :
#675 :
I suggest that a better way to fix this is to interrupt the simulation. Teleporting it silently to a different state isn't a good idea!
It could be as trivial as a pop-up that says it happened, so that at least the physics law violation isn't happening silently.
I think the patch is something trivial like:
+alert("Resetting inductors because no current path was found. Energy conservation will break.")`
The helpfully informed user can then reflect upon his design choices, or insert a MΩ resistor, pF capacitor or such, to simulate the real circuit better in such a circumstance if desired!
The text was updated successfully, but these errors were encountered: