Skip to content

A single-file SPICE-like circuit solver for AC and DC circuit simulation

License

Notifications You must be signed in to change notification settings

definitelyuncertain/simple-circuit-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Copyright (C) 2016 Sai Kiran N

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.


========================================================================

This is a standalone circuit solver that I wrote for a course which 
uses only the standard C library and gnuplot for plotting. It is capable
of AC as well as DC simulation, and accepts a SPICE-like netlist.

To compile :

gcc cksolver.c -lm -o solver


To execute with the given RC filter example netlist :

./solver rc.txt

About

A single-file SPICE-like circuit solver for AC and DC circuit simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages