|
| 1 | +# Supernode Circuit Calculator |
| 2 | +A simple supernode circuit calculator using Python 3.7, cmath, numpy, PyQt5. Algorithm used: Modified Nodal Analysis (MNA) |
| 3 | + |
| 4 | +## About |
| 5 | +#### Technological University of the Philippines - Manila |
| 6 | +#### College of Engineering |
| 7 | +#### Electronics Engineering Department |
| 8 | +A.Y. 2019-2020 - Second Semester |
| 9 | + |
| 10 | +ACECE 6 | Electrical Circuits II |
| 11 | + |
| 12 | +BSECE 2A |
| 13 | + |
| 14 | +Instructor: Mr. Lejan Alfred Enriquez, ECE |
| 15 | + |
| 16 | +## Members |
| 17 | +- Paulino, Beaver B. |
| 18 | +- De Luna, Allyze Marie M. |
| 19 | +- Soriano, Toni Rose M. |
| 20 | +- Palabrica, Reneleo Martin S. |
| 21 | +- Buenavista, John Marco P. |
| 22 | +- Butlig, Dexter N. |
| 23 | + |
| 24 | +## Language Used |
| 25 | +Python 3.7 |
| 26 | + |
| 27 | +## Library Used |
| 28 | +- cmath |
| 29 | +- numpy |
| 30 | +- PyQt5 |
| 31 | + |
| 32 | +## Algorithm Used |
| 33 | +Modified Nodal Analysis with Reactive Elements |
| 34 | + |
| 35 | + |
| 36 | +# What is Modified Nodal Analysis (MNA)? |
| 37 | +MNA applied to a circuit with only passive elements (such as resistors, capacitors, and inductors) and independent current and voltage sources results in a matrix of the form: |
| 38 | +**Ax=B** |
| 39 | + |
| 40 | +### The A matrix |
| 41 | +- is (n+m)x(n+m) in size, and consists only of known quantities. |
| 42 | +- the nxn part of the matrix: |
| 43 | + 1. has only passive elements |
| 44 | + 2. elements connected to ground (appear only to diagonal) |
| 45 | + 3. elements not connected to the ground and off-diagonal terms. |
| 46 | +- the rest of matrix A (mxm) contains only 1, -1, and 0. (other values are considered if there are dependent current and/or voltage sources). |
| 47 | + |
| 48 | +### The x matrix: |
| 49 | +- an (n+m)x1 vector, consists of unknown quantities. |
| 50 | +- the top n elements are the n node voltages. |
| 51 | +- the bottom m elements are the m independent elements. |
| 52 | + |
| 53 | +### The B matrix: |
| 54 | +- an (n+m)x1 vector, consists of known quantities. |
| 55 | +- the top n elements are either 0 or the sum and difference of independent current sources in the circuit. |
| 56 | +- the bottom m elements represent the m independent voltage sources in the circuit. |
| 57 | + |
| 58 | +The circuit can be solved by a simple matrix manipulation: **x=A^(-1)B** |
0 commit comments