4 ms·
Author of the CircuitLab https://www.circuitlab.com/ https://www.circuitlab.com/ (YC W13) mixed-mode (analog and digital) simulation engine here. The "core algo
by compumike 4y ago
Author of the CircuitLab https://www.circuitlab.com/ https://www.circuitlab.com/ (YC W13) mixed-mode (analog and digital) simulation engine here. The "core algorithm" is probably LU decomposition on a sparse matrix: https://ultimateelectronicsbook.com/systems-of-equations/#lu-decomposition https://ultimateelectronicsbook.com/systems-of-equations/#lu... .
I answered a similar question on Electronics StackExchange where someone asked about how to build a circuit simulator: https://electronics.stackexchange.com/a/394069 https://electronics.stackexchange.com/a/394069
From a software developer perspective: lots and lots and lots of automated tests, each of which builds a circuit, runs a simulation, and makes sure we don't see any behavior regression. More lines of code in tests than in the core simulation engine or device models!