Electronic circuit simulation with NG-SPICE https://www.labcorner.de/articles/electronic-circuit-simulation-with-ng-spice/