Professional Documents
Culture Documents
Supplementary Gmatrix Nodal
Supplementary Gmatrix Nodal
Supplementary Gmatrix Nodal
0 1 2 3
0 Gs0 + G01 + G02 + G03 - G01 - G02 - G03
0 1 2 3
0 Gs0 + G01 + G02 + G03 - G01 - G02 - G03
0 1 2 3
0 Gs0 + G01 + G02 + G03 - G01 - G02 - G03
0 1 2 3
0 Gs0 + G01 + G02 + G03 - G01 - G02 - G03
0 1 2 3
0 Gs0 + G01 + G02 + G03 - G01 - G02 - G03
0 1 2 3
0 Gs0 + G01 + G02 + G03 - G01 - G02 - G03
Step by step we add or subtract the values to/from the value that is
already there at the location we are interested in!
0 1 2 3
0 0 0 0 0
1 0 0 0 0
2 0 0 0 0
3 0 0 0 0
Let’s begin with source resistance.
You can loop for the length of gen or Rs (in this example it would be 2).
0 1 2 3
0 +Gs0 0 0 0
1 0 +Gs1 0 0
2 0 0 0 0
3 0 0 0 0
Now let’s include the line resistors!
Loop through all line resistors, that is length of Gp, for each:
First get both nodes it’s connected to from lines:
n1 = lines[i][0]; n2 = lines[i][1];
Use that to add the resistance to the correct element:
G[n1,n1] += Gp[i]; G[n1,n2] -= Gp[i];
Here you see the result after the
G[n2,n1] -= Gp[i]; G[n2,n2] += Gp[i]; first iteration of the loop
0 1 2 3
0 Gs0 + G01 - G01 0 0
2 0 0 0 0
3 0 0 0 0
That’s it, good luck!