15eel76 PDF
15eel76 PDF
15eel76 PDF
VII SEMESTER
POWER SYSTEM SIMULATION LABORATORY
(15EEL76)
NAME :
BATCH :
USN :
R N S INSTITUTE OF TECHNOLOGY, BANGALORE – 560098
VISION
MISSION
1. Engineering knowledge: Apply the knowledge of mathematics, science, engineering fundamentals, and an
engineering specialization to the solution of complex engineering problems.
2. Problem analysis: Identify, formulate, review research literature, and analyze complex engineering
problems reaching substantiated conclusions using first principles of mathematics, natural sciences, and
engineering sciences.
3. Design/development of solutions: Design solutions for complex engineering problems and design system
components or processes that meet the specified needs with appropriate consideration for the public health and
safety, and the cultural, societal, and environmental considerations.
4. Conduct investigations of complex problems: Use research-based knowledge and research methods
including design of experiments, analysis and interpretation of data, and synthesis of the information to provide
valid conclusions.
5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern engineering
and IT tools including prediction and modeling to complex engineering activities with an understanding of the
limitations.
6. The engineer and society: Apply reasoning informed by the contextual knowledge to assess societal, health,
safety, legal and cultural issues and the consequent responsibilities relevant to the professional engineering
practice.
7. Environment and sustainability: Understand the impact of the professional engineering solutions in
societal and environmental contexts, and demonstrate the knowledge of, and need for sustainable development.
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of the
engineering practice.
9. Individual and team work: Function effectively as an individual, and as a member or leader in diverse
teams, and in multidisciplinary settings.
10. Communication: Communicate effectively on complex engineering activities with the engineering
community and with society at large, such as, being able to comprehend and write effective reports and design
documentation, make effective presentations, and give and receive clear instructions.
11. Project management and finance: Demonstrate knowledge and understanding of the engineering and
management principles and apply these to one’s own work, as a member and leader in a team, to manage
projects and in multidisciplinary environments.
12. Life-long learning: Recognize the need for, and have the preparation and ability to engage in independent
and life-long learning in the broadest context of technological change.
DEPARTMENT OF ELECTRICAL & ELECTRONICS ENGINEERING
Aim :
Theoretical verification:
Theory :
Algorithm/Procedure:
b) Verification of AD-BC=1.
THEORY:- Three phase transmission line can be represented as a circuit with two input
terminals and two output terminals designated as sending end and receiving end respectively as
shown in fig 1.1.
Is Ir
+ +
Vs Vr
ABCD
- -
Vs AVr BI r ................(1)
I s CVr DI r ................(2)
Transmission lines over 100Km length are classified as medium transmission lines, in such lines
capacitance of the system is appreciable and it is distributed over the entire length of the line but
it is assumed that it is lumped in the form of capacitors shunted across the line at one or more
points.
For any transmission line the relation shown in equation (1) and (2) holds good. The constants
A,B,C & D are evaluated in terms of resistance (R) ,reactance (X) and susceptance (Y) for a
medium line
Two common methods known as localized capacitance methods are used to analyze the
parameters which are (1) Nominal-T-method (2) Nominal π method
Ic
Vs V Y Vr 1
Z Z
V Vr I r ; I c YV Y Vr I r
2 2
YZ YZ
so that I s I r I c I r YV r I r I r 1 YVt ..........(3)
2 2
Z Z YZ Z
also Vs V I s Vr I r I r 1 YVt
2 2 2 2
GROUPING WITH THE COMMON TERMS
YZ Z Z YZ 2 YZ YZ
V s Vr 1 I r Vr 1 I r Z 1 ..........(4)
2 2 2 4 2 4
YZ YZ YZ
A 1 ; B Z 1 ; C Y ; D 1
2 4 2
2
YZ YZ
and AD BC 1 YZ 1 1
2 4
Nominal π method:- In π model, it is assumed that one half the total capacitance of each
conductor is shunted at each end between the conductor and neutral at each end of the line, the
arrangement being diagrammatically represented as shown in fig 1.3
Is R X Ir
1 2
Ic1 Ic2
Vs Vr 1
Vs ( NL ) Vr
%regulation 100 …………(7)
Vr
EFFICIENCY:- transmission efficiency is the ratio of receiving end power to the sending end
Pr
power. % 100 ……………..(8)
Ps
ALGORITHM:-
function[r,x,y,len]=medinput();
r=0.036; % LINE RESISTANCE IN OHMS/KM
x=0.3; % LINE REACTANCE IN OHMS/KM
y=4.22e-6; %SHUNT ADMITTANCE IN SIEMENS/KM
len=130; %LINE LENGTH IN KMS
function [ir,vr,pf]=medpow();
sr=270; % APPARENT POWER IN MVA
vr=325; % RECEIVING END VOLATGE IN KV
pf=0.8; % POWER FACTOR
theta=acos(pf);
pr=cos(theta);
qr=sin(theta);
SR=sr*complex(pr,-qr);
vr=complex(vr/sqrt(3),0);
ir=(SR/3)/conj(vr);
RESULTS:
Verification AD-BC=1 , x = 1.0000 + 0.0000
[ABCD] = [ 0.9893 + 0.0013i 4.6800 +39.0000i
-0.0000 + 0.0005i 0.9893 + 0.0013i]
Sending end line to line voltage; vsl_l = 344.9100 KV
Sending end current; is = 421.1843 A
Voltage Regulation; reg = 7.2736 %
PROGRAM (SYMMETRIC T CONFIGURATION)
function[r,x,y,len]=medinput();
r=0.036; %LINE RESISTANCE IN OHMS/KM
x=0.3; %LINE REACTANCE IN OHMS/KM
y=4.22e-6; %SHUNT ADMITTANCE IN SIEMENS/KM
len=130; %LINE LENGTH IN KMS
function [ir,vr,pf]=medpow();
sr=270; %APPARENT POWER IN MVA
vr=325; %RECEIVING END VOLATGE IN KV
pf=0.8; %POWER FACTOR
theta=acos(pf);
pr=cos(theta);
qr=sin(theta);
SR=sr*complex(pr,-qr);
vr=complex(vr/sqrt(3),0);
ir=(SR/3)/conj(vr);
RESULTS:
Verification AD-BC=1 , x = 1.0000 + 0.0000
[ABCD] = [ 0.9893 + 0.0013i 4.6800 +39.0000i
-0.0000 + 0.0005i 0.9893 + 0.0013i]
Sending end line to line voltage; vsl_l = 344.9100 KV
Sending end current; is = 421.1843 A
Voltage Regulation; reg = 7.2736 %
EXAMPLES
b) Verification of AD-BC=1.
THEORY:- Lines of distance above 250 KM are classified as long transmission lines. The
parameters of a line are not lumped but distributed uniformly throughout its length. The fig 1.4
shows one phase and neutral return of a transmission line.
Is Ix+dIx Zdx Ix Ir
Ydx
Vs Vx+dVx Vx Vr
dx X
l
Let dx be an elemental section of the line at a distance x from the receiving end having seires
impedance zdx and a shunt admittance ydx. The rise in voltage to neutral over the elemental
section in the direction of increasing x is dVx.
C
Zc
C
I x 1 γe γx 2 γe γx ..............( 5 )
Zc
z
where Z c ...............................( 6 ) called a s CHARACTERISTIC IMP EDANCE
y
the cons tan ts C1 and C2 may be evaluated by u sin g the end conditions, i.e. when x 0 ,Vx Vr and I x I r
substituting these values in e quation ( 4 ) and ( 5 ) , we get
Vx C1 C2
Ix
1
C1 C2
Zc
ALGORITHM:-
1) Read the line data i.e ,resistance, reactance, shunt admittance, length etc.,
2) Read system data i.e, receiving end power in MVA, receiving end voltage in KV and
power factor.
3) Compute receiving end current from the system data available.
4) Formulate the expressions of A,B,C,D parameters of a line obtained using rigorous
solution method and verify AD-BC=1.
5) Represent the ABCD parameters in matrix form.
6) Determine sending end voltage and current by multiplying ABCD matrix with a column
vector containing receiving end voltage and current values.
7) To formulate sending end voltage at no load divide sending voltage obtained in step 6 by
magnitude of A.
8) Determine voltage regulation using the equation.
9) Determine power at sending end and receiving end using relevant expression and
calculate transmission efficiency using equation.
1) A three phase 50Hz transmission line is 400Km long. The voltage at the receiving end is
242 KV line to line. The line parameters are r=0.125Ω/Km, x=0.4 Ω/Km and y=2.8x10 -6
mho/Km. write a program to determine sending end voltage, current, voltage regulation
and transmission efficiency.
2) A 50 Hz transmission line 280 Km long has total series impedance of 0.125+j 0.5 Ω/Km
and a shunt admittance of 4.034x10 -6 mho/Km. power at receiving end is 44.4
MVA,receiving end voltage is 220KV and power factor of 0.9 lagging.
Determine A,B,C,D parameters, verify AD-BC=1,determine sending end voltage,current
,voltage regulation and transmission efficiency .
EXPERIMENT NO. 2
AIM:- To obtain power angle characteristics of a non salient pole and salient
THEORY:- The synchronous machine is the most important element of a power system. It
converts mechanical power into electrical form and feeds into the power network or, in case of a
motor it draws electrical power from the network and converts into the mechanical form.
Synchronous machines always run at constant speed known as synchronous speed given by
120 f
Ns R.P.M .
p
Non salient pole type or smooth cylindrical type synchronous machine rotors are used in very
high speed alternators driven by steam turbines. They are of smaller diameter and longer axial
length, synchronous speed ranges from 1500 R.P.M to 3000 R.P.M. in the simplified circuit
model of non salient pole synchronous machine armature resistance Ra is invariably neglected
and Xs=Xa+Xl is called as synchronous reactance of the machine. Expression for induced emf is
given by E g Vt I a X s fig 4.2 shows the corresponding Phasor diagram of the machine
working as generator, the field induced emf Eg leads the terminal voltage Vt by the load (torque)
angle ∂, this is the condition of active power to flow out of the generator. The magnitude of
power delivered depends upon sin∂.
P Vt I a cos ……..(1)
Ef Ia X s Ef
I a cos sin ....(2)
sin 90 0
or
sin Xs
E f Vt
P sin ...(3)
Xs
The plot of P versus ∂ is as shown in fig 3.3 known as power angle curve. The maximum power
can be delivered at ∂=900.
A salient pole synchronous machine is distinguished fro a cylindrical pole rotor machine by
constructional features of field poles which project with a large interpolar air gap. This type of
construction is commonly employed in machines coupled to hydroelectric turbines which are
slow speed ones. Salient pole machine analysis is made through the two reaction theory.In a
salient pole machine air gap is non uniform along the rotor periphery. It is least along the axis of
main poles called direct axis and is largest along the axis of the interpolar region called
quadrature axis. Salient pole machine offers different reactances to the flow of direct axis
component of armature current (Id) known as direct axis reactance (Xd) and quadrature axis
component of armature current (Iq) known as quadrature axis reactance (Xq) its circuit model
cannot be drawn. The Phasor diagram of salient pole generator is as shown below in fig 2.2.
Vt E g Vt
2
X Xq
P sin sin 2 ……..(4)
d
Xd 2* Xd * Xq
The first term is the same as for non salient pole machine with Xs=Xd and constitutes major part
of the power transfer. The second term is quite small about 10 -20% compared to the first term
and is known as reluctance power.
The plot of P versus ∂ is as shown in fig 3.4 it is noticed that maximum power output occurs at
∂<900.
ALGORITHM:-
1) Read the values of terminal voltage, power input to the machine, armature resistance,
synchronous reactance (all in per unit) and power factor.
PowerInput
2) Evaluate the armature current using the relation I a
Terminal voltage * pf
E g Vt
5) Determine Pm of equation (3).
Xs
6) Define load angle ∂ and also define its range using suitable mat lab syntax. Convert each
of the angle values from radians to degrees.
7) Multiply the expression given in step 5 with sin∂ to obtain power delivered by the
machine at different load angles.
1) Read the values of terminal voltage, induced emf, power input to the machine, armature
resistance, synchronous reactance (Xd and Xq) (all in per unit) and power factor.
Vt E g Vt
2
X Xq
2) Determine the terms Pm1 and Pm 2
d
of equation 4.
Xd 2* Xd * Xq
3) Define load angle ∂ and also define its range using suitable mat lab syntax. Convert
each of the angle values from radians to degrees.
4) Multiply the term Pm1 with sin∂ and Pm2 with sin(2∂).
5) Using plot and hold commands obtain the characteristics of (Pm1 v/s ∂),
AIM: To write a program to obtain swing curve of a single machine connected to infinite bus,
under 3 phase fault on one of two lines and to determine
THEORY:
PROGRAM
function[del,t]=swing_prog();
w(1)=0.0;
V=1.0;
M=H/(pi*50);
pmaxbf=E*V/xpre;
pmaxdf=E*V/xdur;
pmaxaf=E*V/xpost;
pm=MW/MVA;
del(1)=asin(pm/pmaxbf)
del_t=0.05;
t=0.0;
i=1;
x(i)=t;
while(t<tmax)
if(t<=tclear)
pmax=pmaxdf
end
if(t>tclear)
pmax=pmaxaf
end
D1(i+1)= w(i)
D2(i+1)=(pm-pmax*sin(del(i)))/M
delp(i+1)=del(i)+D1(i+1)*del_t
wp(i+1)=w(i)+D2(i+1)*del_t;
D1P(i+1)=wp(i+1)
D2P(i+1)=(pm-pmax*sin(delp(i+1)))/M
del(i+1)=del(i)+(D1(i+1)+D1P(i+1))*del_t/2
w(i+1)=w(i)+ (D2(i+1)+D2P(i+1))*del_t/2
t=t+del_t;
i=i+1;
x(i)=t
end
del=del.*180/pi
plot(x,del)
function[H,xpre,xdur,xpost,E,MVA,MW,tmax,tclear]=SWING_IN();
H=5.2;
xpre=0.7;
xdur=1.9;
xpost=0.9;
E=1.2;
MVA=100;
MW=80;
tclear=0.125;
tmax=0.5;
RESULT:
b) Program to form Y bus of a given power system by singular transformation (with and
without mutual coupling)
THEORY:- A power system comprises several buses which are interconnected by means of
transmission lines. Power is injected into a bus from generators, while the loads are tapped from
it. The network model of a power system can be obtained by representing a short line by a series
impedance and long line by nominal π model.
Node voltage method is most suitable method for many power system analyses and since nodal
solution is based upon Kirchhoff’s current law, line impedances are converted to admittance
values. Thus for a n-bus system, the node voltage equation in matrix form is given by
Or Ibus=Ybus*Vbus………………………………..(2)
Where Ibus is the vector of the injected bus currents i.e., external current sources. The current is
positive when flowing towards the bus, and it is negative if flowing away from the bus. Vbus is
the vector of bus voltages measured from the reference node. Ybus is known as the bus
admittance matrix.
The diagonal element of each node is the sum of admittances connected to it. This element is
known as self admittance or driving point admittance, given by
n
Yii y i j , j i ………(1)
j 0
The off diagonal element is equal to the negative of the admittance between the nodes. It is also
known as mutual admittance or transfer admittance, given by
Inspection of the bus admittance matrix reveals that the matrix is symmetric along the
leading diagonal. In a power system each bus is connected to only a few nearby buses,
therefore many off diagonal elements are zero such matrix is called sparse and efficient
numerical techniques can be applied to compute its inverse.
ALGORITHM:-
1) Read the power system data i.e, line impedance, half line charging admittance, off
nominal turns ratio etc.,
2) Evaluate the number of nodes (buses-n) and number of branches (nbr) of a system from
the input data available suitably.
4) Form a column matrix containing line impedance values between the two nodes i&j and
invert each element of that matrix to get admittance value (yij).
5) Select a branch connected between two nodes named as starting bus & ending bus
6) Evaluate diagonal element of YBUS which is the sum of admittances connected to it. This
element is known as self admittance or driving point admittance, given by
n
Yii y i j , j i
j 0
7) Evaluate the off diagonal element which is equal to the negative of the admittance
between the nodes. It is also known as mutual admittance or transfer admittance, given
by Yij Y ji yij
1) Read the power system data i.e, line impedance, half line charging admittance, off
nominal turns ratio etc.,
2) Evaluate the number of nodes (buses-n) and number of branches (nl) of a system from the
input data available suitably.
3) Form primitive impedance matrix of the order (nlxnl) from the line data available in the
input file and arrange the values as diagonal elements of the matrix using suitable
command
4) Initialize the bus incidence matrix (A) of the order (nlxn)
5) Evaluate the elements of the bus incidence matrix aij as per the following rules:
aij= 1 if the ith element is incident to and oriented away from the jth node.
=-1 if the ith element is incident to and oriented towards the jth node.
6) Invert the primitive impedance matrix to obtain primitive admittance matrix (yprim).
RESULT
YBUS =
2) Call a function to read the power system data i.e, line impedance, half line charging
admittance, off nominal turns ratio etc.,
3) Evaluate the number of nodes (buses-n) and number of branches (nl) of a system from the
input data available suitably.
4) Form primitive impedance matrix of the order (nlxnl) from the line data available in the
input file and arrange the values as diagonal elements of the matrix using suitable
command.
5) Identify the mutually coupled branches and reflect the mutual impedance values suitably
in the primitive impedance matrix.
7) Evaluate the elements of the bus incidence matrix aij as per the following rules:
aij= 1 if the ith element is incident to and oriented away from the jth node.
=-1 if the ith element is incident to and oriented towards the jth node.
8) Invert the primitive impedance matrix to obtain primitive admittance matrix (yprim).
[mut_data]=[ 1 4 0.2;
2 1 0.1;];
RESULT
Ybus =
0 + 0.2083i
0 + 5.0000i 0 - 8.0208i
EXAMPLES
1) The table 4.1 shown below describes a power system. Consider bus 6 as reference and the
linear graph of the system is shown in figure 4.1. Write a suitable program to determine
the branch to node incidence matrix and Y bus by singular transformation. Line resistance
and half line charging admittance are neglected.
Table 4.1
Bus (from-to) Line reactance (p.u)
1-2 j 0.4
1-3 j 0.5
1-6 j 1.0
2-3 j 0.25
2-5 j 0.2
3-4 j 0.125
4-5 j 0.5
5-6 j1.25
2) If mutual coupling exists between branches connected between the buses 1and 3 & 2 and
3 with mutual impedance j0.15 p.u, modify the program to form Y bus considering the
mutual coupling between the branches.
3) The figure 4.1 shown below is a one line diagram of a simple four bus system and the
table 4.2 gives the line impedances identified by the buses on which these terminate. The
shunt admittance at all the buses is assumed negligible.
1 2
3 4
Table 4.2
EXPERIMENT NO. 5
THEORY:- The bus impedance matrix by the building algorithm is formulated and is employed
for the systematic computation of bus voltages and line currents during the fault. The bus
impedance matrix can be built up starting with a single element and the process is continued until
all the nodes and elements are included. Assume that ZBUS exists for a partial network having m
buses and a reference bus 0 as shown in Fig 5.1
1
2
p
PARTIAL
NETWORK q
m
Z bus
m
0 reference
For an n bus system, m buses are included in the network and ZBUS is of order mXm. Only one
element is added at a time from the remaining portion of the network until all elements are
added. The added element may be a branch or a link.
If a new branch is added between a new node q and the reference node 0 having impedance of zq0
to the existing matrix of order (mXm), modified matrix will be of the order (m+1)X(m+1), the
elements of which are as shown in the matrix below.
Z 11 ........Z 1m 0
Z new
bus 0..........Z mm 0
0.......... 0 Z q 0
If a new branch is added between a new node q and the existing node p having impedance Zpq to
the existing matrix of order (mXm), modified matrix will be of order (m+1)X(m+1), the elements
of which are as shown in the matrix below.
Z11........Z1 p ......Z1m Z 1 p
Z p1 .......Z pp ......Z pm Z pp
new
Z bus
Z m1 .......Z mp ......Z mm Z mp
Z p1 .......Z pp ......Z pm Z pp z pq
When a link with impedance Zpq is added between two existing nodes p and q, order of the
matrix is not changed, but existing matrix is augmented with a new row and new column as
shown
Where Z ll z pq Z pp Z qq 2 Z pq
Similarly when a link is added between existing bus p and reference bus 0, again order of the
matrix is not changed, but existing matrix is augmented with a new row and column as shown
Z 11 ................Z 1 p ....................................... Z 1m Z1 p
Z p1 .................Z pp ...................................... Z pm -Z pp
Z ..................Z ............................... ...... Z -Z qp
where Z ll z pq Z pp
new q1 qp qm
Z bus
Z m1 .................Z mp .....................................Z mm -Z mp
Z p1 ............ Z pp ................................. Z pm Zl l
The new row and column is eliminated using the relation
Z 1q Z 1 p
ZZ T Z pq Z pp
new
Z bus Z bus
old
where Z when a link is added between two
Z ll Z qq Z qp
Z mq Z mp
Z 1 p
Z pp
existing buses and Z when a link is added between existing bus and reference.
Z qp
Z mp
ALGORITHM
4. Check for addition of a new branch, if the added element is a new branch, then formulate
the values of new row and new column elements and also the value of diagonal element
using suitable formulae.
5. Append the existing ZBUS with the evaluated values of new row, new column and
diagonal element.
6. Check for addition of a new link between two buses, if the added element is a link, then
formulate the values of new row and new column elements and also the value of diagonal
element using suitable formulae.
ZZ T
new
7. Formulate the expression Z bus Z bus
old
to obtain modified bus impedance
Z ll
matrix.
PROGRAM
function [zbus]=zbuild();
[data]=input_data();
n=max(max(data(:,1)),max(data(:,2)))
nbr=length(data(:,1));
zbus=zeros(1,1)
for i=1:1:nbr
if (data(i,4)==1)
sb=data(i,1)
eb=data(i,2)
if (sb>eb)
temp=sb
sb=eb
eb=temp
end
zncol=zbus(:,sb)
znrow=zbus(sb,:)
zn_dia=zbus(sb,sb)+data(i,3)
zbus=[zbus zncol;znrow zn_dia]
end
if (data(i,4)==2)
sb=data(i,1)
eb=data(i,2)
if (sb>eb)
temp=sb
sb=eb
eb=temp
end
z ncol=zbus(:,sb)-zbus(:,eb)
znrow=zbus(sb,:)-zbus(eb,:)
zn_dia=zbus(sb,sb)+zbus(eb,eb)-2*zbus(sb,eb)+data(i,3)
zbus=[zbus]-[(zncol*znrow)/zn_dia]
end
end
zbus=zbus(2:n,2:n)
ybus=inv(zbus)
%INPUT FUNCTION:
function [data] = input_data();
[data]= [ 1 2 0.2 1;
3 1 0.4 1;
2 4 0.4 1;
2 3 0.8 2;
4 3 0.4 2;];
RESULTS:
ZBUS=
AIM:-.Write a program to determine line losses, line flows, bus currents for a
THEORY:- Computation of line flows is the last step in the load flow analysis, after calculating
the voltages at different buses by iterative technique the power flows on the various lines of the
network are determined. Consider the line connecting buses i&j as shown in figure 6.1
yij0 yji0
Figure 6.1 π representation of a line and transformers connected between two buses
The line and transformers at each end can be represented by a circuit with series admittance y ij
and two shunt admittances yij0 and yji0. The current fed by the bus I into the line can be expressed
as
Similarly the current fed by the bus J into the line is given by
The power fed into the line from bus i is S ij Vi I ij Vi Vi V j yij ViVi yij 0
* * *
* * *
…………………(3)
Similarly, the power fed into the line from bus j is
S ji V j I *ji V j V j* Vi* yij* V jV j* y *ji0 ……………(4)
The power loss in the (i-j)th line which is the sum of the power flows determined from the above
equations and total transmission loss can be evaluated by summing all the line flows for all
values of i,j. The slack bus power can also be found by summing the flows on the lines
terminating at the slack bus.
ALGORITHM:-
9) Form the bus admittance matrix either by inspection method or singular transformation.
13) Determine the current injected in transmission line connected between two nodes i&j as
given by equation (1).
14) Similarly determine the current injected in transmission line connected between two
nodes j&i as given by equation (2).
15) Determine the power flow in the line connected between nodes i & j by multiplying
voltage at bus i with conjugate of current determined in step 6.
16) Similarly evaluate the power flow in the line from node j to i given by product of voltage
at bus j and conjugate of current determined in step 7.
17) Determine the power loss in the (i-j)th line which is the sum of the power flows
determined in steps 8 and 9.
18) Compute total transmission loss by summing all the line flows i.e, Sij+Sji for all i,j.
PROGRAM FOR LINE FLOWS AND LINE LOSSES
% INPUT FUNCTION:
function [z_data,vol_data] = pcal_input();
% Sb eb r x b a
z_data=[ 1 2 0.02 0.08 0.01 1;
2 3 0.02 0.08 0.01 1;
3 1 0.02 0.08 0.01 1;];
Total power flow from ith to jth bus; Sij = -82.6051 +22.4688i MVA
Total power flow from jth to ith bus; Sji = 83.9694 -19.1748i MVA
Power loss in each line = [ 0.6849 + 0.4893i 1.0638 + 2.0051i 1.3643 + 3.2941i] MVA
Total power loss in MVA; Pl = 3.1130 + 5.7884i MVA
Total power loss in MW; P2= 6.5724 MW
EXAMPLES
1) Figure 6.2 shows one line diagram of a simple three bus system with generation at bus 1.
Line impedances are marked in per unit on a 100MVA base. Line resistances and line
charging susceptances are neglected. Voltage at bus 1 is V1=1∟00 p.u and after using
iterative technique voltages at bus 2 and 3 are found to be V2=0.9-j0.1 p.u and V3=0.95-
j0.05 p.u. write a program to determine line flows and line losses in each of the
transmission line and total loss of the power system.
j0.033
V1=1∟00 400MW
1 2 320MVAR
j0.0125 j 0.05
3
300MW 270 MVAR
2) The details of a three bus system are given in the table below. Line impedances are
marked in per unit on a 100MVA base and line charging susceptances are neglected.
Line (Bus to Bus) Line impedance in p.u.
1-2 0.02+j0.04
2-3 0.0125+j0.025
1-3 0.01+j0.03
Voltage profile at the nodes are as given below
Bus Voltage in p.u
V1=1.05∟00
V2=0.9818∟-3.5030
V3=1.0012∟-2.8620
Write a program to evaluate the line flows and line losses.
EXPERIMENTS USING MIPOWER SIMUALTION PACKAGE
EXPERIMENT NO.7
AIM: To form a Jacobian matrix for a given power system in polar coordinates using MI-power package
THEORY: Load flow also known as power flow is necessary for planning, economic scheduling
and control of an existing power system as well as for its future expansion. Load flow problem
consists of determining the magnitudes and phase angles of voltages at each bus and active and
reactive power flow in each line. In solving a power flow problem, the system is assumed to be
operating under balanced conditions and a single phase model is used. Practical considerations
allow a power system analyst to fix a priori of two variables at each bus. Depending upon which
two variables are specified a priori, the buses are classified into three categories
SLACK BUS:- Also known as swing bus is taken as reference bus where the magnitude of
voltage |V| and phase angle ∂ of the voltage are specified. This bus makes up the difference
between the scheduled loads and generated power that are caused by the losses in the network,
because real and reactive powers cannot be fixed at all the buses as the net complex power flow
into the network is not known in advance, the system power loss being unknown till the load
flow study is complete. It is therefore necessary to have one bus so that it supplies the difference
in the total system load plus losses and sum of the complex powers specified at the remaining
buses.
P-Q BUS/LOAD BUS:- At these buses the active (P) and reactive (Q) powers are specified. The
magnitude and the phase angle of the bus voltages are unknown.
REGULATED BUSES/P-V BUS:- These are also known as generator buses and voltage
controlled buses. At these buses, the real power and voltage magnitude are specified i.e, P and
|V|. The phase angles of the voltages and reactive power are to be determined. The limits on the
value of the reactive power are also specified.
The complex power injected by the source into the ith bus of a power system is
S i Pi jQi Vi I i* ; i 1,2,.., n ……..(1)
The mathematical formulation of the above equation results in a system of algebraic non linear
equations involving product form and sine, cosine terms and therefore explicit solution is not
possible. Solution can only be obtained by iterative techniques.
With the line and shunt admittance data stored YBUS is assembled. Iterative computation of bus
voltages is carried out by making initial assumption, it is normal practice to use flat voltage start
i.e, all bus voltages except slack bus are set equal to 1∟00 p.u. Now for the (r+1)th iteration, the
voltage equation is given by
n
Vi r 1 i Yij V jr ...i 2,3,..., n …………………(2)
1 P jQ i
Yii Vi
r *
j 1
i
The iterative process is continued till the change in magnitude of bus voltage Vi r 1 between
two consecutive iterations is less than a certain tolerance for all bus voltages i.e. Vi r 1 =
convergence can be speeded up by defining acceleration factor(α). For the ith bus, the accelerated
value of voltage at the (r+1)th iteration is given by
Vi r 1 (accelera ted) Vi(r) α Vi r 1 Vi r ……………………(4)
PROBLEM STATEMENT:
A single line diagram of a power system is as shown in fig 7.1.The magnitude of the voltage at slack
bus , scheduled real and reactive power demand for PQ buses and line impedances in p.u are indicated
in the diagram on a 100MVA base. Line charging susceptances are ignored. Determine the jacobian
matrix for the power system.
0.02+j0.04 256.6MW
1 2 110.2 MVAR
V1=1.05∟00 p.u
0.01+j0.03 0.0125+j0.025
138.6 MW 45.2MVAR
PROCEDURE:
1) Open the tool box in MIPOWER package and select load flow program option as shown below
2) Create a new file, save in MIPOWER folder and enter power system details as shown
4) Enter the ratings of a generator in generator library for slack bus as shown and save
5) For the given power system, there are no transformers between the nodes, hence it will be
reflected as blank space in transformer library as shown
6) Enter the details of a transmission line and save in library as shown
7) Enter the real and reactive power details at PQ buses and save as shown
8) Shunt element library shows blank entries as there are no half line charging susceptances
9) To obtain results select study info library and choose newton raphson method and furnish the
details of slack bus,real and reactive power tolerance and number of iterations as shown and
select save execute option.
LOAD FLOW ANALYSIS USING GAUSS SIEDEL METHOD, NR METHOD AND FAST
DECOUPLED METHOD FOR BOTH PQ AND PV BUSES.
AIM: To obtain bus voltages at load bus (PQ buses), reactive power and bus voltage angle (PV buses) by
load flow analysis using
THEORY:
Load flow also known as power flow is necessary for planning, economic scheduling and control
of an existing power system as well as for its future expansion. Load flow problem consists of
determining the magnitudes and phase angles of voltages at each bus and active and reactive
power flow in each line. In solving a power flow problem, the system is assumed to be operating
under balanced conditions and a single phase model is used. Practical considerations allow a
power system analyst to fix a priori of two variables at each bus. Depending upon which two
variables are specified a priori, the buses are classified into three categories
SLACK BUS:- Also known as swing bus is taken as reference bus where the magnitude of
voltage |V| and phase angle ∂ of the voltage are specified. This bus makes up the difference
between the scheduled loads and generated power that are caused by the losses in the network,
because real and reactive powers cannot be fixed at all the buses as the net complex power flow
into the network is not known in advance, the system power loss being unknown till the load
flow study is complete. It is therefore necessary to have one bus so that it supplies the difference
in the total system load plus losses and sum of the complex powers specified at the remaining
buses.
P-Q BUS/LOAD BUS:- At these buses the active (P) and reactive (Q) powers are specified. The
magnitude and the phase angle of the bus voltages are unknown.
REGULATED BUSES/P-V BUS:- These are also known as generator buses and voltage
controlled buses. At these buses, the real power and voltage magnitude are specified i.e, P and
|V|. The phase angles of the voltages and reactive power are to be determined. The limits on the
value of the reactive power are also specified.
PROBLEM STATEMENT :
One line diagram of a sample three bus system is as shown below in fig 8.1.The voltage magnitude at
bus1 1.05 p.u and at bus 3 PV bus is 1.04 p.u. the real power at PV bus is 200MW , real and reactive
power at PQ bus is 400MW and 250 MVAR. The line impedances in p.u on a 100MVA base is indicated
in the line diagram and line charging susceptances is neglected. Obtain the power flow solution by (i)
Gauss Siedel method (ii) Newton raphson method (iii) fast decoupled load flow method.
1 2 400 MW
3 V3=1.04 p.u
200 MW
PROCEDURE:
1) Open the tool box in MIPOWER package and select load flow program option as shown below
2) Create a new file, save in MIPOWER folder and enter power system details as shown
9) Shunt element library shows blank entries as there are no half line charging susceptances
10) To obtain results select study info library and choose Gauss seidel/Newton Raphson/FDLF
method and furnish the details of slack bus,real and reactive power tolerance and number of
iterations as shown and select save execute option.
RESULTS:
(P.U) (DEGREE)
AIM: To evaluate fault currents and voltages for a given power system for
𝐼𝑎0 1 1 1 𝐼𝑎
1
⌊𝐼𝑎1 ⌋ =
3
⌈1 𝑎 𝑎2 ⌉ ⌊0⌋
𝐼𝑎2 1 𝑎2 𝑎 0
Thus we obtain
𝐼𝑎
𝐼𝑎0 = 𝐼𝑎1 = 𝐼𝑎2 =
3
Thus in an SLG fault, all the three sequence currents of phase a are equal and the sum of the
sequence voltages is equal to 3 𝐼𝑎1 𝑍𝐹 . connecting the sequenc networks in series through impedance 3Z F
satisfies the above equations
𝐼𝑎0 1 1 1 0
1
⌊𝐼𝑎1 ⌋ =
3
⌈1 𝑎 𝑎2 ⌉ ⌊ 𝐼𝑏 ⌋
𝐼𝑎2 1 𝑎2 𝑎 −𝐼𝑏
𝐼𝑎 = 0
𝑉𝑏 = 𝑉𝑐
𝑉𝑏 = 𝑍𝐹 (𝐼𝑏 + 𝐼𝑐 ) = 3 𝑍𝐹 𝐼𝑎0
𝑉𝑎0 1 1 1 𝑉𝑎
1
⌊𝑉𝑎1 ⌋ =
3
⌈1 𝑎 𝑎2 ⌉ ⌊𝑉𝑏 ⌋
𝑉𝑎2 1 𝑎2 𝑎 𝑉𝑐
1
And 𝑉𝑎1 = 𝑉𝑎2 = ⌊𝑉𝑎 + (𝑎 + 𝑎2 ) 𝑉𝑏 ⌋
3
1
𝑉𝑎0 = ⌊𝑉𝑎 + 2 𝑉𝑏 ⌋ = 3 𝑍𝐹 𝐼𝑎0 + 𝑉𝑎1 = -𝐼𝑎0 𝑍0
3
𝐸𝑎
𝐼𝑎1 = 𝑍1 + (𝑍2 𝑝𝑎𝑟𝑎𝑙𝑙𝑒𝑙 𝑍0 +3 𝑍𝐹 )
𝑉𝑎1 = 𝐸𝑎 − 𝐼𝑎1 𝑍1
𝑉𝑎2
𝐼𝑎2 = −
𝑍2
PROBLEM STATEMENT:
Fig 9.1 shows a,3 phase generator supplying two motors over a transmission line with transformer at both
ends. The following are the details of the power system components
GENERATOR: 25MVA, 11KV, 20% sub transient reactance, zero sequence reactance of 0.06 p.u
with neutral grounded star connection having current limiting reactance of 2.5Ω
MOTOR 1: 15MVA, 10KV with 15% sub transient reactance, zero sequence reactance of 0.06 p.u
MOTOR 2: 7.5 MVA, 10KV with 15% sub transient reactance, zero sequence reactance of 0.06 p.u
with neutral grounded star connection having current limiting reactance of 2.5Ω.
Draw the positive sequence, negative sequence and zero sequence networks of the system and simulate
the system to obtain fault currents and voltages at bus no .3 for an LG and LLG fault.
SOLUTION:
121
1) Transmission line voltage base = 11 123.2 KV
10.8
10.8
2) Motor voltage base = 123.2 11 KV
121
2
Base MVA Base KV(old)
Z in p.u
(new)
we know that Z in p.u (new) (old)
Base MVA Base KV
(old) (new)
2
25 10.8
3) Transformer reactance = 0.1 0.0805 p.u
30 11
2
25 10
4) Motor 1 reactance = 0.25 0.345 p.u
15 11
2
25 10
5) Motor 2 reactance = 0.25 0.69 p.u
7.5 11
2
25 11
6) Generator reactance = 0.2 0.2 p.u
25 11
2
25 11
7) Generator zero sequence reactance= 0.06 0.06 p.u
25 11
2
25 10.8
8) Transformer zero sequence reactances= 0.1 0.0805 p.u
30 11
2
25 10
9) Motor 1 zero sequence reactance = 0.06 0.082 p.u
15 11
2
25 10
10) Motor 2 zero sequence reactance = 0.06 0.164 p.u
7.5 11
Base MVA 25
11) Line reactance in p.u= Re actance in 2
100 0.164 p.u
(Base KV) (123.2) 2
Base MVA 25
= Re actance in 2
2.5 0.516p.u
(Base KV) (11) 2
= 3 0.516 1.548p.u
25
14) Zero sequence reactance of line = 300 0.494 p.u
(123.2) 2
PROCEDURE
1) Create a new file to simulate short circuit condition by selecting short circuit study in tool bar
and enter the power system details as shown
2) SEnter the details of the buses of a given power system and save as shown
3) Enter the details of generator and loads. In this tool box motor details have to be entered in
generator library only, hence for the given example generator is modeled as generator 1, motor 1
and motor 2 is considered as generator 2 and 3 respectively.
4) In transformer library, enter the relevant details along with primary and secondary connections as
shown
RESULTS:
1) LG FAULT
Positive
1. 125∟-89.30 Ia 374∟-89.30
sequence
Negative
2. 125∟-89.30 Ib 0
sequence
2) LLG FAULT
Positive
1. 364∟-89.38 Ia 0∟-90.00
sequence
Negative
2. 276∟90.69 Ib 570∟167.26
sequence
AIM: To determine economic schedule of power generation for the given fuel cost of generating
units including generation limits and transmission line losses.
𝑃𝐿 =
m n
𝑃𝐺𝑚 𝐵𝑚𝑛 𝑃𝐺𝑛 + n
𝑃𝐺𝑛 𝐵𝑛𝑜 + 𝐵𝑜𝑜 -------------(2)
Where Bmn, Bno, Boo called loss coefficients, depend on the load composition. The assumption here is that
the load varies linearly between maximum and minimum values.
A simpler expression is
𝑃𝐿 = m n
𝑃𝐺𝑚 𝐵𝑚𝑛 𝑃𝐺𝑛 -----------------(3)
The expression assumes that all load currents vary together as a constant complex fraction f the total load
current.
Average set of loss coefficients (or B coefficients) may be used over the complete daily cycle in the
coordination of incremental production costs and incremental transmission losses.
In general Bmn = Bnm. And equation (3) can be expanded for a two plant system as
2 2
𝑃𝐿 = 𝐵11 𝑃𝐺1 + 2 𝐵12 𝑃𝐺1 𝑃𝐺2 + 𝐵22 𝑃𝐺2
PROBLEM STATEMENT:
The fuel cost in Rs/Hr of a three thermal plants of a power system are given below
Obtain the total generation cost and optimal dispatch of generation on base MVA of
100, given ƛ=7.767785 Rs/MWh and total demand of 150 MW. The loss coefficient
in pu-1 is given below
PROCEDURE:
3) Enter the cost function details of each generating unit by selecting fuel cost
option, if incremental fuel cost data is given in problem select incremental fuel
cost option.
4) Enter B coefficient values in respective drop down box and save after each entry,
also select PU option and enter the initial value of ƛ. Save the entire tool box,
select execute and view the results
RESULTS:
AIM:- Write a program to perform to load flow analysis of a power system consisting only P-Q
buses by gauss-seidel method.
THEORY:- Load flow also known as power flow is necessary for planning, economic
scheduling and control of an existing power system as well as for its future expansion. Load flow
problem consists of determining the magnitudes and phase angles of voltages at each bus and
active and reactive power flow in each line. In solving a power flow problem, the system is
assumed to be operating under balanced conditions and a single phase model is used. Practical
considerations allow a power system analyst to fix a priori of two variables at each bus.
Depending upon which two variables are specified a priori, the buses are classified into three
categories
SLACK BUS:- Also known as swing bus is taken as reference bus where the magnitude of
voltage |V| and phase angle ∂ of the voltage are specified. This bus makes up the difference
between the scheduled loads and generated power that are caused by the losses in the network,
because real and reactive powers cannot be fixed at all the buses as the net complex power flow
into the network is not known in advance, the system power loss being unknown till the load
flow study is complete. It is therefore necessary to have one bus so that it supplies the difference
in the total system load plus losses and sum of the complex powers specified at the remaining
buses.
P-Q BUS/LOAD BUS:- At these buses the active (P) and reactive (Q) powers are specified. The
magnitude and the phase angle of the bus voltages are unknown.
REGULATED BUSES/P-V BUS:- These are also known as generator buses and voltage
controlled buses. At these buses, the real power and voltage magnitude are specified i.e, P and
|V|. The phase angles of the voltages and reactive power are to be determined. The limits on the
value of the reactive power are also specified.
The complex power injected by the source into the ith bus of a power system is
With the line and shunt admittance data stored YBUS is assembled. Iterative computation of bus
voltages is carried out by making initial assumption, it is normal practice to use flat voltage start
i.e, all bus voltages except slack bus are set equal to 1∟00 p.u. Now for the (r+1)th iteration, the
voltage equation is given by
1 Pi jQi n r
Vi r 1
Yij V j ...i 2,3,..., n …………………(2)
Yii Vi r *
j 1
i
The iterative process is continued till the change in magnitude of bus voltage Vi r 1 between
two consecutive iterations is less than a certain tolerance for all bus voltages i.e. Vi r 1 =
convergence can be speeded up by defining acceleration factor(α). For the ith bus, the accelerated
value of voltage at the (r+1)th iteration is given by
Vi r 1 (accelera ted) Vi(r) α Vi r 1 Vi r ……………………(4)
ALGORITHM:-
4) Evaluate the difference between generated real power and real power demand, also
the difference in reactive power generation and demand at each bus.
5) Find the complex power at each bus.
6) Read the initial values of bus voltages and express as complex number.
7) Start the first iteration to obtain the voltage at each p-q bus with initial assumption of
flat start voltage at all p-q buses except slack bus.
8) Assign the voltage value at the end of rth iteration to a variable ‘x’.
9) Check for the condition j=1 to n and j not equal to i and formulate the term
n
Y
j 1
ij V jr .
i
Pi jQi n
and subtract it with Yij V jr .
V
10) Evaluate the term r *
i j 1
i
11) Divide the resultant expression with Yii to get the new value of voltage at a particular
bus.
12) Repeat the steps 9,10 and 11 for all other p-q buses.
13) To check for the convergence assign the evaluated voltage after (r+1)th iteration to a
variable ‘y’ and obtain the difference between absolute values of voltages at the end
of (r+1)th and rth iteration.
14) If that difference is less than the predefined constant say 0.00001 stop the iteration
and print the values of the voltages at all the buses, otherwise continue with the
iterations until convergence is reached.
PROGRAM
function[v]=GUASS_SEIDEL_LFA();
[zldata,busdata]=load_data();
[ybus]=formybus1(zldata);
bmva=100;
max_iter=10;
n=length(busdata(:,1))
for i=1:n
p(i)=((busdata(i,5)-busdata(i,7))/bmva);
q(i)=((busdata(i,6)-busdata(i,8))/bmva);
s(i)=complex(p(i),-q(i));
v(i)=complex(busdata(i,3),busdata(i,4));
end
it=0;
conver=1;
while (it<max_iter&conver)
x=v;
for i=2:n
sum(i)=0;
for j=1:n
if(i~=j)
sum(i)=sum(i)+(ybus(i,j)*v(j));
end
end
v(i)=((s(i)/conj(v(i)))-sum(i));
v(i)=(v(i)/ybus(i,i));
end
it=it+1
Y=v;
z=abs( Y-x);
z=max(z);
if(z<0.0001)
conver=0
end
v
end
end
%formation of the ybus
function[ybus]=formybus1(zldata);
n=max(max(zldata(:,1)),max(zldata(:,2)));
r=[zldata(:,3)];
x=[zldata(:,4)];
z=complex(r,x);
y=1./z;
b=complex(0,zldata(:,5));
a=[zldata(:,6)];
nbr=length(r);
ybus=zeros(n,n);
for i=1:nbr
sb=zldata(i,1);
eb=zldata(i,2);
ybus(sb,eb)=ybus(sb,eb)-y(i)/a(i);
ybus(eb,sb)=ybus(sb,eb);
ybus(sb,sb)=ybus(sb,sb)+(y(i)/a(i)*a(i))+b(i);
ybus(eb,eb)=ybus(eb,eb)+y(i)+b(i);
end
ybus
end
%INPUT DATA
function [zldata,busdata]=load_data();
% sb eb r x b/2 a
[zldata]= [ 1 2 0.02 0.04 0 1;
2 3 0.0125 0.025 0 1;
1 3 0.01 0.03 0 1;];
% sl. bus vr vi pg qg pd qd
% type
[busdata]=[ 1 1 1.05 0 0 0 0 0;
2 3 1.00 0 0 0 256.6 110.2;
3 3 1.00 0 0 0 138.6 45.2;];
end
%bus type : 1--> SLACK BUS, 2--> PV BUS, 3--> PQ BUS
RESULTS:.
ybus = [ 20.0000 -50.0000i -10.0000 +20.0000i -10.0000 +30.0000i
-10.0000 +20.0000i 26.0000 -52.0000i -16.0000 +32.0000i
-10.0000 +30.0000i -16.0000 +32.0000i 26.0000 -62.0000i]