Professional Documents
Culture Documents
PSS Lab Manual Print
PSS Lab Manual Print
COLLEGE OF
ENGINEERINGMANDYA – 571
401, KARNATAKA
DEPARTMENT OF ELECTRICAL AND ELECTRONICS
ENGINEERING
(Accredited by National Board of Accreditation, Govt. Aided Institution an Affiliated to V.T.U. Belgaum)
VISION
MISSION
M1: Adopt the best pedagogical methods and provide the best
facility, infrastructure and an ambience conducive to imbibe
technical knowledge and practicing ethics.
M2: Group and individual exercises to inculcate habit of
analytical and strategic thinking to help the students to
develop creative thinking and in still team skills.
M:3 MOUs and Sponsored projects with industry and R & D
organizations for Collaborative learning
M4: Enabling and encouraging students for continuing
Education and molding them for life-long learning process
DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING
PO-6: Graduates will understand the impact of local and global issues
/happenings on Electrical Engineers.
CO1: Apply the knowledge of power systems for formation of Y bus with and without
mutual coupling using MATLAB Programming
CO2: Conduct experiments to execute programs to study load flow, different faults and
stability of the power system.
CO3: Ability to communicate effectively in a team / as an individual to conduct
experiments.
Experiment No.1
Theoretical background:
Accurate analysis of the transmission lines requires that the 2 - port parameters viz.,
A,B,C, D parameters of the lines are to be determined. Let line series impedance be z
and y be its shunt admittance, where z and y are the impedance and admittance per unit
length, respectively. It can be shown that for a long transmission lines the A, B, C, D
parameters are given by:
A = coshγl, B = Zcsinhγl, C = Yc sinhγl, D = coshγl.
Sending end and Receiving end Voltages and Currents are related by:
A Transmission line connected to a source at the sending end and a load at the
receiving end may be thought of as a two terminal pair network , with sending end
voltage and current as VS and IS , and receiving end voltage and current as VR and
I R . For any two of the above four variables, the other two variables depend on the
parameters of the transmission network between the input and output ports. For
example, the dependence of VS and IS on VR and I R may be expressed through the
relations:VS AVR BIR.............................. (1).
IS CVR DIR …….…… (2).
where the coefficients A, B, C, D are called the transmission parameters. It follows
from equations (1) and (2), Passive networks have the unique property of
AD BC 1 .
For a specified VR and I R , VS and IS can be determined from equations (1) and (2).
(1/ y) VS
NOTE: With I =0, V =V * and I = yV
(z (1/ y)) (z (1/ y))
R R S S S
V
A S
VR with IR 0
IS
C with IR 0
VR
VS
Similarly, with VR = 0, I and IS yVS
R
z
VS
B with VR 0 IS
VR and D with VR 0
IR
PROCEDURE:
ALGORITHM:
B=Z
C = Y(1 + YZ/4).
Zeq
If choice = 3.
Read length Yeq Yeq
Zc = z/y
= (z*y)*length.
A = D = Cosh ()
C =1/Zc Sinh ().
4. Display A, B, C, & D constants.
5. Enter choice 1 – to read Vr, Ir & compute Vs, Is
2 – To read Vs, Is& compute Vr, Ir
If choice = 1
Find Vs = A.Vr + B.Ir
Is = C.Vr + D.Ir where Vr & Ir are in per phase
Display Vs & Is
If choice = 2
Find Vr = D.Vs – B.Is
Is = C.Vr + D.Ir where Vs & Is are in per phase
Display Vs & I s.
Find (i) Vssv & Is sr
(ii) Sending end power factor, Pfsend = Cos (sv - sr)
(iii) Sending end power, Ps = 3 Vs * Is * Pf send
Note:
(1) To find generalized equivalent circuit elements of Pi- network for long lines.
Z or Zeq = y*length* sinh () /
Y or Yeq = y*length/2* tanh (/2) / (/2)
Display Zeq & Yeq.
(2). Ttransmission lines are categorized as three types:
(i). Short transmission line: Length of the line varies up to 80km.
(ii). Medium transmission line: Length of the line varies from 80 to 150km.
(iii). Long transmission line: Length varies above 150km.
Zeq
Yeq Yeq
Example 2
Receiving End Voltage = 6.6 KV, (Line to Line)
Three Phase Power drawn by the Load = 100 KW at 0.8 PF lag
Transmission Line Parameters:
Series Resistance = 5 Ohms
Series Inductance = 0.1 Henry
Total Line charging capacitance = 0.4 μF
otherwise
disp('Wrong choice of Line type');
end
fprintf('\n A,B,C and D constants : \n');
fprintf(' ');
fprintf('\n A = %15.4f %+15.4fi',real(A),imag(A));
fprintf('\n B = %15.4f %+15.4fi',real(B),imag(B));
fprintf('\n C = %15.4f %+15.4fi',real(C),imag(C));
fprintf('\n D = %15.4f %+15.4fi',real(D),imag(D));
fprintf('\n\n (AD - BC) = %5.2f \n',real(A*D-B*C));
vs=(A*vr+B*ir)/1e3; % In KV
is=C*vr+D*ir;
program outputs:
>> ABCD_parameters.
Enter 1-for short line
2-for medium line
3-for long line 2
A = 0.9937 +0.0031i
B = 20.0000 +40.0000i
C = -0.0000 +0.0003i
D = 0.9937 +0.0031i
vr = 7.6210e+04
Experiment No.2
YBus by inspection method and Calculation of Line flows
AIM: 1. To form YBus for a power system by inspection method.
2. To Determine Bus currents, Bus power and Line flows for a specified
system voltage (bus) profile, for a given power system.
Theoretical background:
The analysis of a power system requires certain network matrices viz., Bus admittance
matrix, Ybus or Bus Impedance matrix Zbus. The bus admittance matrix relates the bus
current variables represented by the column vector to the bus voltage variables
through the relation
IBus YBus EBus ……………………………………… (1)
Ybus is an n x n square matrix where n is the number of buses in the system. This Y bus
can be formed by using manual Inspection method or Singular transformation
technique.
%
Program outputs: [Ybus] and [Zbus] matrices.
Ybus =
Zbus =
+0.0126 - 1.6866i 0.0005 - 1.7228i -0.0043 - 1.7369i -0.0053 - 1.7398i -0.0052 - 1.7396i
+0.0005 - 1.7228i 0.0053 - 1.7084i -0.0037 - 1.7352i -0.0038 - 1.7356i -0.0015 - 1.7285i
-0.0043 - 1.7369i -0.0037 - 1.7352i 0.0089 - 1.6975i 0.0045 - 1.7107i -0.0047 - 1.7382i
-0.0053 - 1.7398i -0.0038 - 1.7356i 0.0045 - 1.7107i 0.0090 - 1.6973i -0.0033 - 1.7339i
-0.0052 - 1.7396i -0.0015 - 1.7285i -0.0047 - 1.7382i -0.0033 - 1.7339i 0.0212 - 1.6610i
2.(b)Procedure & Algorithm for Bus currents, Bus power & line flows.
A system voltage profile is assumed (which could preferably be the data obtained
from a load flow analysis).
(1).Read the following line data at each from busno(p), to busno(q), line imp. (Zpq)
& half line charging admittance (Yshpq) read voltages at all buses.
(2). Convert line impedance to admittance of each line Ypq.
(3). Repeat step (i) to (ix) for k = 1 to no. of lines.
(i). Let p = from bus no. & q = to bus no.
(ii). Line current, Ipq = (Vp-Vq) Ypq+Vq*Yshpq
(iii). Line flows = SLpq = Vp.(Ipq)*
(iv). Generation at bus p= SGp = SGp + SLpq.
(v). Ipq = (Vq – Vp).Ypq + Vq * Yshpq.
(vi). Iq = Iq + Ipq.
(vii). SLpq + Vq Ipq*.
(viii). Loss (k) = Loss (k) + SLpq + SLqp.
(ix) Total loss = Total loss + loss(k).
(4). Display current at each bus.
Display line flows & line loss at each line
Display generations at each bus
Display the total losses.
(5). Stop.
Program
% Line Flows Calculation i.e. bus currents, Bus power & line P&Q
flows.
% p q z hlc(ADM)
Ldata = [ 1 2 0.02+0.04i 0.00i
1 3 0.01+0.03i 0.00i
2 3 0.0125+0.025i 0.00i ];
% Bus Voltages
v(1)=1.05+0i;
v(2)=0.98-0.06i;
v(3)=1.0-0.05i;
fb=Ldata(:,1); % from bus
tb=Ldata(:,2); % to bus
z= Ldata(:,3); % z- line imp.'s
ysh=Ldata(:,4); % Shunt Y/2 or B/2 (ylc)
y=1./z;
nbus=max(max(fb),max(tb));
nline=length(fb);
% format short
Ib=zeros(nbus,1);
SG=zeros(nbus,1);
loss=zeros(nline,1);
totloss=0;
fprintf('\n--------------BUS CURRENTS-------------\n'); Ib
fprintf('\n\n------------LINE FLOWS----------------\n'); SL
fprintf('\n\n------------BUS GENRATIONS------------\n'); SG
Program Outputs:
BUS CURRENTS
Ib =
3.9000 - 1.8000i
-2.5400 + 1.2800i
-1.3600 + 0.5200i
LINE FLOWS
SL =
0 1.9950 + 0.8400i 2.1000 + 1.0500i
-1.9100 - 0.6700i 0 -0.6560 - 0.4320i
-2.0500 - 0.9000i 0.6640 + 0.4480i 0
------------BUS GENRATIONS------------
SG =
4.0950 + 1.8900i
-2.5660 - 1.1020i
-1.3860 - 0.4520i
LINE LOSSES
loss =
0.0850 + 0.1700i
0.0500 + 0.1500i
0.0080 + 0.0160i
Total Loss = 0.1430 + 0.3360i
Experiment No.3
AIM:
To determine YBus for a given power system by singular transformation method with
and without mutual coupling cases.
Theoretical background:
A representation of a power system & the corresponding oriented graph are shown in
Figures.
aij = 1 if the ith element is incident & oriented away from the jth node
aij = -1 if the ith element is incident & oriented toward the jth node
aij = 0 if the ith element is not incident to jth node
The dimension of the matrix is e x n, where e is the number of elements & n is
the number of nodes in the graph. The element node incidence matrix for the graph
shown in Fig. 2 is:
n o d e s
El.\n 0 1 2 3 4
1 1 -1
2 1 -1
3 1 -1
Â= 4 -1 1
5 1 -1
6 1 -1
7 1 -1
Zbus = bus impedance matrix whose elements are open circuit driving point & transfer
impedance.
Ybus = Bus admittance matrix whose elements are short circuit driving point & transfer
admittances. Here Ybus is given by:
Ybus = At [y]A ,
where [y] is primitive admittance matrix. The bus incidence matrix A is singular &
therefore At [y] A is a singular transformation of [y]. Therefore it fallows that
Zbus = Ybus-1 = (At[y]A) -1
PROCEDURE:
The Singular Transformation method
Applicable for systems with or without mutual coupling
Requires formation of Bus Incidence Matrix ‘A’
Requires formation of primitive admittance matrix [y]
Ybus is obtained in a single step matrix computation a
YBus=At [ y]A
Formation of Matrix A
For N bus system with k transmission lines, the oriented connected graph is
drawn, with ground as reference node. The graph will have ‘n’ nodes other than
the reference node and ‘e’ elements where e=k+n, n representing the total line
charging admittance at each bus. Hence ‘A’ is a matrix of size e x n. Elements of
A is 1,-1, or 0 depending on the incidence or otherwise of an element at a node
Formation matrix [y]
The impedance data of the system including mutual impedance is expressed in matrix
form to obtain the primitive impedance matrix [z] of size exe. Ordering of elements in
the matrices A and [Z] should be same. Primitive admittance matrix[y] is obtained as
[y]=inverse[z] ...............................................................(1)
ALGORITHMS:
PROGRAM
% FORMATION OF " Ybus " i.e. Bus Admittance Matrix
% Line data from Stagg and Abiad book.
clc, clear all
% Bus No. Line Imp. (Line Charging Admittance)
% From to z =(r+ix) lcY
Ldata =[ 1 2 0.02+0.06i 0.06i
1 3 0.08+0.24i 0.05i
2 3 0.06+0.18i 0.04i
2 4 0.06+0.18i 0.04i
2 5 0.04+0.12i 0.03i
3 4 0.01+0.03i 0.02i
4 5 0.08+0.24i 0.05i ];
for k=1:nbus
ypr(k,k)=sh(k);
end
for k=1:nline
ypr(nbus+k,nbus+k)=y(k);
end
At = transpose(A);
Ybus=At*ypr*A % Calculate and display Results
Zbus =inv(Ybus)
%
Program outputs
A-matrix
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
1 -1 0 0 0
1 0 -1 0 0
0 1 -1 0 0
0 1 0 -1 0
0 1 0 0 -1
0 0 1 -1 0
0 0 0 1 -1
Ybus =
Zbus =
0.0126 - 1.6866i 0.0005 - 1.7228i -0.0043 - 1.7369i -0.0053 - 1.7398i -0.0052 - 1.7396i
0.0005 - 1.7228i 0.0053 - 1.7084i -0.0037 - 1.7352i -0.0038 - 1.7356i -0.0015 - 1.7285i
-0.0043 - 1.7369i -0.0037 - 1.7352i 0.0089 - 1.6975i 0.0045 - 1.7107i -0.0047 - 1.7382i
-0.0053 - 1.7398i -0.0038 - 1.7356i 0.0045 - 1.7107i 0.0090 - 1.6973i -0.0033 - 1.7339i
-0.0052 - 1.7396i -0.0015 - 1.7285i -0.0047 - 1.7382i -0.0033 - 1.7339i 0.0212 - 1.6610i
1.(b) Formation of Ybus using singular Transformation method with mutual coupling.
Algorithm:
1. Read no. of buses(nbus) & no. of lines(nline).
2. Read line data i.e., From bus no., Zseries, mutual line no., Zmutual at all lines.
3. Form bus incidence matrix A
(i) initialize all the elements of A of size (nline X nline) to zeros.
(ii) Form A = [aij] matrix
Where aij = 0 if ith branch is not incident on jth bus.
aij = 1 if ith branch is incident to & oriented away from jth bus.
aij = -1 if ith branch is incident to & oriented away from jth bus.
4. Form Zprimitive matrix, Zpr
(iii) Initialize all the elements of Zpr of size(nline*nline) to zeros.
(iv) The diagonal elements is Zpr are assigned with respective Zseries
i.e.,Zpr(i,i) = Zseries of ith line.
(v) The off diagonal elements is zeros if the line i has no mutual coupling with
line j.
(vi) The off diagonal element Zpr (i,j) = Zmutual if the line I has mutual
coupling with line j.
5. Form Y primitive matrix Ypr = [Zpr]-1
6. Display A matrix & Ypr matrix.
7. Form transpose of matrix A i.e., AT.
8. Form ATY = AT * Ypr.
9. Form Ybus = ATY * A display.
10. form Zbus = [Ybus] -1 & display.
11. Stop.
Program
% Y-bus formation with Mutual coupling elements included,
% by using Singular Transformation for Y-bus formation.
% Problem data is from stagg.pp-61..
clc, clear all
% coel=coupling element no.in the Line data
% Bus Nos. Line Mutual Coupling
% from to Imp.z coel mutual imp
Ldata=[ 1 2 0.00+0.6i 0 0.0
1 3 0.00+0.5i 1 0.1i
3 4 0.00+0.5i 0 0.0
1 2 0.00+0.4i 1 0.2i
2 4 0.00+0.2i 0 0.0 ];
ref = 1 ; % given data - ref.bus is one.
fb =Ldata(:,1); % from bus
tb =Ldata(:,2); % to bus
z =Ldata(:,3); % line imp.s
coel=Ldata(:,4); % coupling element.
zm=Ldata(:,5); % mutual imp.
y=1./z; % line adm.
nb=max(max(fb),max(tb)); % No. of buses
ybus=zeros(nb,nb);
ne = length(fb); % No.of elements
Acap=zeros(nb,nb); % Ele.-Nodes Inci.Matrix
A = Acap;
A(:,ref)=[]; % delete ref.bus
disp(' BUS INCIDENCE A(ne,nb) matrix ');
disp(A) ;
% Primitive Impedance matrix <Zp>
for i=1:ne
Zp(i,i) = z(i) ; % Diagonal elements.
if (coel(i) > 0) % If coupling exists add
Zp(i,coel(i)) = zm(i); % Off-diagonal elements
Zp(coel(i),i) = zm(i) ;
end
end
% calculation parts
Yp = inv(Zp) ; % Invert Zp to get pri.Yp-matrix
fprintf(' Primitive Yp(ne,ne) matrix \n\n');
for i=1 : ne
for j=1 : ne
Yp(i,j) = (-1)*Yp(i,j);
fprintf(' (0,%6.3fi) ',imag(Yp(i,j)));
end
fprintf('\n');
end
Y-BUS MATRIX
0 + 8.0208i 0 - 0.2083i 0 - 5.0000i
0 - 0.2083i 0 + 4.0833i 0 - 2.0000i
0 - 5.0000i 0 - 2.0000i 0 + 7.0000i
Example. (2).Find the Bus admittance matrix for the power system given.
Number of Buses = 4, Number of Transmission Lines = 5.
APPENDIX
G1 G2
I1 I2
V1 V2
Z12
Z13 Z23
V3
I3
G1= Generator at bus 1.
G2= Generator at bus 2.
L= Load at bus 3.
l1= injected at bus 1
l2 = injected current at bus 2.
L3= injected current at bus 3.
V1= Voltage at bus 1
V2= Voltage at bus 2.
V3= Voltage at bus 3.
Z12= impedance at transmission line connected between bus 1 & 2.
Z13= impedance at transmission line connected between bus 1 & 3.
Z23= impedance at transmission line connected between bus 2 & 3.
From the network we can write the node voltage equations as
l1 = (y12 + y31)V1 – y12V2 – y31V3
l2 = -y12 V1 + (y12 + y23)V2-y23V3
l3 = -y31V1-y23V2+(y31+y23) V3
Where
y12=1/z12
y23= 1/z23
y31=1/z31
In matrix form we can write
I1 y12 + y13 -y12 -y31 V1
I2 = -y12 y12 + y23 -y23 V2
I3 -y31 -y23 y31 + y32 V3
It is to be noted that all injected currents are positive & extracted currents are negative.
Dept.of E & E Engg., PESCE, Mandya Page 21
Power system simulation lab
The elements Z11, Z22 Z33 forming the diagonal terms are called self impedance. The
elements Z12, Z13, Z21 …….. Forming the off diagonal elements are called mutual
admittances. Where the elements of Zbus matrix are obtained by inverting the Ybus matrix.
The order of Zbus matrix is same as that of Ybus matrix, which is of the order ==> (No of
buses)* (No of buses).
Experiment No.4
Study of Asymmetrical Faults
AIM:
To determine fault currents and voltages in a power system, for occurrence of a
Asymmetrical (short circuit) faults namely S.L.G, D.L.G, L.L.F, etc faults.
Theoretical background:
The shunt type of faults involves short circuit between conductor and ground, or short
circuit between two or more conductors. The shunt faults are characterized by
increase in current and fall in voltage and frequency. The shunt faults can be
classified as shown below.
1. Line-to-ground fault. 2. Line-to-line fault. 3. Double line-to ground fault. 4. Three
phase fault.
Single line to ground fault (SLGF):
For a single line to ground fault, Ia1 = Ia2 = Ia0 = Ia/3., and Ia1 = Ia2 = Ia0 = Vf / (Z1 + Z2
+ Z0).The above equations indicates that the three sequence networks should be
connected in series through the fault point in order to simulate a single line-to-ground
fault.
Line-to-Line fault (LLF). For a line to line fault, Va1 = Va2 and
Ia1 =Vpf/(Z1 + Z2).These equations indicate that the sequence networks should be
connected in parallel through the fault point in order to simulate a Line to Line fault .
Double Line to ground fault (DLGF): For a Line to Line fault, Va1 = Va2 = Va0 and
Ia1 = Vpf /[Z1+(Z2Z0/(Z2 + Z0))] .These equations indicate that the three sequence
networks should be connected in parallel through the fault point in order to simulate a
Double Line to ground.
5. Let I fa 2 is the negative sequence current for phase ‘a’ line and I fa 0 is the zero
sequence current for phase ‘a’ line at the fault point.
6. I I * zo 3z f
fa 2 fa1 ((z|| z 3 z)) z
1 2 o f
7. I I z
* ((z|| z 3 2z)) z
fao fa1
1 2 o f
1 12 1 I fao
I fa
8. I 1 a
-------------(a)
a I fa1
fb
I 1 a a2 I
fc fa 2
Eqn.(a). Gives the fault currents from lines a, b, c into the fault point.
9. Pre-fault currents are appropriately superposed
10. Unbalanced currents Iu at any point is determined as Iu AIs where Is is the
vector of sequence component currents at that point and A is the transformation
matrix for converting sequence components to unbalanced currents.
11. At the fault point, voltages are given by :
va1 vpf z1Ia1
va 2 Ia 2 z2
va0 I ao (3zo ) z f
And then, vu = Avs gives unbalanced voltage at the fault point.
NOTE: Similarly the same procedure may be applied to all other faults viz...SLG,
LLF, etc
Programs for Unsymmetrical fault analysis viz., SLG, LLF, DLG faults
Example.1
(On a common base of 25 MVA, 11KV, in the Generator Circuit)
Motor is drawing 0.9 pu Real Power at 0.909 pu voltages and 0.8 PF lagging
Example.2: For the given circuit, find the fault currents, voltages for the following type of
faults at Bus 3. (1) Single Line to Ground Fault, (2) Line-to-Line Fault (3) Double Line to
Ground Fault. For the transmission line assume X1=X2, X0==2.5XL.
Experiment-5
Power Angle Diagrams
AIM:
(i) Determination of power angle diagrams for Salient & Non-salient Synchronous
Machines.
(ii) Calculation of Reluctance power, excitation E.M.F & voltage regulation.
- - - - - -(3b)
As increases, power output of the machine reduces successfully and finally the
machine may stall. Hence, Pm at which maximum power transfer occurs is called as
the steady state stability limit (SSSL) of the machine. The machine operation is stable
in the region 00< 900. Here the slope of the curve is +ve (i.e. dP/d> 0). The term
dP/d is called as synchronizing power coefficient or machine stiffness. The condition
for dP/d <0, the system is unstable.
(b). Power-Angle equation of a salient pole synchronous machine:
A salient pole machine has projecting (salient) poles. Hence, the air gap is non-
uniform along the rotor periphery. It is least along the axis of the main poles (called
the direct axis). Hence, the flux linkages are non-uniform. Correspondingly, the
machine offers a direct axis reactance (Xd) & quadrature axis reactance (Xq) for the
flow of armature current. The phasor diagram of the machine neglecting the armature
resistance is shown in figure (4).
Referring to the diagram, we can derive the expression for power delivered as:
(4)
As evident from equation(4), that there is a fundamental & a second harmonic
component of power, the first term is same as for a round-rotor machine with Xs =
Xd. This constitutes the major part of the power transfer. The second term is quite
small (10-20%) compared to the first term & is known as Reluctance Power.
The power angle curve of the machine is shown in figure (5). It is noticed that the
maximum power output (SSSL) occurs at <900 (about 700). This value of ‘’ at
which the power flow is maximum can be computed by equating the synchronizing
power coefficient i.e. dP/d to zero.
Resultant power
Pm 900 1800
Reluctance power
(c). Calculation of excitation E.M.F. & voltage regulation: When the rotor is
revolving at synchronous speed & the armature current is zero, the field m.m.f
produces the no-load generated e.m.f, E in each phase. The no-load generated voltage
which is proportional to the field current is known as the Excitation Voltage, E = V +
j I Xs. The voltage regulation of an alternator is a figure of merit used for
comparisons with other machines. It is defined as the percentage change in terminal
voltage from No-load to Rated load (i.e., E to V).
*100
Regulation R = .
PROCEDURE:
2xd xq
and, P is the total power output / phase
- Power angle diagram is obtained by evaluating the expression for P for about say
50 equally spaced values of δ between 0 to Π radian and obtaining the plot of
P vs δ
- Similar procedure is applicable for obtaining the fundamental and second harmonic
(reluctance power) components of Power Angle Diagram.
ALGORITHMS:
E - V
4. Regulation R = ------------------ *100
V
5. Display E, Pemax, delta, Reluctance power (Pr) & Volt R
6. Stop.
Eq = Vph+(j*I*Xq);
Id_mag = abs(I)* sin(angle(Eq)-angle(I));
RealPower = (Ef_mag)*Vph*sin(delta_rad)/Xd ;
Reluct_power = Vph^2*(Xd-Xq)*sin(2*delta_rad)/(2*Xd*Xq);
Net_Reluct_power = 3*Reluct_power/(1e6) ; % Power in MWs
TotalPower = RealPower + Reluct_power ;
plot(delta,Net_Reluct_power,'k');
hold on % Note: to plot/draw graph on the same graph sheet
plot(delta,Net_3Power,'r');
xlabel('\delta (Deg) -->');
ylabel('Three phase Power -->');
title('Power Angle Curve for Synchronous M/C');
legend('Reluctance power', 'Total Real Power') ;
grid
Power in MW = 40
Power Factor = 0.8
Line to Line Voltage in KV = 34.65
Xd in ohms = 13.5
Xq in ohms = 9.33
Vph = 2.0005e+04
I = 6.6649e+02 - 4.9987e+02i
Excitation EMF per phase, Ef = 28.14 in KV
Voltage Regulation = 40.67 %
Note: Observe the outputs & Power – angle diagram o and comment on results
100
Three phase Power -->
80
60
40
20
-20
0 20 40 60 80 100 120 140 160 180
(Deg) -->
Example. 2
A 3 Phase Star connected Synchronous Generator, with ratings as165 KVA, 95.2 KV,
delivering full load at 0.8PF lag. Armature resistance = 0.2 Ω per Phase. Direct axis
Armature Reactance = 2 Ω per Phase, Quadrature axis Armature Reactance = 1.2 Ω
per Phase (Salient Pole Synchronous Generator).Quadrature axis Armature Reactance
= 2 Ω per Phase (Non-Salient Pole Synchronous Generator).Draw power angle
diagram.
c) If the generator is operating at the excitation voltage of part (a), what is the SSSL
(power) the machine can deliver before losing synchronism? Also find the armature
current corresponding to this maximum power.
Experiment-6
Transient stability
AIM:
(1) To determine Critical Clearing Time (CCT) or CC angle (CCA) for a given
Synchronous generator connected to Infinite bus (SMIB).
(2) To determine the stability of a system by drawing the Swing curve.
Theoretical background:
The stability problem is concerned with the behavior of the synchronous
machines after a disturbance. Stability in general is that attribute of a power system due
to which when an external disturbance tends to upset the synchronous running of
generators, restoring torques are developed so that the machines regain synchronism
quickly. Transient stability studies deal with the effects of large, sudden disturbances
such as the occurrence of the sudden application or removal of loads. The studies are
useful in determine such things as the nature of the relaying system needed, critical
clearing time of circuit breakers, voltage level of & transfer capability between system.
During any disturbance, rotor will decelerate or accelerate with respect to the
synchronously rotating air gap mmf, & a relative motion begins. The equation,
describing this relative motion is known as the ‘Swing equation’ is given below.
(d2 δ/dt2) = (Pa/M) = (1/M)(Pi – Pm sin δ)
The suddenness of disturbance could be due to sudden switching on or off of load,
sudden fault on the system, tripping of transmission line etc.The basic principle for
transient stability pertains to the rotor dynamics of a synchronous generator. For
normal synchronous running conditions, since a synchronous generator is a rotating
electromechanical energy conversion device, there is a balance between the net
mechanical input power, Pm and the electrical power developed Pe. Hence the
differential Power Pa, called the accelerating power and defined as the difference
between Pm and Pe is zero. By basic principles of mechanics, the rotor continues to run
at a constant (synchronous) speed. However, during sudden disturbances, there is a
sudden change in Pe. The mechanical input Pm cannot respond as quickly due to
mechanical inertia of governor system controlling the output of prime mover driving the
generator. The non-zero accelerating power now tends to cause acceleration of the
rotor. The change in speed of rotor causes the power angle to change from its steady
state value 0 . However P depends on δ so that with a change of δ, P changes
e e
followed by changes in Pa and the acceleration. This closed cycle of occurrence repeats
for a few cycles during which the rotor is subjected to acceleration and deceleration
causing the rotor to swing back and forth about a final new position. If the system is
unstable, the rotor is subjected to a continuous monotonic swing. In this background, a
plot of rotor swing as function of time, called the swing curve gives an idea about the
stability or otherwise of the system. The first peak of swing curve is important because,
it is assumed that successive peaks have reducing values so that the existence of the first
peak itself indicates system stability. Mathematically therefore the existence of a
d
0
dt (at the first peak) at a finite instant after the occurrence of disturbance indicates
stability. This principle is the basis for what is called the Equal area of Criterion.
Generally a short term transient stability analysis evaluates the swing curve for a period
of 1 sec. If there is no peak, the system is unstable, otherwise system is stable.
The basic differential equation governing the rotor dynamics during the transient period
is called swing equation and is a Second Order, Non-Linear Differential equation
(NLDE) in 2δ, with constant coefficients given by:
πf
Pmech Pem sin ...............................................(1)
t 2
H
Where = Power angle, in radians
f = System frequency
H = Inertia constant of rotor in MJ/MVA of stored kinetic energy at
synchronous speed.
Pe = Pem sin , is the power angle characteristic of the synchronous generator.
Solution of Swing equation:
Solution of NLDE requires numerical methods. There are various methods available
for the solution of the Swing equation. There are (i) Point by Point or Step by Step
method, (ii) Runge-kutta (RK) method, (iii) Euler’s method, etc. One common method
is the modified Euler method. For computational purposes, equation (1) can be split
into two first order differential equations (2) and (3).
o i , o = Steady State Power Angle = Constant
i = Change (increment) of Power Angle during Transient interval.
= Power angle at any instant of time
d d
w w i w , w is speed at any instant.
r S S r
dt dt
w w w , w is change (increment) in rotor velocity = d i
i r S i
dt
dwi π f
therefore, (sPin ) P ……………………(2)
dt H mech em
d i
w r w s w i ………………………………..… (3)
dt
For understanding the concept of transient stability and swing curve, it is common to
consider a synchronous generator delivering power to infinite bus through a pair of
transmission lines (i.e Single M/c connected to Infinite Bus, SMIB system).
In this system assume a 3 phase symmetric short circuit fault occurs on one of the
transmission lines. Then let it be followed by isolation of the faulty line after a few
cycles thus clearing the fault, on the remaining system. Thus the system switches from
pre-fault to during- fault and during- fault to post- fault conditions. What is interesting
is that if the faulty line is cleared after a critical instant of time, called the critical
clearing time tcr , the system does not regain stability even though the fault on the
system has been isolated. Hence evaluation of critical clearing time, tcr (CCT) is
absolutely essential to ensure that the fault is cleared in a time less than tcr thus
ensuring stability.
And
Pm = Pmax Sin δ0
Substituting for δmax & Pm in Eq.(1)
δcr = cos -1 [(Π - 2δ0 )sin δ0 – cosδ0 ] .......................... (2)
We have
Δ(t)│t=tc = ωs Pm/4H t2c +δ0
Substituting Eq.(2) in above equation
δ cr=ωs Pm/4H t2cr+δ0
tcr = √4H(δ cr - δ0 )/ ωs Pm
or
tcr = √(2H(δ cr - δ0 )/ pi*f* Pm)
PROCEDURE:
1. Excitation EMF ‘E’ and transfer reactance ‘Xo’ between the generator and infinite
bus are determined for the specified output of the generator, taking infinite bus voltage
V as reference.
EV sin
2. Pre-fault power angle characteristics is determined as Po
xo
where E and V are the magnitudes of Excitation EMF and voltage of infinite bus
P
3. Pre-fault Power angle is obtained as sin1 mech
o
Pom
where, Pmech = Electrical Output of generator before occurrence of fault.
4. For the specified fault location the new transfer reactance x1 is determined.
Assuming constant Excitation EMF and infinite bus voltage, the P characteristics
EV sin
during the fault is obtained as P P sin .
1 1m
x1
5. For the system configuration after the isolation of faulty line, the transfer reactance
x2 and the corresponding Post fault P characteristics is obtained as
EV sin
P2 P2m sin
x2
6.Total time of transient stability study Ts, time at the instant of fault clearance tc ,
inertia constant H of the generator, normal system frequency f are all identified from
system data.
Critical clearing
angle is determined from the equation
1 Pmech ()
cmo
s o P1mcos o P2 m m
c cos
P2m P1m
For determining critical clearing time, solution of swing equation is obtained for
sustained fault, using modified Euler method for the equation (2) and (3).
Critical clearing time is then the time corresponding to c .
7. For calculation of swing curve for sustained fault, it is enough to assume tc > T;
For example, tc =T+0.01
8. For obtaining swing curve when the fault is cleared, the procedure is similar; i.e.,
point by point or modified Euler method is applied to equations (2) and (3) to obtain
incremental values of rotor swing during successive time steps and the rotor swing at t
the end of time steps obtained by adding the increments to the values at the
commencement respective steps. It is important to use Pe = P1 for intervals before
fault clearance and Pe = P2 for intervals after the fault clearance.
9. A Plot of δ Vs t gives the swing curve in both cases (Sustained Fault / Fault
cleared)
10. Procedure is repeated for different values of inertia constant, fault location, fault
clearing time, line reactance and pre fault electrical output to study their effect on
swing curve, by changing the value of one of them at a time keeping others constant.
A temporary 3-phase fault occurs at sending side of the at a point ‘F’. When fault is cleared,
both lines are intact. Determine the critical clearing angle (CCA) & the critical clearing
time.(CCT).
(a). A 3-phase fault occurs at middle of one of the lines, and fault is cleared by isolating the
faulty line. Determine CCA
(b). If the fault is cleared in 0.3sec, obtain the numerical solution of the swing equation for
sec from the swing curve; determine the system stability, & the Critical Clearing Time
(CCT by using CCA).
(b).Repeat the simulation & obtain the swing plots for the CCT, & when fault is cleared in
0.5sec.
Solution: The current flowing into the bus is, I = S*/ V* = (0.8 – j0.074)/ 1.00o .
i.e.,I =(8 – j0.074)pu. The transfer reactance the internal voltage,E & the infinite bus before
fault is X1 = 0.3 + 0.2 + (0.3/2) = 0.65pu. The transient internal voltage is :
E’ = V + jX1 I = 1.0 + (j 0.065) (0.8 – j0.074). i.e. E’ = 1.17 26.387opu. Now the power
angle equation before the fault Pe1, is, Pe1 = P1max sin = (E.V/X1) sin
Pe1 = 1.8sin ----------------- (1)
The initial operating angle is given by, 1.8sino = 0.8
i.e. The initial power angle is o = 26.388o = 0.46055rad. or o = 26.4o
The generator is operating at the initial power angle o = 26.4o or 0.4605 rad. The fault
occurs at the middle of one line [say at ‘F’], & resulting circuit is shown below. The transfer
reactance during fault may be found by Y - conversion.
Pe
Pe before fault (P1)
0 o e max
Pe3max
0.8
=180o – sin-1
1.4625
PROGRAMS:
clear all
clc , close all ;
% Refer: Power Sytem by Nagarath & Kothari(new book).
% Problem on CCT : from PSA by: Hadi Sadath pp - 487 Ex=11.5
f = 60 ; H=5 ; % Data Given
Xd = 0.3 ; Xt1 = 0.2 ; Xt2 = 0 ; XL = 0.3 ; % Each line Reactance
% Gen output is Pmech,Pm = Pe, Pelectrical,
Pe =0.8 ; E =1.17 ; V =1.0 ; H = 5 ;
X3 = Xe + XL
otherwise
disp('---Wrong input----');
end ;
%
Pe2m = E*V/X2
Pe3m = E*V/X3
% To calculate critical clearing angle dc(delta-cr) ,cos(dc) is :
dmax = pi-asin(Pe/Pe3m) %(delta-max )
cosdc = (Pe*(dmax-d0) + Pe3m*cos(dmax)- Pe2m*cos(d0))/(Pe3m-Pe2m)
dc = acos(cosdc) % Crit.Cl. Angle = (delta-cr)
CCA = dc*180/pi
if dc > dmax
fprintf('No critical clearing angle could be found.\n')
fprintf('System can remain stable during this
disturbance.\n\n')
else
fprintf('Initial angle (delta-0),do =%6.3f rad. = %6.3f deg
\n',d0,d0*180/pi);
fprintf('Max.angle(delta-max),dmax =%6.3f rad. = %6.3f
deg.\n',dmax, dmax*180/pi);
fprintf('Critical Clearing Angle(delta-c) =%6.3f rad= %6.3f
deg.\n',dc,dc*180/pi) ;
end;
if X2 == inf ,
fprintf('\n For this o.c. case, X2 = Inf, CCT can be found
from an Analytical formula. \n')
H = input('To find CCT, Enter Inertia Constant H, (or 0 to
skip) H = ');
CCT = sqrt((2*H*(dc-d0))/(pi*f*Pe)) % delta in radians
fprintf('Crit.Clrg. Time (CCT) =%6.3f Sec = %6.3f
cyles.\n\n',CCT,CCT*f) ;
end
%
% Optional Part of the program
figure
x =0:1:180; % Angle in degrees
Del = x*(pi/180); % angle, delta in radians
% x = 0:pi/20:pi;
y1 = Pe1m*sin(Del);
y2 = Pe2m*sin(Del);
y3 = Pe3m*sin(Del);
plot(x,y1,x,y2,x,y3); grid ;
title('Power Angle curves for SMIB system');
xlabel('Power Angle, delta in radians'), ylabel('Powers ');
legend('Pre fault ', 'During Fault', 'Post Fault')
%
Results :
---- NORMAL Operation i.e. Before the Fault occurs ------
X1=0.6500, Pe1m =1.8000,d0=0.4606,
---- During - Fault occurs, Calculate X2 & X3 ------
Initial power angle, delta,d0=0.461rad.=26.388 deg.
1- for fault at the beginning of tr.line
2-for fault at the middle of line
3-for fault at the end of tr.line
Enter choice No. : 1
CASE1 : When Sym. 3-phsae fault occurs near Sending End occurs then X2
=Inf, Pe =0 :
X2=Inf, X3=0.6500.Pe2m =0,Pe3m = 1.8000
dmax =2.6810, cosdc = 0.0911 ,dc = 1.4796
CCA = 84.7745
For this o.c. case, X2 = Inf, CCT can be found from an Analytical formula.
To find CCT, Enter Inertia Constant H, (or 0 to skip) H = 5
CCT = 0.2600
Crit.Clrg. Time (CCT) = 0.260 Sec = 15.597 cyles.
>>Case2: When 3-ph S.C. fault occurs atthe middle of the Line
---- During - Fault occurs, Calculate X2 & X3 ------
Initial power angle, delta,d0 = 0.461 rad. = 26.388 deg.
1.2
1
Powers
0.8
0.6
0.4
0.2
0
0 20 40 60 80 100 120 140 160 180
Power Angle, delta in radians
Note:
(i) For this problem, X1, X2 & X3 can be found by using CCA/CCT program or by
hand calculation (refer pp-483 of Nag & Koth book.
(ii) First of all calculate CCA by using the above mentioned equation. Run program to
draw the swing curve for sustained fault case.Then read/determine the CCT from the
swing curve corresponding to the sustained fault case.
(Ans. CCA=118.620 & CCT =0.38 sec)
ddelta = ddelta+(tstep*tstep*Pa/M);
delta = (delta+ddelta);
t = t + tstep;
time(i) = t;
ang(i) = delta;
i = i+1;
end % end for While statement
figure(1)
plot(time,ang,'bo-'); grid on;
title(['Swing curve for SMIB system.Fault cleared at ', num2str(tc),'
sec']);
xlabel('time, sec'), ylabel('Delta, degrees');
program outputs:
Note: tclear = cycles/f = 2.5cycles/50Hz = 0.05 sec
** For Fault cleared in 2.5 cycles & Fault cleared in 6.5 cycles, Fault clearing time is
0.05 seconds & 0.125 seconds respectively.
Outputs: Case (1)
For -Sustained fault: i.e when fault is cleared by time > = 0.5 secs
Enter Fault clearing time in sec = 0.5
dmax = 2.6748 rad. = 153.2563 degrees.
d0 = 0.3771 rad = 21.6035 deg.
dc = 2.0701 rad or CCA = 118.6063
Critical Clearing Angle = 118.61 degrees
CCT = 0.4000
Critical clearing time = 0.40 seconds
Example (2):
** For Fault cleared in 2.5 cycles & Fault cleared in 6.5 cycles, Fault clearing time is
0.05 seconds & 0.125 seconds respectively.
Note: tclear = cycles/f = 2.5cycles/50Hz = 0.05 sec
Outputs: Case (1)
For -Sustained fault: i.e when fault is cleared by time > = 0.5 secs
Critical clearing angle = 91.24 degrees
Critical clearing time = 0.45 seconds
Symmetric 3φ fault at ‘F’, the midpoint of one of the transmission lines, cleared in
0.251 sec. Base Power = 20 MVA, Base KV=10KV. |E|=1.1 p.u., |V|=1 p.u.
Experiment No.7.
Economic Load Dispatch
AIM:
1. Determination of optimal generator scheduling for thermal power plants.
i.e. Write a program for Economic load allocation of power plants without
considering transmission losses.
2. Calculation of Penalty factors and optimal generator scheduling (Load allocation)
with transmission losses considered.
Theoretical background
Economic dispatch solution has two different problems to be solved
(1).Unit commitment or pre-dispatch problems to find the specified margin of operating
reserve over a specified period of time.
(2). On-line economic dispatch wherein it is required to distribute the load among the
generating units actually paralleled with system & being in running condition. In the
later, the minute-to-minute generating schedule is worked out to minimize the total cost.
In this experiment, i.e. the program for solving the problem discussed here is that, the
economic load dispatch (ELD) or Optimal operation of power plants with neglecting
transmission loss is written.
The problem is about minimizing the total generating cost.
i.e. Min. FT = Σng n=1 Fn
Subject to total demand = sum of all generator generations.
i.e PD = Σng n=1Pn
Making use of Lagrangian multiplier,
F = FT + λ (PD - Σng n=1 .Pn)
where λ is the Lagrangian multiplier.
Inequality constraints:
Generator constraints:
MVA loading should be within the acceptable limits
[(MW)*(MW) + (MVAR)*(MVAR)] <= [(MVArate)*(MVArate)]
Pgmin <= Pgen<=Pgmax
Qgmin <= Qgen<=Qgmax
Voltage constraints:
│Vpmin│<=│Vp││Vpmax│
Tap constraints
tap_min <= tap <= tap_max
Line loading constraints
L_loading <= Lmax_loading
Note that that while writing the program only generator constraints
i.e. Pgmin <= Pgen<=Pgmax are considered.
PROCEDURE
Optimal operating condition is obtained by using the following condition and solve for
Pn .
𝑑 𝐹1 𝑑 𝐹2 𝑑𝐹𝑛𝑔
= = −−−= = 𝝀
𝑑 𝑃1 𝑑 𝑃2 𝑑 𝑃𝑛𝑔
Solution for the problem: Assume a suitable value of λ(0). This value should be more
than the largest intercept of the incremental cost characteristics of the various generators.
Compute the individual generations P1, P2, .... Pn corresponding to incremental cost of
production. In case generation at any bus is violated, fix it to either minimum or
maximum.
Check the equality: If not, make a second guess of λ & proceed. Stop when the
generation & demand match with a small error.
Generators data
(For each Generator) Remark
PMinimum In MW
PMaximum In MW
Generator cost Coefficient - Co
Generator cost Coefficient - Co
Generator cost Coefficient - Co
Output expected
The output contains the following –
Generation schedule & generation cost.
Lambda (λ).
Final Cost of generation.
Final Total generation cost.
In the following program given for solving the problem discussed here is that, the
economic load dispatch (ELD) or optimal operation of plants with neglecting transmission loss.
PROGRAM
% Economic Load Dispatch problem without considering
% the transmission losses.
% Refer: ‘Power System Analysis’ by: Hadi Sadath
clc ; clear ;
disp('OPTIMAL LOAD ALLOCATION OF THERMAL PLANTS')
disp(' ')
% Fuel Cost curves are given by: F=a*P^2 + b*P + c
a=[0.004 0.006 0.009];
b=[5.3 5.5 5.8];
c=[500 400 200];
N=3; Pd=975; % N=No:of Gen.& Pd=Demand in MW;
Pmin=[200 150 100];
Pmax=[450 350 225]; Pg =Pmin;
lam = 20; % Lamda Initial value(>>b) is assumed
oldLam =lam ; deltalam =0.01 ;
diff=1; % diff = sum of Pgs - total demand
while (diff > 0.001)
for k=1:N
Pg(k)=(lam-b(k))/a(k);
if(Pg(k)<Pmin(k))
Pg(k)=Pmin(k);
elseif(Pg(k)>Pmax(k))
Pg(k)=Pmax(k);
end
end
sum=0;
for k=1:N
sum=sum+Pg(k);
end
diff=sum-Pd;
if(diff<0)
oldlam =lam;
lam=lam+deltalam;
else
oldlam =lam;
lam=lam-deltalam;
end
end
fprintf('\n The generation schedule is');
for k=1:N
fprintf('\n Pg(%d)=%.2fMW',k,Pg(k));
end
fprintf('\n Total demand=%.2fMW \n Total
generation=%.2fMW',Pd,sum);
ALGORITHM:
Algorithm for economic load dispatch problem by considering transmission losses.
Transmission losses are represented by B- coefficients. (Known/given)
1. Assume a suitable value of λ . This value should be more than the largest intercept of
the incremental production cost of various generators.
2. Calculate the generations based on equal incremental production cost
3. Calculate the generation at all the buses using equation.
𝑓𝑛
1− − ∑ 2𝐵 𝑃 −𝐵
𝜆 𝑚!𝑛 𝑚𝑛 𝑚 𝑛𝑜
𝑃𝑛 = 𝐹𝑚
𝜆 + 2 𝐵𝑚
4. Check if the difference in power at all generator buses between two consecutive iteration
is less than a pre-specified value. If not, go back to step3.
5. Calculate the losses using the relation
𝑃𝐿 = ∑ 𝒎 ∑𝒏 𝑃𝑛 𝐵𝑚𝑛 𝑃𝑚 + ∑ 𝐵𝑚𝑜 𝑃𝑚 + 𝐵𝑜𝑜
and calculate
∆𝑃 = ∑ 𝑃𝐺 − 𝑃𝐿 − 𝑃𝐷
6. If |∆𝑃| is less than error,€, stop calculation and calculate the cost of generation with these
values of powers.
7. Update the value of 𝝀 and go back to step3.
Program:
The program for this algorithm i.e. for economic load dispatch by considering
transmission losses is available in the software package called “P_CAPS” or in “Mi-
POWER” software or any other suitable program can be used to solve this problem .
Students are encouraged to use the package and solve the following problems.
“P_CAPS” software is a menu driven software package. It can be used very easily.
Loss Co-efficients:
Β11 = 0.005 Β12 = 0.012
Β21 = Β12 Β22 = 0.002
Experiment-8
Load Flow analysis
AIM:
To conduct Load Flow analysis using (i) Gauss Seidal (GS) Method (ii) Newton Raphson (NR)
method and (iii) Decoupled Load Flow (DLF) or Fast DLF method.
Theoretical background:
The Load Flow Studies (LFS) or Load Flow Analysis (LFA) or load-flow calculation is
the most common network analysis tool for examining the undisturbed and disturbed network.
The load-flow calculation can provide voltage profiles for all nodes and loading of network
components, such as Lines or cables and transformers, etc. With this information, compliance to
operating limitations such as those stipulated by voltage ranges and maximum loads, can be
examined.
Load Flow Analysis using GS Method:
Gauss-Seidal method is an iterative algorithm for solving a set of non-linear load flow equations.
The understanding of Load flow analysis requires the concept of Bus Power, Bus Voltage and
Bus Current. In a Power system, for normal steady state conditions the bus voltage magnitudes
would be around the respective nominal (rated) values so that in terms of power unit values the
magnitudes of bus voltages are around 1 p.u. Also transfer of power from one bus to another
through a transmission line requires a phase difference between the two bus voltages. Hence
each bus voltage is characterized by a magnitude of around 1p.u. and a phase angle with respect
to a reference bus which is called the slack bus. Also each bus is characterized by real and
reactive bus power. The problem is then, given the real and reactive bus powers, to find the exact
magnitude of bus voltage and phase angle, at all the busses in the system. The equation relating
bus powers with bus voltages are nonlinear algebraic equations. Gauss Seidal method is a
method of solving such equations.
In general, the basic mathematical model for Gauss Seidal method may be summarized as
where α is
called the acceleration factor, and is greater than 1, with a typical value ofaround 1.6
in load flow analysis.
The Newton-Raphson (NR) method is a power full method of solving nonlinear algebraic
equations. It works faster, & is sure to converge in most cases as compared to Gauss-Seidal
(GS) method. The number of iteration required to obtain a solution is independent of the
system size, but more functional evaluations are required at each iteration. Since in the
power flow problem real power & voltage magnitude are specified for voltage-controlled
buses, the power flow equation is formulated in polar form. For the typical bus of the
power system the current entering bus I is given by:
Ii = ΣYij Vj
In the above equation, J includes bus i. Expressing this equation in polar form, we have
Ii = Σ│Yij ││Vj│ θij + δj
The complex power at bus i is
Pi – jQi = V*iIi
Therefore Pi = = Σnj=1 │Vi││ Vj│ │Yij │cos θij + δj
Separating the real & imaginary parts
In the above equation, bus 1 is assumed to be slack bus. The Jacobian matrix gives the linearized
relationship between small changes in voltage angle ∆δi(k) & voltage magnitude ∆│ Vi(k)│ with
small changes in real & reactive power ∆Pi (k) & ∆Q i (k) . Elements of Jacobian matrix are the
partial derivatives of the equations (1) & (2), evaluated at ∆δ i (k) & ∆│ Vi(k)│.
The terms ∆Pi(k) & ∆Qi(k) are the difference between the scheduled & calculated values,
known as the power residuals, given by:
∆Pi(k) = Pisch – P ik
∆Qi(k) = Qisch - Q ik
But we know that ∆P J1 J2 ∆δ
=
∆Q J3 J4 ∆│V│
=
∆│Vik│ ∆Qk J3 J4
The new estimates for bus voltages are
δik+1 = δi(k) + ∆ δi(k)
│Vi(k+1)│ = │Vi(k)│ +∆│Vi(k)│
The process is continued until the residuals ∆Pi(k) & ∆Qi(k) are less than the specified
accuracy, i.e.,
│∆Pi(k)│≤є
│∆Qi(k)│≤є
PROCEDURE
1. Bus admittance matrix, Ybus is formed for the system as given in Experiment No.2
2. Bus No.1 is chosen as slack bus, where there is a Generator. Maximum number of
iterations and tolerance for convergence of bus voltages are assumed.
3. Select any one method of Power flow or Load flow analysis viz. GS/NR/FDLF method.
4. Use suitable algorithm. In all the methods the following steps are followed.
a. Initial values of Bus voltages are assumed
b. Real and Reactive Bus Powers are calculated from Bus Power Data
c. Bus Voltages are calculated, using an acceleration factor, α= 1.6, using equations
for GS method, till convergences.
d. Line flows are calculated
e. Procedure repeated for a smaller value of acceleration factor,α such as 1.4
Note: The problems can be solved by using the available any suitable software Packages like
“MiPower” of PRDC, Bangalore or by using any power system software. To learn the MatLab
implementation (i.e. programming) of these GS method or NR methods, the algorithms or flow
charts are given in many Power system (CTPS) textbooks. . However the following simple,
sample programs are also given here, to get the programing concepts. Students are hereby,
advised to learn and modify these programs depending upon the complexity of the problems to
be solved.
Sample Programs for Gauss – Seidal (GS) method of Load flow Analysis.
Example. 1. A given 4- bus power system has the following bus data and Ybus data calculated
from the line data. Use GS method to find all bus voltages for 4 iterations.
From line data, we can find out Ybus as (refer Ybus program), Ybus =
% Assume bus no 1 as Slack bus, next npq buses as PQ buses and the remaining
as PV buses
v(1)=1.06+0i; % enter slack bus voltage given
outputs
The voltages at all buses and Q at PV - busses after iteration no 1
V(1)=1.0600 @ 0.00deg
V(2)=1.0124 @ -1.61deg
V(3)=0.9933 @ -1.48deg
V(4)=1.0400 @-0.66deg Q(4)=+0.425
V(1)=1.0600 @ 0.00deg
V(2)=1.0217 @ -1.99deg
V(3)=1.0162 @ -1.86deg
V(4)=1.0400 @-0.85deg Q(4)=+0.208
V(1)=1.0600 @ 0.00deg
V(2)=1.0259 @ -2.09deg
V(3)=1.0175 @ -1.94deg
V(4)=1.0400 @-0.91deg Q(4)=+0.185
V(1)=1.0600 @ 0.00deg
V(2)=1.0261 @ -2.11deg
V(3)=1.0175 @ -1.98deg
V(4)=1.0400 @-0.95deg Q(4)=+0.185
PROGRAM 2:
% Sample Program for Gauss- Seidal method of Load flow Analysis.
% Program to solve simple 4-bus system with Bus-1 as Slack bus,
% Bus-2 as P-V(Gen) bus and Bus-3&4 as Load buses
clear all ; clc
n=4; % No. of Buses
V=[1.04 1.04 1 1]; % Initial bus voltages given
% Bus adm. matrix Ybus or Y of the given problem
% Given: 4-bus system with Ybus as given below
Y =[ 3-j*9 -2+j*6 -1+j*3 0
-2+j*6 3666-j*11 -0.666+j*2 -1+j*3
-1+j*3 -0.666+j*2 3.666-j*11 -2+j*6
0 -1+j*3 -2+j*6 3-j*9];
type = ones(n,1); % types of buses
typechanged = zeros(n,1);
Qmax = zeros(n,1); % Reactive power range for P-V bus
Qmin = zeros(n,1);
Vmagfixed = zeros(n,1);
type(2) = 2; % Bus-2 is P-V bus
Qmax(2)=1.0; % Given Qmax & Qmin. for P-V bus
Qmin(2)=0.2;
Vmagfixed(2)=1.04; % as bus is voltage control bus
diff=10;
no_of_iter=1 % No of iterations
Vprev=V;
while (diff>0.00001 || no_of_iter==1) % ||reps OR operator
abs(V);
abs(Vprev);
disp(' Press any key to continue'); pause ; Vprev = V;
% Bus data for each bus
% Bus No:1 2 3 bus-4
P=[inf 0.5 -1 0.3];
Q=[inf 0 0.5 -0.1];
S=[inf+j*inf (0.5-j*0.2) (-0.1+j*0.5) (0.3-j*0.1)];
for i=2:n,
if type(i)==2 |typechanged(i)==1,
if (Q(i)>Qmax(i) | Q(i)<Qmin(i)),
if (Q(i)< Qmin(i))
Q(i)= Qmin(i)
else
Q(i)= Qmax(i)
end
type(i)=1;
typechanged(i)=1;
else
type(i)=2;
typechanged(i)=0;
end
end
end
sum=0.0;
for k=1:n
if(i ~= k)
sum = sum + Y(i,k)*V(k);
end
end
PROGRAM OUTPUTS
no_of_iter = 1
no_of_iter = 2
no_of_iter = 3
no_of_iter = 4
Y = abs(Ybus) ;
the = angle(Ybus) ; % Admit. angles - theta(i,j) in radians
disp(' Ybus : Admit. magnitudes '); disp(Y);
disp(' Theta in degrees ');
disp(the.*180/pi)
Vbus(1)= 1.00+0i; Vbus(2)= 1.00+0i;
Vbus(3)= 1.00+0i ; Vbus(4)= 1.00+0i ;
V = abs(Vbus); % Bus Voltage - Magnitudes
del = angle(Vbus) ; % Voltage - Phase angles i.e. delta(i)
% number of buses, number of series elememnts
nBus = 4 ; SlackBus = 1;
% Jacobian Calculations
% Computation of J1
% J1(ii)
for i=1 : nBus
T=0;
for j=1 : nBus
if((j~=i))
T=T+(V(i)*V(j)*Y(i,j)*sin(the(i,j)-del(i)+del(j)));
end
if(i ~=SlackBus)
J1(i,i)=T;
end
end
end
% J1(ij)
for i=1:nBus
for j=1:nBus
if((j ~=i)&(i~=SlackBus)&(j~=SlackBus))
J1(i,j)= -V(i)*V(j)*Y(i,j)*sin(the(i,j)-del(i)+del(j));
end;
end
end
% Computation of J2
% J2(ii)
for i=1 : nBus
T=0;
for j=1 : nBus
if((j ~=i))
T=T+(V(j)*Y(i,j)*cos(the(i,j)-del(i)+del(j)));
end;
end
if(i ~=SlackBus)
J2(i,i)=(2*V(i)*Y(i,i)*cos(the(i,i)))+T;end;
end
% J2(ij)
for i=1 : nBus
for j=1 : nBus
if((j ~=i)&(i ~=SlackBus)&(j ~=SlackBus))
J2(i,j) = V(i)*Y(i,j)*cos(the(i,j)-del(i)+del(j));end;
end
end
% Computation of J3
% J3(ii)
for i=1 : nBus
T=0;
for j=1 : nBus
if((j ~=i))
T=T+(V(i)*V(j)*Y(i,j)*cos(the(i,j)-del(i)+del(j)));end;
end
if(i ~=SlackBus)
J3(i,i)=T;end
end
% J3ij
for i=1 : nBus
for j=1 : nBus
if((j ~=i)&(i ~=SlackBus)&(j ~=SlackBus))
J3(i,j)= -V(i)*V(j)*Y(i,j)*cos(the(i,j)-del(i)+del(j));end;
end
end
% Computation of J4
% J4(ii)
end
% J4(ij)
for i=1 : nBus
for j=1 : nBus
if((j ~=i)&(i ~=SlackBus)&(j ~=SlackBus))
J4(i,j) = -V(i)*Y(i,j)*sin(the(i,j)-del(i)+del(j));end;
end
end
PROGRAM OUTPUTS
Ybus : Admittance(magnitudes)
114.0175 44.7214 70.7107 0
44.7214 70.1708 0 27.7381
70.7107 0 106.0660 35.3553
0 27.7381 35.3553 62.7913
Theta in degrees
-52.1250 116.5651 135.0000 0
116.5651 -52.1257 0 146.3008
135.0000 0 -45.0000 135.0000
0 146.3008 135.0000 -40.0340
Jacobian Matrix
For theory and problem with solution, please refer the CTPS book by Dr.K.Uma Rao.
Refer : Chapter 7. Problem no: 7.7 at page no: pp272 to 280(in old edition)
EX.7.7: Problem given is a 3-bus power system with bus 1 as Slack bus, bus 2 as a PV bus or
generator bus and bus 3 as a load(PQ)bus. From Line data Ybus can be found out as :
[ y11 = -15, yl2= 10, yl3= 5
y2l = yl2, y22=-15, y23= 5
y3 l= yl3, y32= y23, y33=-10
Bus Data given in the problem as:
Bus 1 is Slack bus with |V1| =1.0 pu voltage.
Bus 2 is Generator bus (or PV) with Pg =5.3217p.u.and |V2| =1.0pu
Load at bu3 with PL = -3.6392pu, QL= -0.5339pu
% Program for Decoupled Load Flow method for Load Flow Solution
% Note: the problem solved here is from the CTPS text book
% by : K. Uma Rao. Ref: Example7.7(pp272) for Data & solution
clc, clear all
pi=22.0/7.0 ; % For a 3-bus power system
% B(mn) element values are from Ybus matrix (Y=G+jB)as G=0, Y =jB only
bll =-15.0 ; bl2= 10.0 ; bl3= 5.0 ;
b2l = bl2 ; b22=-15.0 ; b23= 5.0 ;
b3l = bl3 ; b32 = b23 ; b33= -10.0 ;
chdel2 = ch(1) ;
chdel3 = ch(2) ;
chv3 = ch(3) ;
del2 = del2+chdel2 ;
del3=del3+chdel3 ;
% % new calculated voltage
v3 = v3+chv3 % display
disp(' ')
end
disp(' Final Voltages are:')
v1,v2,v3
OUTPUTS
Iteration= 1
Calculated Real power-P & Reactive power-Q values
Delta-P & Delta-Q values are :
pow= 5.3217
-3.6392
-0.0339
Jacobian matrix formation ,Jac =
16.5000 -5.5000 0
-5.5000 10.5000 0
0 0 9.5000
Change in del(delta) variables delta2, de1ta3, delta(v3)
ch= 0.2508
-0.2152
-0.0036
v3 = 0.9964
Iteration= 2
Calculated Real power-P & Reactive power-Q values
Delta-P & Delta-Q values are :pow = 0.1294 , -0.1127 , -0.6995
Iteration=3
Change in Del (delta) variables delta2, de1ta3, delta (v3)
ch = 0.0039 , -0.0261, -0.0108, v3 = 0.9164
Iteration=4
Change in del(delta) variables delta2, de1ta3, delta(v3)
ch = 0.0006, -0.0046 ,-0.0118, v3 = 0.9046
Iteration=5
Change in del(delta) variables delta2, de1ta3, delta(v3)
ch = 0.0007, -0.0051, -0.0014 ,v3 = 0.9031
Problem. 1
From line data, we can find out Ybus as (refer Ybus program)
Ybus =
Problem 2:
The following given data of power system of 5 bus system with 2 generating units, 6 lines, Transmission
line series impedance & shunt susceptance are given in table 1. Real power generation, real & reactive
power loads in MW & MVAR are given in table 1.2 with bus 1 as slack. Use the following methods to
obtain load flow solution.
a. Gauss – Seidal using Y-bus, with acceleration factor of 1.3 & tolerance of 0.00015 p.u. for real
and imaginary components of voltage.
b. Newton – Raphson method.
Table. 1 Line Data