
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Formation of Bus Admittance Matrix using MATLAB Software
Aim:
To develop a computer program to form the bus admittance matrix, Ybus of a power system.
Theory:
The Ybus /Zbus matrix constitutes the models of the passive portions of the power network. Y (^) bus matrix is often used in solving load flow problems. It has gained widespread applications owing to its simplicity of data preparation and the ease with which the bus admittance matrix can be formed and modified for network changes. Of course, sparsity is one of its greatest advantages as it heavily reduces computer memory and time requirements. In short circuit analysis, the generator and transformer impedances must also be taken into account. In contingency analysis, the shunt elements are neglected, while forming the Z-bus matrix, which is used to compute the outage distribution factors. This can be easily obtained by inverting the Y-bus matrix formed by inspection method or by analytical method. The impedance matrix is a full matrix and is most useful for short circuit studies. Initially, the Y-bus matrix is formed by inspection method by considering line data only. After forming the Y-bus matrix, the modified Y-bus matrix is formed by adding the generator and transformer admittances to the respective diagonal elements and is inverted to form the Z- bus matrix. The performance equation for a n-bus system in terms of admittance matrix can be written as,
n n nn n
n
In
n V
2
1
1 2
21 22 2
11 12 2
1
(or) I = Ybus .V The admittances Y 11 , Y12,… Y1n are called the self-admittances at the nodes and all other admittances are called the mutual admittances of the nodes.
Formulae Used:
Main diagonal element in Y-bus matrix = (^) ij
n
j
1 where Bij is the half line shunt admittance in mho. Yij is the series admittance in mho.
Off-diagonal element in Y-bus matrix , Y (^) ij = -Yij
where Yij is the series admittance in mho.
Flowchart:
START
Enter the mutual admittance between the buses
Calculate the diagonal term, Yii = sum of all admittances connected to bus i.
STOP
Calculate the off-diagonal term, Yij =Negative sum of the admittances connected from bus i to bus j.
Enter the number of buses,n and lines
Set the bus count i =
Is i = n
i = i +
Print Y bus and Z bus matrices
Compute Z bus matrix by inverting Y bus matrix
Theoretical output:
j j j
j j j
j j j Ybus
Result:
The Y bus matrix was formed for the given system by direct inspection method and the results
were verified using MATLAB program.
Z-bus Building Algorithm using MATLAB Software
Aim:
To develop a computer program to obtain the building algorithm for bus impedance matrix of the given power system.
Theory:
The Ybus /Zbus matrix constitutes the models of the passive portions of the power network. The impedance matrix is a full matrix and is most useful for short circuit studies. An algorithm for formulating [Zbus ] is described in terms of modifying an existing bus impedance matrix designated as [Zbus ] (^) old. The modified matrix is designated as [Zbus ]new. The network consists of a reference bus and a number of other buses. When a new element having self impedance Zb is added, a new bus may be created (if the new element is a tree branch) or a new bus may not be created (if the new element is a link). Each of these two cases can be subdivided into two cases so that Zb may be added in the following ways:
Type 1 modification:
In type 1 modification, an impedance Zb is added between a new bus p and the reference bus as shown in Figure 1
Let the current through bus p be Ip , then the voltage across the bus p is given by,
V p
Ref. Bus
p
n
1
Network Zb
Figure 1. Type 1 modification of Zbus
Type 3 Modification:
In this modification, an impedance Zb is added between a existing bus k and a reference bus. Then the following steps are to be followed:
Type 4 Modification:
shown in Figure 3. From Figure 3, the relation between the voltages of bus k and j can be written as, Vk – Vj = Ib Zb (3)
The voltages across all the buses connected to the network changes due to the addition of impedance Zb and they can be expressed as, V 1 = Z 11 I 1 + Z 12 I 2 + - - - - - - - - + Z1j (Ij + Ib ) + Z1k (Ik – Ib )+- - - V 2 = Z 21 I 1 + Z 22 I 2 + - - - - - - - - + Z2j (Ij + Ib ) + Z2k (Ik – Ib )+ - - - Vj = Zj1 I 1 + Zj2 I 2 + - - - - - - - - + Zjj (Ij + Ib ) + Z (^) jk (Ik – Ib ) + - - - (4)
Vk = Zk1 I 1 + Zk2 I 2 + - - - - - - - - + Zkj (Ij + Ib ) + Zkk (Ik – Ib ) + - - - Vn = Zn1 I 1 + Zn2 I 2 + - - - - - - - - + Znj (Ij + Ib ) + Znk (Ik – Ib ) + - - -
On solving the Equations (3) and (4), the system of equations can be rewritten as,
Ik - Ib
Ij + I (^) b
Ref. Bus
k
n
1
Network Z b
Ib
j
Figure 3.Type 4 Modification of Zbus
p
n
j k jk kk bb
kj kk
bus old
j k
p
n
2
1
1 1
1 1 2
1
where, Zbb = Zjj + Zkk – 2 Zjk + Zb
Step1: Number the nodes of the given network, starting with those nodes at the ends of branches connected to the reference node. Step2: Start with a network composed of all those branches connected to the reference node. Step3: Add a new node to the ith^ node of the existing network. Step4: Add a branch between ith^ and jth^ nodes. Continue until all the remaining branches are connected.
Sample problem:
Form bus impedance matrix using building algorithm:
Solution:
Step1: Add an element between ref (0) bus and a new bus (1).
j j j
j j j
j j j
New Z Bus:
Z11 = Z11-(Z31Z13)/Z = j0.2 – (j0.2j0.2)/j0. Z11 = j0. Z12 =Z21= Z12-(Z32Z13)/Z = j0.2 - (j0.6j0.2)/j0. = j0. Z22 =Z22-(Z32Z23)/Z =J0.6-(j0.6j0.6)/j0. Z22 =j0.
Z Bus = (^)
j j
j j
Result:
The bus impedance matrix using building algorithm for the given system was formed and the results were verified using MATLAB program.
Gauss Seidal Load flow analysis using MATLAB software
Aim:
To develop a computer program to solve the set of non linear load flow equations using Gauss- seidal load flow algorithm.
Theory:
Load flow analysis is the most frequently performed system study by electric utilities. This analysis is performed on a symmetrical steady-state operating condition of a power system under ‘normal’ mode of operation and aims at obtaining bus voltages and line/transformer flows for a given load condition. This information is essential both for long term planning and next day operational planning. In long term planning, load flow analysis helps in investigating the effectiveness of alternative plans and choosing the ‘best’ plan for system expansion to meet the projected operating state. In operational planning, it helps in choosing the ‘best’ unit commitment plan and generation schedules to run the system efficiently for them next day’s load condition without violating the bus voltage and line flow operating limits. The Gauss seidal method is an iterative algorithm for solving a set of non- linear algebraic equations. The relationship between network bus voltages and currents may be represented by either loop equations or node equations. Node equations are normally preferred because the number of independent node equation is smaller than the number of independent loop equations. The network equations in terms of the bus admittance matrix can be written as,
I (^) bus Y (^) bus V (^) bus (1)
For a n bus system, the above performance equation can be expanded as,
n
p
n n np nn
p p pp pn
p n
p n
n
p
2
1
1 2
1 2
12 22 2 2
11 12 1 1 2
1
where n is the total number of nodes. Vp is the phasor voltage to ground at node p. Ip is the phasor current flowing into the network at node p.
Step 10: Calculate the change in bus voltage of the repeat step mentioned above until all the bus voltages are calculated. Step 11: Stop the program and print the results
Flowchart:
Yes
Read the input data values
Start
Form Y Bus matrix
Set flat voltage profile 1+j0 except slack bus
Set iteration count, p=
Set the bus count, i = 1
Check for slack bus
Check for Gen bus
It is a load bus calculate
n
j
ik k
j
k
ik k i
i i ii
p ical (^) V YV YV
P jQ Y
1
1
1
Calculate
p k
n
k i ik
p k
i
k ik
p
(^11)
1
1 *
Check min Q p^1 Q i
Set Qi=Q (^) i min
Check max Q p^1 Q i
Set Qi=Q (^) i max
A
Y
No
Yes
No
No
No
Yes
Yes
D
E
C
B
Bus Code Impedance Bus Number Admittance 1 – 2 0.06 + j0.18 1 j0. 1 – 3 0.02 + j0.06 2 j0. 2 – 3 0.04 + j0.12 3 j0.
Bus Code Assumed Voltage
Generation Load MW MVAr MW MVAr 1 1.06 + j0 0 0 0 0 2 1 + j0 0.2 0 0 0 3 1 + j0 0 0 0.6 0.
Solution:
Formation of Ybus:
j j j
j j j
j j j Ybus
Calculation of Q 2 :
Q 2 = (^)
n
q
V YpqVq 1
Im 2
= Im 1. 04 ( 1. 66 j 5 )( 1. 06 )( 4. 16 j 12. 5 ) 1. 04 ( 2. 5 j 7. 5 ) = Im 1. 04 ( 1. 763 j 5. 30 )( 4. 16 j 12. 5 ) 1. 04 ( 2. 5 j 7. 5 ) = Im 0. 07 j 0. 14 Q 2 = 0.14, it violates the limits of the reactive power.
Q 2 = Q (^) min = 0.2 as Q 2 (^) Q min
[ If suppose, Q 2 Qmax then Q 2 = Qmax]
Calculation of Bus voltages:
( 1 ) V 2 = 0.075 (^)
j Volts
= 0.075 71. 63 4. 452 j 12. 99 ( 1 ) V 2 = 1.047+j 0.007 volts
Accelerated voltage, ( 1 ) V 2 = 1.04+ 1.6(1.047+j0.007 -1.04) = 1+0.048-j0. ( 1 ) V 2 =1.0512+j0.0112 Volts
( 1 ) V 3 =0.0423 (^) 71. 49 0. 6 j 0. 25 (( 5 j 15 )( 1. 06 )( 2. 5 j 7. 5 )( 1. 0512 j 0. 0112 )) ( 1 ) V 3 = 1.041 – j 0.017 Volts
Accelerated voltage,
( 1 ) V 3 = 1+1.6(1.041 – j 0.17- 1 ) ( 1 ) V (^) 3 = 1.0656-j0.272 Volts
Theoretical Output:
V1=1.06+j0 Volts, V 2 (^1 )=1.0512+j0.0112 Volts, V 3 (^1 ) = 1.0656-j0.272 Volts
Result:
The given set of load flow equations for a given power system were solved using Gauss-Seidal method.
Therefore the elements of Jacobian (ie H & L) can be calculated as from the equations above of power. OFF diagonal element of H is
(^) pq p q q
p PQ
sin
Start
Read the input data
Form the Y bus matrix
Form B’ and B” matrix
Set flat voltage profile except for slack bus
Set convergence criterion є
Set iteration count p=
Calculate real & reactive power
Calculate
Are
Calculate real & reactive line flow, bus powers
Print the results
Stop
Find & V by solving the equations:
1 2
Uptate voltage magnitude t phase angles
V V ^ V
new old
^ ^ ^
new old
C
C
No
Yes
Flowchart: