Skip to content

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Basic-Circuit-Solver-in-Python

Overview

This Python command-line tool solves simple DC circuits using Ohm’s Law, Kirchhoff’s Current Law (KCL), and Kirchhoff’s Voltage Law (KVL). The program calculates the current through each branch and voltage drops across each resistor.

Features

  • Solves circuits with multiple resistors and voltage sources.
  • Modular code for different components: Ohm's Law, KCL, and KVL.
  • Unit tests for validation.

Requirements

  • Python 3.x
  • numpy for solving linear equations.

How to Run the Code

  1. Install Python (if not already installed).
  2. Run the program in any Python environment.
  3. Use the unit tests to validate the correctness of each function.

Downloading the code

Clone the repository and install the dependencies:

git clone https://github.com/vaibruce/Basic-Circuit-Solver-in-Python.git
cd Basic-Circuit-Solver-in-Python   

About

A Python program to solve simple DC circuits using Ohm’s law and Kirchhoff’s laws.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages