sharpie7 / circuitjs1

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

Infinite voltage glitch #766

Open Qwerty135246 opened 2 years ago

Qwerty135246 commented 2 years ago

I built a high voltage generator to charge a capacitor and “charged” a crystal. The crystal created infinite voltage. Link: https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0Cs4GZqQJwHYAsZYIExkgA4xCA2CWSEeS6gUwFowwAoANxFyJC1PFKq8owjFTBxhVGLBYAnHmD4JCGHoSrLVYyJBYBjNYPWGeeSch06U1m7bsooFiDB2sAziASxcnlQqV+YiAAZgCGADZudCwA7iYYxl4+CVJyIKSwAapoCFnCYIyELB6ZGn4ZeUEALrIArtEAJiA5fCnUAiY+DXRhteFVsSaa7WVag21tpSa6TVMYZlPDXT2hfQNxXIS+qriZ21CDu3lH-gcb3G0nbbobe5d3CWee3jyPSdOD70Lvw7ocioJHptXlspDwxBIwdJ2JwLsYAdMRBD4FC4DCEUtuL8keBIeYZHEERhHkTjDdYVtiVtgUJyUTFPxRgcAObNXImFo8FB8VIAB2eyQZXxJkjScwWHWu4EsxSGfgmZiCYUi0SwPk5w05bWcAB03LhoIQ0IxmHqYPgEChiLAcJBRKQEGhsGanFAXZYrPYvdYXRarWB5mhYNgbcHYO7ILq3GA9eIQwRcAhRDkMKRE6RGCgzW7ozoWKyvokXhhuaLoCAAJIAOwatT0VQA9rI9QAJABqeuZdCrdFkoUb8ioPmSIAA4gA5AAi1HAnBAAHkAKoAFR1-OcngXK4YIC2EAQIA7-J8Q8rNbrA4AouEALaxvW4HWyABKdHCoQAnte724EPe3Bgep-m44ayJOACWDbdN+erhm4aBPq+bjgW4V63nqgEgYhdDIahTYwb+eoIbIADCoS8qEejgWhP4xm4hBPhBUF0ARDH6oxkHQeh9F6lmYGcSx3EEPe-GUQRWZYaJegEcJklkRRVE0bxsFPvJlHUfhQmQCpsgAAqyA2ABGgm0XqoI6veZoWW42luKQ1kxi6jk2dZsAWB6HkehghTWdWwTgVW1Efq5rnuZ5nneQwDERs5zm2Y+erdL0-RWbGlipbmOgZS4ljet61naVZ7GJSsawPtZSWrClxVuJVZUuZZbh+QFQUOQVyB0YV0a+VW-mBVUwWNS4nXtR5eVegVk0NTZYWoONdiTUVcUFSwWBDncDK4IQlIMhA1a1vWTath2bhdj2fYDjmnXQFgJYYLARoYFtAi4OQmFUPZ3UzXRUVwK9wZbbgKBgPgXC4CamFueF0ORWxzX9cFWEgbN0M6LDMX-sOJXJVUV2WHjOg5jlnrzTYvHmkDkC2lwaNkNmj61aV-ScNjVW4wzdXM7ZdHw61X3DVdeq8wN-4C7ZxMk6TEkwBgaCQGgoPkNysCy+g2bi7NUtk24TDQGAaCkKQ20ZJAhuUHLCE2eARW6A24A+BuAAeIPA6g6SiPbhrCA7PgICwds+6CIDO0DBChI4VgG5kuwR7lUdpvAEDDp4-tziDQch67Dg5egFQxxLufR-Aye+6nuBoPbGcuwQhmOAgIMomFhcJ5uw4V37QA

pfalstad commented 2 years ago

This is probably roundoff error. Some of the component values are a bit extreme. If you change the timestep to 50m it goes away.