Documente Academic
Documente Profesional
Documente Cultură
TABLE OF CONTENT
ACKNOWLEDGEMENT.........................................................................................................3
INTRODUCTION......................................................................................................................4
Aim: -.....................................................................................................................................6
Objective: -.............................................................................................................................6
Theory: -.................................................................................................................................6
Derivation: -...........................................................................................................................7
Result: -................................................................................................................................15
Conclusion: -........................................................................................................................17
Aim: -...................................................................................................................................18
Objective: -...........................................................................................................................18
Theory: -...............................................................................................................................18
Derivation: -.........................................................................................................................20
MATLAB code.....................................................................................................................28
Result: -................................................................................................................................31
Conclusion: -........................................................................................................................34
REFERENCES.........................................................................................................................35
LIST OF ILLUSTRATIONS
Figure 1: - Electric Power System (www.slideshare.net, 2016)...............................................4
ACKNOWLEDGEMENT
Gratitude and thanks can never be expressed in words it is a feeling of indebt which comes
out from the core of someones heart. I would like to thank APIIT SD INDIA for showing
their faith in me and giving the opportunity of making this assignment related to the
MATLAB software. I would also like to thank our module lecturer Mr Raman Kumar for
showing his keen interest in helping me with the problems I faced in completing this
assignment. I would be pleased to thank my friends also, who gave their precious time for the
group discussions related to the topic without which the implementation of the circuits and
the theoretical concepts in the lab would have never been so easy. At last but not the least it
will be a privilege to thank my parents for all their financial support.
INTRODUCTION
Power system the world itself explains its meaning that it is the combination of different
network which consists generation, transmission and distribution of electric power. These
three mentioned factors basically covers the whole power system, the generation section
deals about the methods of the generation of the power followed by the transmission which
deals about the various methods carried out for the transmission of the generated electric
power and finally the distribution of the electric power among the consumers for the use.
Power system is the most capital intensive and the most complex system ever designed by the
mankind. This can be said so because the system not only needs to be operated effectively
and efficiently but also the problems occurring should be handled fastly and effectively. In
the power system there is huge impact of the concepts like corona, mechanical design of the
overhead transmission lines, power flows etc. The economics of A.C transmission lines
always forces the engineers to plan the transmission of the highest amount of the electric
power transmission with the existing transmission sources available.
This assignment deals about the concept of the methods of Load flow. The assignment
discusses the concepts by the help of solving two different concept naming the BUS
admittance matrix formation and the Gauss Seidel method of load flow. The assignment also
consists the stepwise algorithm of the formation of the bus admittance matrix and the Gauss
Seidel method of the load flow along with the flow chart of the concerned concepts. The
mentioned concept has also been verified by coding in the MATLAB software and the
simulation result has been also carried out to critically analyse the given concept.
MATLAB is basically a very advanced software which is used for the technical computing.
It is a high performance language which is used for the mathematical and computational
operations along with the algorithm development, modelling, simulation, prototyping, data
analysis, and visualisation and for many other scientific graphics generation. The software
provides the optimized platform for solving the engineering and scientific problems. This
software also consists the built in graphics which makes the concepts easily understandable
and gaining the insight knowledge of the concept also gets very easy. In this assignment this
software has been used for the verification of the different concepts of the load flow and the
formation of the bus admittance matrix through coding.
EXPERIMENT NO. 1
Aim: -
The main aim of this experiment is the formation of bus admittance matrix for the power
system network using MATLAB.
Objective: -
Determine the admittance matrix (Y) for the given power system network.
Writing the MATLAB program for the formation of the admittance matrix
Critically analyze the two obtained result of admittance matrix formation from
manual formation and MATLAB simulation.
Software used: -
MATLAB R2014a
Theory: -
The formation of the Bus Admittance matrix is basically used for the representation of the
nodal admittances of the various buses in the power system. Before discussing the formation
and concept of the bus admittance matrix it is required to know about the concept of Load
Flow. Load flow is the solution of network under steady state condition subject to certain
inequality constraints under which the system operates. The constraints can be in the form of
the nodal voltages, reactive power generation and the tap setting of the load transformer. The
load flow study is conducted to calculate the voltage at various buses. The different
parameters which is related to each bus is such as the voltage magnitude, the voltage phase
angle and the active power and the reactive volt amperes. In the load flow study the three
different types of buses which are classified are as follows: -
1. Load bus
2. Generator bus
3. Swing bus (Wadhwa, 2013)
Load Bus: -
At this bus the real and the reactive component or power is specified and is required to find
out the voltage magnitude and the phase angle through the load flow solution. Buses without
the generator and load may be considered as the load buses. If there exists a bus having both
the generator and load then the load is generally considered as the negative generation. In this
it is required to find out only those parameters which allows the bus voltage to vary within
Derivation: -
At node 1,
I 1 =I 11 + I 12+ I 13
V
V
( 1V 3 ) y 13
( 1V 2 ) y 12 +
V 1 y 11 +
V 1 y 11 +V 2 y 12+ V 3 y 13
Y 1= y 11 + y 12 + y 13
Y 12= y 12
Y 13= y 13
Similarly nodal current equation for the other nodes can be written as follows
I 2 =V 1 y 21 +V 2 y 22 +V 3 y 23
I 3 =V 1 y 31 +V 2 y 32 +V 3 y 33
[ ] [ ][ ]
I1 y 11 y 12 y 13 V 1
I2 = y 21 y 22 y 23 V 2
I3 y 31 y 32 y 33 V 3
The nodal current for an n-bus system where each node is connected to all other nodes.
n
I p = Y pq V q , where p=1,2, 3 n
q=1
Theoretical calculations: -
y 34=1.14942 j 2.87356
Y 11=2.882280 j 7.529350
Y 22=4.54530 j 10.11905
Y 33=3.684620 j6.318363
Y 44=3.100640 j 5.312560
Now, [ Y BUS ]
[ ]
y 10 + y 12 + y 13 y 12 y 13 0
y 12 y 20 + y 12+ y 23+ y 24 y 23 y 24
y13 y 23 y 30+ y13 + y 23 + y 34 y 34
0 y 24 y 34 y 40 + y 24 + y 34
[ ]
2.8823 j 7.5290 1.4706+ j5.8824 1.4117 + j 1.6470 0
1.4706+ j 5.8824 4.5453 j10.1191 1.1236+ j1.7978 1.9512+ j 2.4390
1.4117 + j 1.6470 1.1236+ j 1.7978 3.6847 j6.3184 1.1494 + j 2.8735
0 1.9512+ j2.4390 1.1494+ j2.8735 3.1006 j 5.3126
MATLAB algorithm: -
Step 1: firstly the matlab shortcut icon ( ) present on the desktop screen was clicked and the
pop up or the start up menu of matlab screen was appeared which is as follows.
Step 5: - As the program gets executed the result pops up in the result located below the
editor window.
end
ybus = ybus %Bus Admittance Matrix
zbus = inv(ybus); %Bus Impedance Matrix
zbus
Result: -
Error Calculation:
Theoretical value practical value
% Error 100
Theoretical value
P2 Q2
=
2.8823 2 7.5290 2
=
= 8.046
Practical value = magnitude of Y11
P2 Q2
=
2.8824 2 7.5294 2
=
= 8.06
Level 3 Asia Pacific Institute of Information Technology 2016
CE00602-3-Power System engineering and Analysis 1 Individual Assignment Page 17 of
43
8.06 8.046
% Error 100
8.06
0.1736%
P2 Q2
=
1.4706 2 5.8824 2
=
= 6.0634
Practical value = magnitude of Y21
P2 Q2
=
1.4706 2 5.8824 2
=
= 6.0634
6.0634 6.0634
% Error 100
6.0634
0%
P2 Q2
=
1.1236 2 1.7978 2
=
= 2.1200
Practical value = magnitude of Y32
P2 Q2
=
1.1236 2 1.7978 2
=
= 2.1200
2.1200 2.1200
% Error 100
2.1200
0%
P2 Q2
=
1.1494 2 2.8735 2
=
= 3.09485
Practical value = magnitude of Y43
P2 Q2
1.1494 2 2.8736 2
=
= 3.09494
3.09494 3.09485
% Error 100
3.09494
0.00290%
P2 Q2
=
P2 Q2
4.5453 2 10.11912
=
= 11.09305
11.09305 11.09305
% Error 100
11.09305
0%
Critical Analysis: -
After performing all the procedures of obtaining the result from the manual calculation and
result obtained by executing the file in the MATLAB software are similar. The admittance
matrix has been formed by entering the line data in the MTLAB software and the result
obtained by the help of manual calculation, the every single element of the admittance matrix
obtained is similar in both the cases. Hence, it can be clearly stated that there is no error in
the formation of the admittance matrix. In some case there may be a difference in certain
elements and this may occur because in the manual calculation often the digits after four
places of decimal is ignored and due to this reason sometimes there occurs some difference
even after four places of decimal which can easily be ignored. In most of the power system
studies
it is required to form y- bus matrix of the system by considering certain power system
parameters depending upon the different type of analysis.
Conclusion: -
From the above obtained result a conclusion can be drawn that the manual result and the
software result obtained are same. Working with this topic was very interesting and
knowledgeable. The concepts regarding the Matlab software is quite innovative and working
with the software provides a glimpse of the real simulation of the power system.
Derive a simple method of solving power flow problems of small sized network
using manual calculation
Write MATLAB program for solving power flow problems of small sized network
using Gauss Seidal Method.
Determine the admittance matrix (Y) for the given power system network.
Critically analyze the two obtained result of admittance matrix formation from
manual formation and MATLAB simulation.
Software used: -
MATLAB R2014a
Theory: -
Gauss Seidel method is basically a technique for solving the n number of equations of the
linear systems of equations. Gauss Seidel method is one of the iterative method which is used
to solve the nonlinear load flow equations. Before understanding the concepts ahead it is
required to know about the load flow equations and the reason for using these iterative
methods. Load flow is the solution of network under steady state condition subject to certain
inequality constraints under which the system operates. The constraints can be in the form of
the nodal voltages, reactive power generation and the tap setting of the load transformer. The
load flow study is conducted to calculate the voltage at various buses. The different
parameters which is related to each bus is such as the voltage magnitude, the voltage phase
angle and the active power and the reactive volt amperes. In the load flow study the three
different types of buses which are classified are as follows: -
1. Load bus
2. Generator bus
3. Swing bus (Wadhwa, 2013)
3
I p =Y pq V q+ Y pq V q
q=1 2.2
qp
3
IP 1
V p= Y V
Y pp Y pp q=1 pq q 2.3
q p
Now,
V pI p=P p j Q p 2.4
2.5
Now it can be seen that the obtained equation has the variable bus voltage and due to this
reason the iterative methods are used.
(Wadhwa, 2013)
Derivation: -
For the derivation purpose we need to take an example which is mentioned as follows:
For this let us assume a flat voltage profile for all nodal voltage except the slack bus 1. And
let the slack bus voltage equal to a+j0.0. In the next step the iteration count is set to 0, the bus
count is set to 1.
Now the P, Q and Y at a bus do not change with iterations hence it can be evaluated as:
P p jQ p
A p= for all p=1 . n , p s
Y pp
Y pq
B pq= for all p=1 . n , p sq=1 2 n ,q p
Y pp
The bus voltage of the given example can also be calculated by the Gauss Seidel method. In
k+1 k
this method the new calculated voltage Vi immediately replaces V i and is used for
P2 j Q 2 2.7
1
V k+1
2 =
Y 22
V
( 3 )(Y 32 V 2+ Y 34 V k4)
k
P3 jQ3 2.8
k +1 1
V3 =
Y 33
V
( 4 )(Y 41 V 1 +Y 43 V 3k+1 +Y 45 V 5k )
k
P p j Q 2 2.9
k +1 1
V4 =
Y 44
V
( 5 )(Y 51 V 1+ Y 54 V k4+1)
k
P p jQ2 2.10
k+1 1
V5 =
Y 55
The general load flow equation resultant from the Gauss Seidel method can be written as: -
Theoretical calculation: -
We know that for a power system S = VI = P +jQ
Where,
P = active power,
Q = reactive power
,= +
And from Gauss Siedel Method,
1= 1[+{Yi1V1 + Yi2V2 +Yi3V3++ YinVn}
Now the bus data (Table 2) and line data (Table 3) are given as follows:
Table 1: - Bus data
PQ 0.33 0.13 PQ
PQ 0.42 0.32 PQ
PQ 0.48 0.20 PQ
y 12= [ 1
R+ jX ]
y 12 =
[ 1
0.10+ j0.25 ][
0.10 j 0.25
0.10 j 0.25 ]
Level 3 Asia Pacific Institute of Information Technology 2016
CE00602-3-Power System engineering and Analysis 1 Individual Assignment Page 28 of
43
y 12 = [ 0.10 j 0.25
0.07250 ]
=( 1.379310 j 3.44827)
y 14 = [ 1
0.12+ j0.15 ]
[ 1
0.12+ j 0.15
][
0.12 j0.15
0.12 j0.15 ]
y 14 = [ 0.12 j 0.15
0.03690 ]
=(3.2520 j 4.0650)
y 23 = [ 1
0.14+ j 0.16 ]
y 23 =
[ 1
0.14+ j 0.16
][
0.14 j 0.16
0.14 j 0.16 ]
y 23 = [ 0.14 j0.16
0.04520 ]
=(3.0973 j 3.5398) 2.16
y 34 = [ 1
0.08+ j 0.20 ]
y 34 =
[ 1
0.08+ j 0.20
][ ]
0.08 j0.20 0.08 j 0.20
0.08 j0.20 0.08 j 0.20
y 34 = [ 0.08 j 0.20
0.04600 ]
=(1.7241 j 4.31034) 2.17
Y 11 =[4.631310 j 7.513270]
Y 22=[4.475510 j6.988070]
Y 33=[4.82140 j7.850140]
Y 44 =4.9761 j 8.375340
0
Y 24=Y 42= y24 = ]
1.7241 j 4.31034
Y 34=Y 43= y 34= ]
V2
1 P2 jQ2
Y22 V2
*
0
Y21V1 Y23V3 Y24V4
0
1 0.33 j 0.13
V2 1.38 j 3.448 1.08 3.097 j 3.54 1 0 1
4.477 j 6.98 1.00 j 0.00
V2 1.0711 j 0.018
V3
1 P3 jQ3
Y33 V3
*
Y31V1 Y32V2 Y34V4
0
1 0.42 j 0.32
V3 0 1.08 3.097 j 3.54 1.0711 j 0.018 1.724 j 4.31 1
4.821 j 7.85 1.00 j 0.00
V3 1.087 j 0.035
MATLAB algorithm: -
Step 2: Then Matlab is opened and the following screen appears from which on the left
corner the icon ( ) named as new script is clicked to open a new workspace.
Step 5: - As the program gets executed the result pops up in the result located below the
editor window.
MATLAB code
format short g
disp (' LINE DATA')
linedata=[1 2 0.10, 0.25, 1.3793, -3.4483, 0, 0;
1 4 0.12, 0.15, 3.2520, -4.0650, 0, 0;
2 3 0.14, 0.16, 3.0973, -3.5398, 0, 0;
3 4 0.08, 0.20, 1.7241, -4.3103, 0, 0;]
ss=i*linedata(:,8);
y=linedata(:,5)+i*linedata(:,6);
for b=1:totalbranches
end
for c=1:totalbuses
for d=1:totalbranches
if linedata(d,1) == c || linedata(d,2) == c
ybus(c,c) = ybus(c,c) + y(d) + ss(d);
end
end
end
disp('TABLE 9.3 PAGE # 338 BUS ADMITTANCE MATRIX FOR EXAMPLE 9.2')
ybus
z=zeros(totalbuses,4);
busnumber=busdata(:,1);
PG=busdata(:,2);
QG=busdata(:,3);
PL=busdata(:,4);
QL=busdata(:,5);
V=busdata(:,6);
VV=V;
ANG=busdata(:,7);
type = busdata(:,8);
% end
vc(i)=abs(VV(i))*(V(i)/abs(V(i)));
busdata(i,6)=vc(i);
V(i)=vc(i);
end
% Calculating Accelerated Voltage for PQ bus
if busdata(i,8) == 2
VACC(i)= VV(i)+alfa*(V(i)-VV(i));
busdata(i,6)=VACC(i);
V(i)=VACC(i);
end
%V(i)=V;
end
Result: -
Error Calculation:
Theoretical value practical value
% Error 100
Theoretical value
P2 Q2
=
4.63 2 7.513 2
=
= 8.825
Practical value = magnitude of Y11
P2 Q2
=
4.6312 7.519 2
=
Level 3 Asia Pacific Institute of Information Technology 2016
CE00602-3-Power System engineering and Analysis 1 Individual Assignment Page 37 of
43
= 8.830
8.830 8.825
% Error 100
8.830
0.0641%
P2 Q2
=
4.477 2 6.98 2
=
= 8.292
Practical value = magnitude of Y22
P2 Q2
=
4.4766 2 6.988 2
=
= 8.298
8.298 8.292
% Error 100
8.298
0.083%
P2 Q2
=
4.8212 7.85 2
=
= 9.212
Practical value = magnitude of Y33
Level 3 Asia Pacific Institute of Information Technology 2016
CE00602-3-Power System engineering and Analysis 1 Individual Assignment Page 38 of
43
P2 Q2
=
4.8214 2 7.850 2
=
= 9.2124
9.2124 9.212
% Error 100
9.2124
0.0043%
P2 Q2
=
4.974 2 8.375 2
=
= 9.7407
Practical value = magnitude of Y44
P2 Q2
4.97612 8.375 2
=
= 9.7417
9.7417 9.7407
% Error 100
9.7417
0.011%
P2 Q2
=
3.25 2 4.065 2
=
P2 Q2
3.25 2 4.065 2
=
= 5.2044
5.2044 5.2044
% Error 100
5.2044
0%
Critical Analysis: -
After performing all the procedures of obtaining the result from the manual calculation and
result obtained by executing the file in the MATLAB software are similar. The load flow
equation and the Ybus have been formed by entering the data in the MATLAB and the bus
no. phase angle and voltage have been also calculated by the software and the result obtained
by the help of manual calculation, the every single element of the admittance matrix obtained
is similar in both the cases. In some case there may be a difference in certain elements and
this may occur because in the manual calculation often the digits after four places of decimal
is ignored and due to this reason sometimes there occurs some difference even after four
places of decimal which can easily be ignored. The gauss Seidel method has been also used
for finding the different load flow equation and the obtained matrix is similar to that obtained
by the normal method of the finding load flow equation.
Conclusion: -
From the above obtained result a conclusion can be drawn that the manual result and the
software result obtained are same. Working with this topic was very interesting and
knowledgeable. It provided an insight knowledge about the concept of load flow equation and
the iterative methods to calculate the variable bus voltages. The concepts regarding the
Matlab software is quite innovative and working with the software provides a glimpse of the
real simulation of the power system.
REFERENCES
Anon (2016). Electrical Power Transmission System and Network | Electrical4u. [Online].
2016. Electrical4u.com. Available from: http://www.electrical4u.com/electrical-power-
transmission-system-and-network/. [Accessed: 5 November 2016].
Anon (2016). Load Flow (Aim) : Power system Lab : Electrical Engineering : IIT Bombay
Virtual Lab. [Online]. 2016. Iitb.vlab.co.in. Available from: http://iitb.vlab.co.in/?
sub=44&brch=141&sim=258&cnt=493. [Accessed: 4 November 2016].
Anon (2016). MATLAB Coding and Simulation for Load Flow Analysis. [Online]. 2016.
Ku.edu.np. Available from: http://www.ku.edu.np/ee/index.php/seee/student-project-
page/109-matlab-coding-and-simulation-for-load-flow-analysis.html. [Accessed: 4
November 2016].
Anon (2016). MATLAB Program for Formation of Bus Admittance Matrices | EE1404
Power System Simulation Laboratory - Source Code Solutions. [Online]. 2016.
Sourcecodesolutions.in. Available from:
http://www.sourcecodesolutions.in/2011/03/formation-of-bus-admittance-matrices.html.
[Accessed: 4 November 2016].
Anon (2016). Step-by-Step Formation of Bus Admittance Matrix - Circuit Globe. [Online].
2016. Circuit Globe. Available from: http://circuitglobe.com/formation-of-bus-
admittance-matrix.html. [Accessed: 4 November 2016].
Anon (2016). What is a Gauss Seidel Method? Circuit Globe. [Online]. 2016. Circuit Globe.
Available from: http://circuitglobe.com/gauss-seidel-method.html. [Accessed: 4
November 2016].
El-Hawary, M. (1995). Electrical power systems. 5th Ed. New York: Institute of Electrical
and Electronics Engineers.
Elsevier, T. (2016). Why should we use MATLAB (Matrix Laboratory). [Online]. 2016.
Yorku.ca. Available from: http://www.yorku.ca/jdc/Matlab/Lesson1.htm. [Accessed: 6
November 2016].
Pattinson, R. (2016). Load Flow Problem - Circuit Globe. [Online]. 2016. Circuit Globe.
Available from: http://circuitglobe.com/load-flow-study.html. [Accessed: 6 November
2016].
Pattinson, R. (2016). What is Bus Admittance Matrix? - Circuit Globe. [Online]. 2016. Circuit
Globe. Available from: http://circuitglobe.com/bus-admittance-matrix.html. [Accessed: 6
November 2016].