Note 2 - Zbusbuilding Algorithm - Solution of Linear Equations - Sparsity Oriented Programming
Note 2 - Zbusbuilding Algorithm - Solution of Linear Equations - Sparsity Oriented Programming
Formation of Z Bus
Vi
Z ii = " i, j - Thevenin eqt impedance at node i
Ii I j =0, I i ¹ 0
Vi
Z ij = " i, j
Ij I i =0, j ¹i
I j ¹0
Z Bus Building Algorithm
(Modification of an existing Zbus)
Þ VP = Z K 1 I1 + Z K 2 I 2 + .......Z KK I K + .......Z Kn I n + ( Z KK + Z b ) I P
By Applying Kron’s reduction,
Z Bus can be easily modified for network changes
(1)
(2)
From (1)
Substitute in (2)
Substitute for VP , Vm and Vn
Vq-Vk
Zbus old
Derive
Form Zbus Using Building Algorithm
Branches 5 and 3 are mutually coupled through
mutual impedance j0.1
Home work
Home work
1. Form ZBUS after removing node 5 by converting voltage source to current source.
2. Determine node voltages for all 4 nodes w.r.t . ref. node
3. Draw Thevenin Equivalent circuit at bus 4 and use it to determine the current drawn
by a capacitor of reactance 5.4p.u connected between bus 4 and reference
4. Modify ZBUS by removing the reactance connected between 1 and 3
Calculation of ZBUS elements from YBUS
Calculation of mth column elements of ZBUS
Since the product of YBUS and ZBUS equals the unity matrix,
é0 ù é0 ù
ê0 ú ê0 ú
ê ú ê ú
ê. ú ê. ú
ê ú ê ú
Ybus Z bus ê. ú = ê. ú
ê1m ú ê1m ú
ê ú ê ú
ê. ú ê. ú
ê0 ú ê0 ú
ë û ë û é0 ù
ê0 ú
ê ú
ê. ú
(m) ê ú
Ybus Z bus = ê. ú
ê1m ú
ê ú
ê. ú
ê0 ú
ë û
Solve using LU decomposition Technique
é0 ù
ê0 ú
ê ú
ê. ú
(m) ê ú
LU Z bus = ê. ú
ê1m ú
ê ú
ê. ú
ê0 ú
ë û
Consider a 4 bus system, and It is required to compute the elements of
3rd column of Z bus
Solve for elements of column m of ZBUS in two steps
In order to find the difference between 2 columns of ZBUS
Where,
Network equation:
• Iterative Techniques
• Gauss Iterative Technique
• Gauss- Seidel Iterative Technique
Solution of Non-Linear Algebraic equations
• Iterative Techniques
• Gauss Iterative Technique
• Gauss- Seidel Iterative Technique
• Newton Raphson Method
Gaussian Elimination (Method of successive elimination)
Backward substution
(Kron’s Reduction (Node Elimination)
Ybus=
Step 1
1. Eliminate the coeffs. Y11, Y21, Y31, Y41 using Gaussian elimination from the first
column.
Enter these coeffs in the first column of L matrix
2. New coeffs 1, Y12/Y11, Y13/Y11, Y14/Y11 are generated to replace those in the first row
Enter these coeffs in the first row of U matrix
L= U=
L= U=
Step 3
L= U=
Step4
L= U=
Sparsity Oriented programming
Sparsity S=Z/n2
Consider a Ybus
15 -10 -5 0 0 0
-10 10 0 0 0 0 Total 36 elements(n)
20 are zero elements (Z)
-5 0 25 -12 -8 0
0 0 -12 12 0 0 Sparsity S=Z/n2 = 0.556
0 0 -8 0 23 -15 = 55.6%
0 0 0 0 -15 15
15 -10 -5 0 0 0
-10 10 0 0 0 0
-5 0 25 -12 -8 0
0 0 -12 12 0 0
0 0 -8 0 23 -15
0 0 0 0 -15 15
2. YOFFD=[-10, -5, -10, -5, -12, -8, -12, -8, -15, -15]
To position the elements of YOFFD in their proper place in Ybus, 2 more vectors
are defined
1. IROW=[1, 3, 4, 7, 8, 10] defines where each row starts in the vector YOFFD
15
10
25
12
23
15
2. YOFFD=[-10, -5, -10, -5, -12, -8, -12, -8, -15, -15]
YOFFD=[-10, -5, -10, -5, -12, -8, -12, -8, -15, -15]
• Position vectors
1. IROW=[1, 3, 4, 7, 8, 10] identifies where each row starts in the vector YOFFD
2. ICOL= [2, 3, 1, 1, 4, 5, 3, 3, 6, 5] identifies the column position of each element in
YOFFD
Element 1of YOFFD is in the first
row
15 -10 -5 Element 3 of YOFFD is in row 2
-10 10 Element 4 of YOFFD is in row 3
Element 7 of YOFFD is in row 4
25
Element 8 of YOFFD is in row 5
12 Element 10 of YOFFD is in row 6
23
15
Gaussian Elimination & Optimal Ordering
When a Sparse matrix is triangulated - sparsity get effected
The total computation time increases with more “ Fill –in” terms
Dynamic ordering
Scheme 2:
At each step of elimination, the next row to be processed is that with fewest non-
zero off-diagonal terms
Scheme 3:
At each step of elimination, the next row to be processed is the one that will
introduce the fewest non-zero off-diagonal terms after elimination
Tutorial