Rolling Your Own Circuit Simulator
summary
A compact pipeline shows a working circuit simulator built from parts rather than promises: it converts nets into a modified nodal analysis system using conventional stamping components, fixes a singular C with Gaussian elimination and reordering, then uses Eigen for the matrix work and Boost.Odeint to integrate the resulting ODEs, reproducing the expected resistor‑capacitor‑inductor transient with only small numeric artifacts and source code available on GitHub.
AI-written summary · about
chapters (9)
- 0:00Start
- 1:34Circuit Simulation
- 2:25Example Circuit
- 4:29Boost Odent Library
- 6:56Modified Nodal Analysis
- 8:34Matrix Library
- 11:45Numerical Integration
- 11:59Conclusion
- 12:41Resources
related talks
17mSubstrate: Designing Highly Configurable Analog and Mixed-Signal Circuit Generators
33mPetriNet Studio - Architecting a SaaS Simulator in Modern C++
49mSimulating Embedded Systems With Zephyr
30mEmbed it yourself
01h 00mModern C++: C++ Patterns to Make Embedded Programming More Productive
54mRapid Prototyping in C++
35mAll aboard the Rust (electric freight) train!
37m"Rusty New 'ars: Look, Ma, No C Added!"
