Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Mehrdadghassabi/Gracc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What this repository is about?

this repository is about modeling circuits as graphs and analyzing them with graph theory algorithms for more detail read this article, or if you know persian its better to take look at this.

How to solve an Electrical circuit with Gracc?

  • install Gracc with
    pip install Gracc
  • descripe your circuit as a text! to do so see this. after descripting your circuit as a text locate it here

  • run and plot it with:

    import Gracc as grc
    kg6 = grc.circuit_parser('yourdescriptedcircuit.txt')
    grc.plot_kirchoffgraph(kg6)
    grc.plot_kirchoffgraph_after_solving(kg6)

for example for the circuit5 the solution is:

image

  • its wise to run it in google colab instead of your local machine to do so click in the icon
    Open In Colab

Notes

  • you can visit our library page at Iranian National Open Source Resources Repository here
  • gracc doesn't support RLC circuits yet :)
  • solving differential equations which is a difficult task itself is done thanks to odeintw
  • archive folder is just for making an archive, delete it in your own fork

About

Graph theory approach for Modeling Electrical Circuits

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published