Mat ZLab

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

EXPERIMENT 2

FORMATION OF BUS ADMITTANCE AND IMPEDANCE MATRICES AND SOLUTION OF


NETWORKS
2.1 AIM
To understand the formation of network matrices, the bus admittance matrix Y and the bus impedance
matrix Z of a power network, to effect certain required changes on these matrices and to obtain network
solution using these matrices.

2.2 OBJECTIVES
i. To write a computer program to form bus admittance matrix Y, given the impedances of
the elements of a power network and their connectivity (mutual coupling between elements
neglected)

ii. To modify the matrix Y to effect specified changes in the configuration of the network.

iii. To obtain network solution, that is, to determine the bus voltages given bus current injections.

iv. To obtain certain specified columns of the bus impedance matrix Z or the full matrix Z using the
factors of Y or the inverse of Y.

2.3 SOFTWARE REQUIRED


FORMATION OF NETWORK MATRICES module of AU Powerlab or equivalent

2.4 THEORETICAL BACKGROUND


2.4.1 Network Description of A Multinode Power System
The bus admittance matrix Y and bus impedance matrix Z are the two important network descriptions of
interconnected power system. The injected bus currents and bus voltages of a power system under
steady state condition can be related through these matrices as

Y V = I (2.1)
Z I =V (2.2)

These matrices are important building blocks of power system modelling and analysis. The Z is mainly
used in fault analysis while Y is mainly used in power flow and stability analysis.

2.4.2 Formation of Bus Admittance Matrix


Two-Rule Method (Based on Node - Voltage Analysis)
Consider a three-bus power system shown in Fig.2.1 .The equivalent power network for the system is
shown in Fig.2.2 in which the generator is replaced by Norton equivalent, the loads by equivalent
DGPLWWDQFHVDQGWKHOLQHVE\ Œ- equivalent circuits.

2-1
Generation
Load
G I1 yg1 yd2

2
1 1 y12 2
Short line

y ‘23
Short line Long line y13 y23

y ‘23

3
Shunt
Compensation 3
y30 yd3
Load

Fig.2.1 A Sample Power System Fig.2.2 Equivalent Power Network

In Fig.2.2, the admittances of the generator, loads and transmission lines are given in per unit to
system MVA base. The ground is taken as reference node.

Applying Kirchhoff’s current law (KCL) to nodes 1,2 and 3.


yg1 V1 + y12 (V1 –V2) + y13 (V1-V3) = I1
yd2 V2 + y12 (V2 –V1 ) + y23 (V2 – V3) + y’23 V2 = 0 (2.3)
yd3 V3 + y30 V3 + y23 (V3 – V2) + y’23 V3 + y13 (V3 – V1) = 0

Rearranging these equations


( yg1 + y12 +y13) V1 + (-y12) V2 + (-y13) V3 = I1
(-y12) V1 +( yd2 + y12 + y23 + y’23) V2 +(-y23 ) V3 =0 (2.4)
(-y13 ) V1 + (-y23) V2 + (yd3 + y30 + y23 + y’23 + y13) V3 =0
In matrix form

Y11 Y12 Y13 V1 I1


Y21 Y22 Y23 V2 = 0 (2.5)
Y31 Y32 Y33 V3 0

2-2
where
Y11 = ( yg1 + y12 +y13)
Y22 = (yd2 + y12 + y23 + y’ 23) (2.6)
Y33 = (yd3 + y30 + y23 + y’ 23 + y13)
Y12 = Y21 = -y12
Y13 = Y31 = -y13
Y23 = Y32 = -y23
The matrix equation (2.5) can be extended to an ‘n’ node system. The steps invol ved in assembling bus
admittance matrix may be extracted from equations (2.5) and (2.6) and are given below.

Two-Rule Method for Assembling Y matrix:


1. The diagonal element Yii of the matrix is equal to the sum of the admittances of all elements
connected to the ith node.

2. The off-diagonal element Yij of the matrix is equal to the negative of the sum of the admittances of
all elements connected between the nodes i and j.

2.4.3 Equivalent Circuit of A Transformer With Off-Nominal Tap for the Purpose of Formation
of Bus Admittance Matrix

A two – winding transformer with off- nominal turns ratio, connected between nodes k and m is shown
in Fig 2.3. In this representation, the turns ratio is normalized as a:1 and the non–unity side is called the
tap side which is taken as the sending end side. The series admittance of the transformer is connected to
the unity side.
Ik a :1 aIk y Im
k t m
k
. m
m

Vk/a
Vk Vm
Fig.2.3 Transformer with off-nominal tap
Im
k Ik y/a m
o o

y{1-(1/a)} Vm
Vk y/a {(1/a)-1}

Fig.2.4 Equivalent Circuit for Transformer With Off – Nominal tap.


2-3
By applying the two-rule method to buses t and m in Fig.2.3 we get

y -y Vk/a aIk
-y y Vm = Im (2.7)

By elementary matrix operation equation (2.7) can be reduced to

y/a2 -y/a Vk Ik (2.8)


-y/a y Vm = Im

It can be checked by applying the Two-Rule method to buses k and m in Fig.2.4 that the bus admittance
PDWUL[IRUWKHFLUFXLWLQ)LJDQGWKDWLQHTXDWLRQ  DUHWKHVDPH+HQFHWKH Œ- equivalent circuit
for transformer with off–nominal tap is that in Fig.2.4 and the contribution of this transformer to bus
admittance matrix Y of the power system to which it is connected is (refer equation (2.8))

Ykk = y/a2 ; Ymm = y ; Ykm = Ymk = -y/a (2.9)

2.4.4 Algorithm for Formation of Bus Admittance Matrix


The algorithm initializes the matrix Y with all the elements set to zero. Then read one element of the
network at a time and update the matrix Y by adding the contribution of that element. The contribution
of a transformer connected between nodes k and m is given in equation (2.9).

The contribution of transmission line connected between nodes k and m to Y is

Ykk = Ymm = ykm + y’ km (2.10)


Ykm = Ymk = -ykm
where ykm and y’ km are respectively the series admittance in p.u and half line changing admittance in p.u
of the line.

The contribution of a shunt element connected to node k to Y is


Ykk = y (2.11)
where y is the admittance in p.u of the shunt element. If S and So are respectively the MVA rating of the
shunt element (capacitor) and base MVA chosen for the system; then the shunt admittance is given by
y= 0+j(S/So) p.u (2.12)

2-4
Algorithm
Step 1: Initialize Y with all elements set to zero

Step 2: Read the line list, one line at-a-time and update Y by adding the respective
contribution, equation (2.10)

Step 3: Read the transformer list, one transformer at-a-time and update Y by adding the
respective contribution, equation (2.9)

Step 4: Read the shunt element list, one element at-a-time and update Y by adding the
respective contribution, equation (2.11)

2.4.5 Building Algorithm for Bus Impedance Matrix


A building algorithm for bus impedance matrix can be developed by first studying the rules required for
modifying an existing Z matrix for addition of new elements. Let us start with a given partial power
network with r nodes whose bus impedance matrix Z is known. It is proposed to add new elements, one
at a time, to this network and get the modified matrix Zm. Any one of the following four rules can be
used depending upon the type of modification.

Modification 1: Add an element with impedance z, connected between the reference node of the
partial network and a new node (r+1).

Rule 1 : The modified matrix Zm of dimension (r+1) x (r+1) is given by

Zm = Z 0 (2.13)
0 z

where Z is the bus impedance matrix of the partial network.

Modification 2: Add an element with impedance z, connected between an existing node i and a
new node (r+1).

Rule 2 : The modified matrix Zm of dimension (r+1) x (r+1) is given by

Z Zi (2.14)
Zm =
ZiT (Zii + z)

where Zi is the ith column of Z


ZiT is the transpose of Zi
Zii is the iith element of Z

2-5
Modification 3 : Add an element with impedance z, connected between an existing node i and
the reference node of the partial network.

Rule 3 : The modified matrix Zm of dimension r x r is obtained through a two step process. In
the first step, assume that the added element is between the existing node i and a fictitious node (r+1)
(instead of the reference node) and obtain the modified matrix Z’ of dimension (r+1) x (r+1) by
augmenting Z with an extra row and column as in (2.14). The second step is to connect the fictitious
node (r+1) by zero impedance link to the reference node whose voltage is zero and to obtain the final
matrix Zm of dimension r x r by applying Kron’s -reduction to the last row and column to obtain

Zmjk = Z’ jk - Z’ j, (r+1) Z’ (r+1), k ; j,k = 1,2,….,r (2.15)


Z’ ii + z

Modification 4 : Add an element with impedance z, connected between existing nodes i and j.
Rule 4 : The modified matrix Zm of dimension r x r is given by
Zm = Z – c b b T (2.16)
where b = Zi - Zj (2.17)
c= (z + Zii +Zjj – 2Zij)-1 (2.18)
Zi, Zj : ith and jth columns of Z
Zii, Zjj, Zij: iith , jjthand ijth elements of Z

Note:

b bT = b1 b1, b2 …..br b21 b1 b2 ……… b1 br


b2 = b2b1 b22 …… b2 br (2.19)

br brb1 brb2 ……… b2r

Building Algorithm for Z:


The above rules are built into the following step wise procedure to build Z matrix:

Step 1:
Start with a partial network composed only of those elements connected directly to reference node. Let
the number of these elements be r. The corresponding bus impedance matrix Z(1) is of dimension r x r
and is diagonal with the impedance values of the elements appearing on the diagonal. This process is
equivalent to the repeated use of rule 1.

2-6
Step 2:
Add a new element which brings a new node and modify Z(1) using rule 2. Continue until all the nodes
of the complete network are brought in.

Step 3: Add a new element connected between existing nodes i and j using rule 4. Continue until all the
elements are connected.

2.4.6. Network Solution Using Factorization And Repeat Solution


Network solution in a power network is concerned with the determination of the bus voltage vector V
from the network equation (2.20), given the bus admittance matrix Y and bus current source vector I

YV=I (2.20)
In power system applications, during most of the studies, the network configuration and parameters
remain the same implying that Y remains fixed. However the operating conditions change resulting in
changed bus current vector I. In such cases, while finding numerical solution for the bus voltage vector
V repeatedly for different bus current vectors I, the computations can be performed effectively resulting
in considerable savings in time if “triangular factorization” and “repeat solution” are adopted.

First the matrix Y in equation (2.20) is split into factor matrices L and U using the “triangular
factorization process” [1]. The equation (2.20) may be written as

YV=LUV=I (2.21)
~
By defining an intermediate voltage vector V as
~
UV=V (2.22)

equation (2.18) may be written as


~
LV=I (2.23)
The solution for voltage vector V in Eqn. (2.21) is obtained through the “repeat solution process” which
comprises the following two steps:
~
(i) Forward Elimination: This involves solving eqn. (2.23) for vector V through elementary
transformations on vector I using the elements of L.

(ii) Back substitution : This involves solving eqn.(2.22) for vector V through elementary
~
transformations on vector V using the elements of U.
2-7
Factorization Algorithm:
Let us define the L and U factor matrices for a sample Y matrix of dimension 3 x 3 as

Y11 Y12 Y13 1 0 0 U11 U12 U13


Y= Y21 Y22 Y23 = L U= L21 1 0 0 U22 U23
Y31 Y32 Y33 L31 L32 1 0 0 U33

(2.24)
After multiplication of L and U matrices, eqn. (2.24) becomes,

Y11 Y12 Y13 U11 U12 U13


Y= Y21 Y22 Y23 = L21U11 (L21U12+U22) (L21U13+U23)
Y31 Y32 Y33 L31U11 (L31U12+L32U22) (L31U13+L32U23+U33)

(2.25)
It is seen from (2.24) and (2.25) that the first row of U is readily obtained from the first row of Y,
whereas the first column of L can be obtained by dividing the first column of Y by U11 which is the
same as Y11. All the elements of L and U can be obtained from the Y matrix in Eqn. (2.25) by
performing two transformations. The first transformation on Y matrix in eqn. (2.25) is as follows.

Y(1)22 = Y22 – (Y21 Y12) / Y11 ; Y(1)23 = Y23 - (Y21 Y13) / Y11
Y(1)32 = Y32 – (Y31 Y12 ) / Y11 ; Y(1)33 = Y33 – (Y31 Y13) / Y11
and Y(1)21 = Y21/ Y11 ; Y(1)31 = Y31 / Y11

At the end of this first transformation Y matrix is given by

Y11 Y12 Y13 U11 U12 U13


Y(1) = Y(1)21 Y(1)22 Y(1)23 = L21 U22 U23
Y(1)31 Y(1)32 Y(1)33 L31 L32U22 (L32U23+U33) (2.26)

The second transformation on Y(1) in eqn. (2.26) is as follows:


Y(2)33 = Y(1)33 – (Y(1)32 Y(1)23) / Y(1)22
and Y(2)32 = Y(1)32 / Y(1)22

At the end of the second transformation, the Y matrix is given by

Y11 Y12 Y13 U11 U12 U13


Y(2) = Y(1)21 Y(1)22 Y(1)23 = L21 U22 U23
Y(1)23 Y(1)23 Y(1)33 L31 L32 U33
2-8
F11 F12 F13
= F21 F22 F23 =F
F31 F32 F33 (2.27)

Now the Y(2) matrix in (2.27) contains all the elements of L and U. This can be termed as factor matrix F.

The above factorization process can be generalized for a Y matrix of dimension nxn as
follows.

kth transformation : k = 1,2,……(n -1)

Y ij (k) = Y ij (k-1)– (Y ik (k-1) Ykj (k-1)) / Y kk (k-1) ; i, j = (k+1) , ….. , n (2.28)

and Y ik (k) = Y ik (k-1) / Y kk (k-1) ; i = (k+1) , ….. , n (2.29)

After the above (n-1) transformations, the Y matrix is converted into the factor matrix F which contain
all the elements of L and U.

Repeat Solution Algorithm:


The forward elimination is performed on the given vector I using the elements of L stored
~
in F to obtain the intermediate vector V as shown below.

~
1 0 0 V1 I1
~
F21 1 0 V2 = I2 (2.30)
~
F31 F32 1 V3 I3
~
V1 = I1
~
V2 = I2(1) ; I2(1) = I2 – F21 I1 (2.31)
~
V3 = I3(2) ; I3(1) = I3 – F31 I1 ; I3(2) = I3 (1)– F32 I2(1)
The above steps can be generalized as :
~
Vi = Ii (i-1) ; i = 1,2,………..n

Transformation on Ii ; i = 2,3 …..n is performed using

Ii(j) = Ii(j-1) - Fij Ij(j-1) ; j= 1,2, ….. (i -1) (2.32)


~
The back substitution is performed on the intermediate vector V using the elements of U stored in F to
obtain the solution vector V as shown below:
2-9
~
F11 F12 F13 V1 V1
~
0 F22 F23 V2 = V2 (2.33)
~
0 0 F33 V3 V3

~ ~ ~
V3 = V3(1) ; V3(1) = V3 / F33
~ ~ ~ ~ ~ ~
V2 = V2 (2) ; V2 (1) = V2 – F23 V3 (1) ; V2 (2) = V2 (1) / F22 (2.34)
~ ~ ~ ~ ~ ~ ~ ~ ~
V1 = V1 (3) ; V1 (1) = V1 – F12 V2 (2) ; V1 (2) = V1 (1) – F13 V3 (1) ; V1 (3) = V1 (2) / F11

The above steps can be generalized as

i = n, ….., 2, 1

j = n, ….., (i+1), i

No Yes
If (j = i)?

~ ~ ~ ~ ~
Vi = Vi – Fij Vj Vi = Vi / Fij

Fig 2.5 Flow Chart for Repeat Solution

Z matrix through factorization of Y and repeat solution:

The relation between Y and Z is given by eqn. (2.35)


YZ=I (2.35)
where I is the identity matrix.
2-10
Eqn. (2.35) can be written as
Y (Z1 Z2 …. Zn) = ( I1 I2 ….. In ) (2.36)
th
where Zi = i column of Z matrix
and Ii = ith column of identity matrix.
Eqn. (2.36) can be split into n equations
Y Zi = Ii ; i = 1, 2, …. ,n (2.37)
From (2.37) it is clear that the ith column Zi of Z matrix can be obtained through factorization of Y and
repeat solution on Ii.

2.5 EXERCISES
2.5.1 Write a program in C language for formation of bus admittance matrix Y of a power network
using the “ Two – Rule Method”.

The program should have three sections: Input Section, Compute Section and Output Section.

I. Input Section:
Pre-requisite:
Before creating the input data file, draw a single-line diagram showing the buses, lines, transformers,
shunt elements, bus generations and demands. (Refer Fig in Annexure 2.1) Bus Id numbers are serially
given from 1 to NB where NB is the total number of buses in the system.

The data to be read from an input file should contain the general data, transmission line data,
transformer data and shunt element (capacitor / reactor) data in the following sequence:

i. General Data: Number of buses, number of transmission lines, number of transformers, number of
shunt elements (capacitor / reactor) and the base MVA of the network.

ii. Transmission Line Data: The following data to be read for all lines, (one line for each transmission
line):

a. Identification number (serial number) of line


b. Identification number of sending end and receiving end buses of line
c. Series impedance (R,X)of the line in per unit.
d. Half-line-charging susceptance, Bc, in per unit.
e. Maximum loadability limit (rating) of line in MVA

iii. Transformer Data:


The following data to be read for all transformers (one line for each transformer):
a. Identification number (serial number) of transformer
b. Identification number of sending end (tap side) bus and receiving end bus of transformer.
c. Impedance (R,X) of transformer in per unit.
d. Off-nominal tap ratio
e. Maximum loadability limit (rating) of transformer in MVA

2-11
iv. Shunt element (capacitor / reactor) Data:
The following data to be read for all shunt elements (one line for each element):
a. Identification number (serial number)of the shunt element
b. Identification number of the bus
c. Rated capacity in MVA (positive for capacitor and negative for inductor).

II. Compute Section:


To form the Y matrix using the algorithm in section 2.4

III. Output Section:


To create an output file in a report form comprising the following:

(i) Student Information :


Title of the Experiment :
Case Title
Name of the Student :
Roll Number :
Semester :
Date of Experiment :
(ii) Input Data with proper headings :
(iii) Results with proper headings: Element value (in per unit) of Y printed row wise.

• ) 2.5.2 The line series impedance (R,X) is given in ohm per km length of line and the line
charging susceptance is given in milli Siemens per km length. Further the length of line in km
as well as rated voltage of the line in kV are also given. Modify the program developed in
2.5.1 to read the line impedance / susceptance data in per unit as in 2.5.1 or in ohms / mhos
as in 2.5.2.

2.5.3 Using a text editor create an input file in the sequence given in 2.5.1 for formation of Y matrix
for the 6 bus system given in Annexure 2.1, run the program developed in 2.5.1, compute Y
and print the output file. Check the results obtained using the available software.

2.5.4 Create necessary changes in the C program developed in 2.5.1 to modify the formed Y matrix for
the outage (removal) of a transmission line, a transformer and a shunt capacitor / reactor.

2.5.5 Run the program in 2.5.4 and print the modified Y matrix for the 6 bus system for the removal
of the following components, one at-a-time:
a. Line 4-6
b. Transformer 4-3
c. Shunt capacitor at Bus 4
Check the results, using the available software.
2-12
2.5.6 Create necessary changes in the C program in 2.5.1 to obtain bus impedance matrix Z either full
matrix or only certain specified column from the formed Y matrix either by factorizing Y and
going for one “ repeat solution” for each column of Z or by inverting Y.

2.5.7 Run the program developed in 2.5.6 and obtain Z for the six bus system in Annexure 2.1. Obtain
only the column of Z corresponding to bus 4. Check the results using the available software.
Repeat this exercise again but after dropping the two shunt capacitors of the 6 bus system. What
is the inference?

2.5.8 Create necessary changes in the C program in 2.5.1 to obtain network solution V given the bus
current source vector I, either using the factors of Y or the inverse of Y.

2.5.9 In the 6 bus system in Annexure 2.1 replace the generators at buses 1 and 2 by equivalent ideal
current sources 1.0 ?o p.u and the loads at buses 3,5 & 6 by equivalent ideal current sources
computed assuming a bus voltage of 1.0 ?o p.u. For this network run the program in 2.5.8 and
obtain the solution V.

• ) 2.5.10 Write a program in C language for forming the bus impedance matrix Z step by step, using
the “Building Algorithm”, run the program for the 6 bus example in Annexure 2.1 and
compare the results with that obtained in 2.5.7.as well as with that obtained using the
available software.

• ) These exercises are optional and not mandatory.

2.6 REFERENCE

[1] Arthur R.Bergen and Vijay Vittal, “Power Systems Analysis”, Pearson Education Asia, Delhi,
Second Edition, 2000.

2-13
ANNEXURE 2.1
6-BUS, 7-LINES / TRANSFORMER POWER SYSTEM
Single-Line Diagram

G
S1 3
L2 4 T2
1

L3 a:1
L1 L5

T1 L4

6 5 2
S2
a:1
G

Buses : 6, numbered serially from 1 to 6


Lines : 5, numbered serially from L1 to L5
Transformers : 2, numbered serially as T1 and T2
Shunt Load : 2, numbered serially as s1 and s2
Base MVA : 100

Bus Data – P-V Buses:

Bus ID Generation, MW Demand Gen. Limit Scheduled


No. MVAR Volt (p.u)
Schedule Max Min MW MVAR Max Min
1 ? 200 40 0.0 0.0 100.0 -50.0 1.02
2 50.0 100 20 0.0 0.0 50.0 -25.0 1.02

Bus Data – P-Q Buses


Bus ID No Demand Volt. Mag.
MW MVAR Assumed (p.u)
3 55.0 13.0 1.0
4 0.0 0.0 1.0
5 30.0 18.0 1.0
6 50.0 5.0 1.0

2-14
Transmission Line Data:

Line ID. Send Bus Receive Resist Reactance Half Line Rating
No No. Bus No. P.U P.U. charging MVA
Suscept.
P.U
1 1 6 0.123 0.518 0.0 55
2 1 4 0.080 0.370 0.0 65
3 4 6 0.087 0.407 0.0 30
4 5 2 0.282 0.640 0.0 55
5 2 3 0.723 1.050 0.0 40

Transformer Data:

Transformer Send (*) Receive Resist. Reactance Tap Ratio Rating


ID.No Bus No. Bus No. P.U P.U. MVA
1 6 (*) 5 0.0 0.300 1.000 30
2 4 (*) 3 0.0 0.133 1.000 55

(*) Note: The sending end bus of a transformer should be the tap side.

Shunt Element Data:

Shunt ID No. Bus ID. No. Rated Capacity


MVAR (*)
1 4 2.0
2 6 2.5

(*) Note: Sign for capacitor : +ve


Sign for inductor : -ve

2-15

You might also like