A python program that solves electrical circuits.
Run these commands to open the web app:
git clone https://github.com/daniyalmarofi/NACS.git
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python app.pyThen access the web applocation from http://127.0.0.1:8000/.
To run the app from command line, run cli_version.py file.
Here is commands to use the app:
| Functionality | Command | Example |
|---|---|---|
| Add a Resistor | R {leftNode} {rightNode} {resistance} | R 0 1 10 |
| Add a Voltage Source | IV {posTerm} {negTerm} {voltage} | IV 0 1 24 |
| Add a Current Source | IC {comeIn} {comeOut} {current} | IC 1 0 5 |
| Solve Circuit | calculate | calculate |
