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.
- Solves circuits with multiple resistors and voltage sources.
- Modular code for different components: Ohm's Law, KCL, and KVL.
- Unit tests for validation.
- Python 3.x
numpyfor solving linear equations.
- Install Python (if not already installed).
- Run the program in any Python environment.
- Use the unit tests to validate the correctness of each function.
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