Skip to content

manthanabc/CircuitSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circuit Solver

ezgif-1a5a67013d2db1

circuit.mp4

About

Circuit Solver written in cpp and raylib will use Kirchhoff's circuit laws to solve for voltages across resistors

How to run

Only works on linux/unix install raylib then

git clone https://github.com/manthanabc/CircuitSolver cs
cd cs
make run

How to use

just hover over an edge to select it, press (Case sensitive)

  • R: Add a resistor to the selected edge.
  • W: Add a wire to the selected edge.
  • num[0-9]: Switch the highlighted path (replace num with a number key, e.g., 0, 1, etc.).

On Algorithm

Makes use of kirchhoffs law to decompose circuit into loops (In DFS like way), then calculating current across each loop. then summing the currents for each indivisual component;

About

Circuit solver written in raylib as ADS course project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published