Folks that do software and analog electronics: (and please boost for visibility)

Is there an OSS tool that simulates analog circuits for signals? In particular, I want something that I can script and write expectations of the output signals for given inputs. And ideally that scripting would include programmatically adding/removing/changing components in the simulated circuit and then testing the outputs.

Thanks!

#electronics #analogElectronics #simulations #programming

@mathias depending on how complex your simulation needs to be, spice/qucs as many people have pointed out. For more simplified models of RLC circuits / idealized opamp configs, I had some pretty good success with modelica/systemmodeler (systemmodeler is proprietary and on the $$$ side, but modelica is free and pretty much identical in capabilities): https://blog.wolfram.com/2020/07/23/digital-vintage-sound-modeling-analog-synthesizers-with-the-wolfram-language-and-system-modeler/
Digital Vintage Sound Modeling Analog Synthesizers with the Wolfram Language and System Modeler—Wolfram Blog

How to build a virtual version of a modular synthesizer using the Wolfram Language and System Modeler, modeling and simulation environment.