Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Laboratory Manual
2017-18
-1-
List of Experiments
Sr. Page
Title of Experiment
No. No.
Computation of Complex Power flow and verification of effect of
1
load angle on active power flow.
Computation of power delivered by a generator connected to
2
infinite bus.
Computation of maximum power capacity of lossless line and
3
loadability limits
Load flow study of IEEE-30 bus system using Gauss-Seidel,
4
Newton-Raphson and Fast decoupled methods.
Computation of Optimal dispatch of power for generator units in a
5
plant.
Computation of Optimal dispatch of power for generator units in a
6
plant by considering losses & generator limits.
7 Short circuit study of generator under faults.
8 Computation of steady state stability under small disturbances.
Transient stability study for single machine and multi-machine
9
systems.
-2-
Experiment No. 1
Objective: a) To compute the complex power flow between two generating stations.
b) To verify the effect of load angle ‘δ’ on the active power flow.
Two generators with voltages V1 = 120 <-5o and V2 = 100 <0o V are connected by
a short line having impedance Z = 1 + j7 Ω. Determine the real & reactive power
supplied or received by each generator and the power loss in the line by writing a
MATLAB program.
a) Program:
R = 1; X = 7; Z = R +j*X;
V1 = 120*(cos(-5*pi/180) + j*sin(-5*pi/180));
V2 = 100+j*0;
I12 = (V1 - V2)/Z, I21 = -I12;
S12 = V1*conj(I12), S21 = V2*conj(I21)
SL = S12 + S21
PL = R*abs(I12)^2, QL = X*abs(I12)^2
Results:
I12 = -1.0733 - 2.9452i A
SL = 9.8265 +68.7858i VA
PL = 9.8265 W
QL = 68.7858 var
For the above system, compute the complex power for each generator and line
loss, if the load angle of generator 1 is changed from its initial value by ±30o in
steps of 5o. Tabulate the results of real power flow v/s load angle. Plot P1, P2, & PL
v/s load angle.
b) Program:
-3-
a2r = a2*pi/180; % convert degree to radian
V1=E1.*cos(a1r) + j*E1.*sin(a1r);
V2=E2.*cos(a2r) + j*E2.*sin(a2r);
I12 = (V1 - V2)./Z; I21=-I12;
S1= V1.*conj(I12); P1 = real(S1); Q1 = imag(S1);
S2= V2.*conj(I21); P2 = real(S2); Q2 = imag(S2);
SL= S1+S2; PL = real(SL); QL = imag(SL);
Result1=[a1, P1, P2, PL];
disp(' Delta 1 P-1 P-2 P-L ')
disp(Result1)
plot(a1, P1, a1, P2, a1, PL), grid
text(-26, -550, 'P1'), text(-26, 600,'P2'), text(-26, 100, 'PL')
xlabel('Source #1 Voltage Phase Angle'), ylabel('P, Watts')
Results:
Line Resistance = 1
Line Reactance = 7
Delta 1 P-1 P-2 P-L
-4-
Plot of P1, P2 & Pl v/s angle ‘δ’:
Conclusion:
************
-5-
Experiment No. 2
Program:
Ra=0; Xs = 9; Zs = Ra + j*Xs;
S = 40 + j*30; V = 30/sqrt(3);
Ia1 = conj(S)*1000/(3*conj(V));
Ia1M = abs(Ia1), Ia1ang=angle(Ia1)*180/pi
E1 = V + Zs*Ia1*0.001;
E1M = abs(E1), delta1 = angle(E1)*180/pi
disp('(b)')
P = 25;
delta2 = asin(P*Xs/(3*abs(E1)*V)); delta2d = delta2*180/pi
E2 = E1M*(cos(delta2) +j*sin(delta2));
Ia2 = (E2 - V)*1000/Zs; Ia2M = abs(Ia2), Ia2ang=angle(Ia2)*180/pi
PF = cos(angle(Ia2))
disp('(c)')
Pmax = 3 *E1M*V/Xs
E3 = E1M*(cos(pi/2) +j*sin(pi/2));
Ia3 = (E3 -V)*1000/Zs;
Ia3M = abs(Ia3), Ia3ang=angle(Ia3)*180/pi
PF = cos(angle(Ia3))
Results:
(1)
Ia1M = 962.2504 A
Ia1ang = -36.8699o
E1M = 23.5584 kV
delta1 = 17.1027o
(2)
delta2d = 10.5914o
Ia2M = 807.4918 A
Ia2ang = -53.4284o
PF = 0.5958 lag
(3)
Pmax = 136.0147 MW
Ia3M = 3.2489e+03 A
-6-
Ia3ang = 36.3239o
PF = 0.8057 lead
Program:
Ra=0; Xs = 9; Zs = Ra + j*Xs;
V = 30/sqrt(3); P = 40;
E1M = 0.792*23.558;
delta1 = asin(P*Xs/(3*abs(E1M)*V)); delta1d = delta1*180/pi
E1 = E1M*(cos(delta1) +j*sin(delta1));
Ia1 = (E1 - V)*1000/Zs; Ia1M = abs(Ia1), Ia1ang=angle(Ia1)*180/pi
PF = 1
disp('(b)')
E2M = 0.5925*23.558;
delta2 = asin(P*Xs/(3*E2M*V)); delta2d = delta2*180/pi
E2 = E2M*(cos(delta2) +j*sin(delta2));
Ia2 = (E2 - V)*1000/Zs; Ia2M = abs(Ia2), Ia2ang=angle(Ia2)*180/pi
PF = cos(angle(Ia2))
disp('(c)')
E3M = P *Xs/(3*V*1)
E3=E3M*(cos(pi/2)+j*sin(pi/2));
Ia3 = (E3 -V)*1000/Zs;
Ia3M = abs(Ia3), Ia3ang=angle(Ia3)*180/pi
PF = cos(angle(Ia3))
Results:
(1)
delta1d = 21.7975o
Ia1M = 769.8005 A
Ia1ang = -0.0283o
PF = 1
(2)
delta2d = 29.7592o
Ia2M = 962.7210 A
Ia2ang = 36.9072o
PF = 0.7996 lead
(3)
E3M = 6.9282 kV
Ia3M = 2.0728e+03 A
Ia3ang = 68.1986o
PF = 0.3714 lead
-7-
For the above system construct the V- curve for rated load of 40 MW with field excitation
varying from 0.4 p.f. leading to 0.4 p.f. lagging. Assume open circuit generated voltage to be
E = (2000 x If) volts in the operating region.
Program:
P = 40; % real power, MW
V = 30/sqrt(3)+ j*0; % phase voltage, kV
Zs = j*9; % synchronous impedance
ang = acos(0.4);
theta=ang:-0.01:-ang; % Angle from 0.4 leading to 0.4 lagging pf
P= P*ones(1,length(theta)); % generates P array of same size
Iam = P./(3*abs(V)*cos(theta)); % current magnitude kA
Ia = Iam.*(cos(theta) + j*sin(theta)); % current phasor
E = V + Zs.*Ia; % excitation voltage phasor
Em = abs(E); % excitation voltage magnitude, kV
If = Em*1000/2000; % field current, A
plot(If, Iam), grid
xlabel('If, A'), ylabel('Ia, kA')
text(3.4, 1, 'Leading pf'), text(13, 1, 'Lagging pf')
text(9, .71, 'Upf')
Results:
Conclusion:
-8-
Experiment No. 3
δ = 36.870
a) Based on practical line loadability equation determine a nominal voltage level for the
line.
b) For the line voltage level obtained in (a) calculate the theoretical maximum power that
can be transferred by this line.
Program:
VS=1.0; VR=0.9; lambda=5000; Zc=320; delta=36.87*pi/180; P=700; lngth=315;
betal=2*pi/lambda*lngth
SIL=P*sin(betal)/(VS*VR*sin(delta))
KVL = sqrt(Zc*SIL)
disp('(b)')
Xd=Zc*sin(betal)
Pmax=KVL*0.9*KVL/Xd
Results:
SIL = 499.8299 MW
KVL = 399.9320 kV
(b)
Xd = 123.3869 Ω
Pmax = 1.1667e+03 MW
-9-
A 3-phase 60 Hz, 550 kV transmission line is 300 km long. The line parameters per phase per
unit length are:
a) Determine the line performance when load at the receiving end is 800 MW, 0.8 p.f.
lagging at 500 kV.
Program:
>>Lineperf
A, B, C, D constants 4
To quit 0
Enter Frequency in Hz = 60
- 10 -
Enter line conductance/phase in siemens per unit length g = 0
Equivalent pi model
-------------------
ABCD =
>>Listmenu
>> Select number of menu -->1
>> Givensr(ABCD)
Enter receiving end line-line voltage kV = 500
Enter receiving end 3-phase reactive power(+ for lagging & - for leading power factor)
Mvar = 600
Results:
-------------------------------------------------------
Vr = 500 kV (L-L) at 0ø
- 11 -
Ps = 815.404 MW Qs = 535.129 Mvar
b) Determine receiving end quantities and line performance when 600 MW and 400 Mvar
are being transmitted at 525 kV from sending end.
Program:
>>Listmenu
----------Analysis---------- Select
Short-circuited line 5
Capacitive compensation 6
To quit 0
>>Givenss(ABCD)
Enter sending end line-line voltage kV = 525
Enter sending end voltage phase angleø (for Ref. enter 0 ) = 0
Enter sending end 3-phase real power MW = 600
Enter sending end 3-phase reactive power(+ for lagging & - for leading
power factor) Mvar = 400
Results:
- 12 -
Line performance for specified sending end quantities
-----------------------------------------------------
Vs = 525 kV (L-L) at 0ø
c) Determine the sending end quantities and the line performance when the receiving
end load impedance is 290 Ω at 500 kV.
Program:
>>Listmenu
TRANSMISSION LINE PERFORMANCE
----------Analysis---------- Select
Short-circuited line 5
Capacitive compensation 6
To quit 0
- 13 -
>>Givenz1 (ABCD)
Enter receiving end line-line voltage kV = 500
Enter receiving end voltage phase angleø (for Ref. enter 0 ) = 0
Enter receiving end complex load impedance Rload + j*Xload in ê/phase
Zload = 290+j*0
Results:
---------------------------------------------
Vr = 500 kV (L-L) at 0ø
Ir = 995.431 A at 0ø PFr = 1
Pr = 862.069 MW Qr = 0 Mvar
d) Find receiving end voltage when line is terminated in an open circuit and is energized
with 500 kV at sending end. Also determine the reactance and Mvar of shunt reactor
to be installed at receiving end to limit no-load receiving voltage to 500 kV.
Program:
>>Listmenu
>>Select number of menu --> 4
>>Openline(ABCD)
Results:
----------------------------------------
Vs = 500 kV (L-L) at 0ø
- 14 -
Desired no load receiving end voltage with shunt reactor compensation kV (L-L) = 500
e) Find receiving and sending end currents when line is terminated in a short circuit.
Program:
>>Listmenu
>> Select number of menu --> 5
>>Shcktlin(ABCD)
Results:
-----------------------------------------
Vs = 500 kV (L-L) at 0ø
- 15 -
Ir = 2692.45 A at -87.5549ø
Is = 2502.65 A at -87.367ø
f) To improve the line voltage regulation obtained in (a) determine the Mvar and the
shunt capacitance to be installed at receiving end to maintain receiving end voltage
at 500 kV when sending end voltage is 500 kV.
Program:
>>Listmenu
>> Select number of menu --> 6
This will display ‘Compmenu’.
>>Compmenu
CAPACITIVE COMPENSATION
Analysis Select
-------- ------
Shunt capacitive compensation 1
Series capacitive compensation 2
Series & Shunt capacitive compensation 3
To quit 0
Select number of menu --> 1
>> Shntcomp(ABCD)
Enter sending end line-line voltage kV = 500
Enter desired receiving end line-line voltage kV = 500
Enter receiving end voltage phase angleø (for Ref. enter 0 ) = 0
Enter receiving end 3-phase real power MW = 800
Enter receiving end 3-phase reactive power(+ for lagging & - for
leading power factor) Mvar = 600
Results:
-----------------------------
Vr = 500 kV (L-L) at 0ø
- 16 -
Load current = 1154.7 A at -36.8699ø PFl = 0.8 lagging
Program:
>>Compmenu
>>Select number of menu --> 2
>> Sercomp(ABCD)
Enter receiving end line-line voltage kV = 500
Enter receiving end voltage phase angleø (for Ref. enter 0 ) = 0
Enter receiving end 3-phase real power MW = 800
Enter receiving end 3-phase reactive power(+ for lagging & - for
leading power factor) Mvar = 600
Enter percent compensation for series capacitor(recommnded range 25
to 75% of the line reactance) = 40
Results:
-----------------------------
Vr = 500 kV (L-L) at 0ø
- 17 -
Vs = 571.904 kV (L-L) at 9.95438ø
h) With 40% series capacitor compensation and the load as in case (a), determine the
Mvar and shunt capacitance to be installed at receiving end to keep receiving end
voltage at 500 kV when sending end voltage is 500 kV.
Program:
>>Listmenu
>>Select number of menu --> 6
>>Compmenu
>>Select number of menu --> 3
>>Srshcomp(ABCD)
Enter sending end line-line voltage kV = 500
Enter desired receiving end line-line voltage kV = 500
Enter receiving end voltage phase angleø (for Ref. enter 0 ) = 0
Enter receiving end 3-phase real power MW = 800
Enter receiving end 3-phase reactive power(+ for lagging & - for
leading power factor) Mvar = 600
Enter percent compensation for series capacitor(recommended range 25
to 75% of the line reactance) = 40
Results:
---------------------------------------
Vr = 500 kV (L-L) at 0ø
- 18 -
Required series capacitor: 42.8476 ohm, 61.9074 micro F, 37.7274 Mvar
Program:
>>Listmenu
>> Select number of menu --> 7
>> Pwrcirc(ABCD)
Receiving end power circle diagram
----------------------------------
Enter receiving end line-line voltage kV = 500
- 19 -
j) Determine line voltage profiles for – i) No-load, ii) Rated load, iii) Line terminated in
SIL and iv) line short circuited.
Program:
>>Listmenu
>> Select number of menu --> 8
>> Profmenu
Voltage profile and line loadability
Select
------
Voltage profile curves 1
Line loadability curves 2
To quit 0
Select number of menu --> 1
>> Vprofile(r,L,C,f)
Voltage profile for line length up to 1/8 wavelength
----------------------------------------------------
Enter sending end line-line voltage kV = 500
Enter rated sending end power, MVA = 1000
Enter power factor = 0.8
- 20 -
k) Obtain line loadability curves
Program:
>> Profmenu
Voltage profile and line loadability
Select
------
Voltage profile curves 1
Line loadability curves 2
To quit 0
Select number of menu --> 2
>> Loadabil(L,C,f)
Loadability curve of a lossless line (up to 1/4 wavelength
----------------------------------------------------------
Enter sending end line-line voltage kV = 500
Enter receiving end line-line voltage kV = 500
Enter rated line-line voltage kV = 500
Enter line current-carrying capacity, Amp/phase = 3500
- 21 -
Conclusion:
1) Comment on the performance of the line when the load at receiving end is equal
to Zc.
2) Comment on the performance of the line when it is open circuited at R.E. Also
comment on the voltage profile when the line is a) uncompensated & b)
compensated using shunt reactor.
3) Why the sending end current is less than receiving end current when the line is
short circuited at R.E.?
4) Comment on the line voltage regulation hwen it is compensated using a) Shunt
capacitor, b) series capacitor & c) shunt-series capacitor.
5) What is the use of R.E. circle diagram?
6) Comment on the line voltage profile under various operating conditions. How does
the line length affect the power transmission capacity of AC transmission line?
- 22 -
Experiment No. 4
Objective: Load flow study of IEEE-30 bus system using Gauss-Seidel, Newton-
Raphson and Fast decoupled methods.
- 23 -
a) Perform the Load flow Analysis on IEEE-30 bus test system using
Gauss-Seidel method.
Program:
>> Chp6ex9
>> basemva = 100; accuracy = 0.001; accel = 1.8; maxiter =
100;
>> busdata
Results:
% IEEE 30-BUS TEST SYSTEM (American Electric Power)
% Bus Bus Voltage Angle ---Load---- -------Generator----- Injected
% No code Mag. Degree MW Mvar MW Mvar Qmin Qmax Mvar
busdata=[1 1 1.06 0.0 0.0 0.0 0.0 0.0 0 0 0
2 2 1.043 0.0 21.70 12.7 40.0 0.0 -40 50 0
3 0 1.0 0.0 2.4 1.2 0.0 0.0 0 0 0
4 0 1.06 0.0 7.6 1.6 0.0 0.0 0 0 0
5 2 1.01 0.0 94.2 19.0 0.0 0.0 -40 40 0
6 0 1.0 0.0 0.0 0.0 0.0 0.0 0 0 0
7 0 1.0 0.0 22.8 10.9 0.0 0.0 0 0 0
8 2 1.01 0.0 30.0 30.0 0.0 0.0 -30 40 0
9 0 1.0 0.0 0.0 0.0 0.0 0.0 0 0 0
10 0 1.0 0.0 5.8 2.0 0.0 0.0 -6 24 19
11 2 1.082 0.0 0.0 0.0 0.0 0.0 0 0 0
12 0 1.0 0 11.2 7.5 0 0 0 0 0
13 2 1.071 0 0 0.0 0 0 -6 24 0
14 0 1 0 6.2 1.6 0 0 0 0 0
15 0 1 0 8.2 2.5 0 0 0 0 0
16 0 1 0 3.5 1.8 0 0 0 0 0
17 0 1 0 9.0 5.8 0 0 0 0 0
18 0 1 0 3.2 0.9 0 0 0 0 0
19 0 1 0 9.5 3.4 0 0 0 0 0
20 0 1 0 2.2 0.7 0 0 0 0 0
21 0 1 0 17.5 11.2 0 0 0 0 0
22 0 1 0 0 0.0 0 0 0 0 0
23 0 1 0 3.2 1.6 0 0 0 0 0
24 0 1 0 8.7 6.7 0 0 0 0 4.3
25 0 1 0 0 0.0 0 0 0 0 0
26 0 1 0 3.5 2.3 0 0 0 0 0
27 0 1 0 0 0.0 0 0 0 0 0
28 0 1 0 0 0.0 0 0 0 0 0
29 0 1 0 2.4 0.9 0 0 0 0 0
30 0 1 0 10.6 1.9 0 0 0 0 0];
- 24 -
>> linedata
% Line code
% Bus bus R X 1/2 B = 1 for lines
% nl nr p.u. p.u. p.u. > 1 or < 1 tr. tap at bus nl
linedata=[1 2 0.0192 0.0575 0.02640 1
1 3 0.0452 0.1852 0.02040 1
2 4 0.0570 0.1737 0.01840 1
3 4 0.0132 0.0379 0.00420 1
2 5 0.0472 0.1983 0.02090 1
2 6 0.0581 0.1763 0.01870 1
4 6 0.0119 0.0414 0.00450 1
5 7 0.0460 0.1160 0.01020 1
6 7 0.0267 0.0820 0.00850 1
6 8 0.0120 0.0420 0.00450 1
6 9 0.0 0.2080 0.0 0.978
6 10 0 .5560 0 0.969
9 11 0 .2080 0 1
9 10 0 .1100 0 1
4 12 0 .2560 0 0.932
12 13 0 .1400 0 1
12 14 .1231 .2559 0 1
12 15 .0662 .1304 0 1
12 16 .0945 .1987 0 1
14 15 .2210 .1997 0 1
16 17 .0824 .1923 0 1
15 18 .1073 .2185 0 1
18 19 .0639 .1292 0 1
19 20 .0340 .0680 0 1
10 20 .0936 .2090 0 1
10 17 .0324 .0845 0 1
10 21 .0348 .0749 0 1
10 22 .0727 .1499 0 1
21 22 .0116 .0236 0 1
15 23 .1000 .2020 0 1
22 24 .1150 .1790 0 1
23 24 .1320 .2700 0 1
24 25 .1885 .3292 0 1
25 26 .2544 .3800 0 1
25 27 .1093 .2087 0 1
28 27 0 .3960 0 0.968
27 29 .2198 .4153 0 1
27 30 .3202 .6027 0 1
29 30 .2399 .4533 0 1
8 28 .0636 .2000 0.0214 1
6 28 .0169 .0599 0.065 1];
- 25 -
>> Lfybus
Results: Y-Bus matrix is computed by the program.
>> Lfgauss
>> Busout
- 26 -
>> Lineflow
Results:
Line Flow and Losses
- 27 -
28 -0.570 -2.366 2.433 0.000 -4.368
- 28 -
19 -9.500 -3.400 10.090
18 -2.774 -0.777 2.881 0.005 0.010
20 -6.703 -2.675 7.217 0.017 0.034
- 29 -
30 -10.600 -1.900 10.769
27 -6.932 -1.359 7.064 0.162 0.304
29 -3.683 -0.537 3.722 0.034 0.063
b) Perform the Load flow Analysis on IEEE-30 bus test system using Newton-
Raphson method.
>>basemva = 100; accuracy = 0.001; maxiter = 12;
>>Lfnewton
>> Busout
>> Lineflow
Results:
- 30 -
25 0 1 0 0 0.0 0 0 0 0 0
26 0 1 0 3.5 2.3 0 0 0 0 0
27 0 1 0 0 0.0 0 0 0 0 0
28 0 1 0 0 0.0 0 0 0 0 0
29 0 1 0 2.4 0.9 0 0 0 0 0
30 0 1 0 10.6 1.9 0 0 0 0 0];
>> linedata
% Line code
% Bus bus R X 1/2 B = 1 for lines
% nl nr p.u. p.u. p.u. > 1 or < 1 tr. tap at bus nl
linedata=[1 2 0.0192 0.0575 0.02640 1
1 3 0.0452 0.1852 0.02040 1
2 4 0.0570 0.1737 0.01840 1
3 4 0.0132 0.0379 0.00420 1
2 5 0.0472 0.1983 0.02090 1
2 6 0.0581 0.1763 0.01870 1
4 6 0.0119 0.0414 0.00450 1
5 7 0.0460 0.1160 0.01020 1
6 7 0.0267 0.0820 0.00850 1
6 8 0.0120 0.0420 0.00450 1
6 9 0.0 0.2080 0.0 0.978
6 10 0 .5560 0 0.969
9 11 0 .2080 0 1
9 10 0 .1100 0 1
4 12 0 .2560 0 0.932
12 13 0 .1400 0 1
12 14 .1231 .2559 0 1
12 15 .0662 .1304 0 1
12 16 .0945 .1987 0 1
14 15 .2210 .1997 0 1
16 17 .0824 .1923 0 1
15 18 .1073 .2185 0 1
18 19 .0639 .1292 0 1
19 20 .0340 .0680 0 1
10 20 .0936 .2090 0 1
10 17 .0324 .0845 0 1
10 21 .0348 .0749 0 1
10 22 .0727 .1499 0 1
21 22 .0116 .0236 0 1
15 23 .1000 .2020 0 1
22 24 .1150 .1790 0 1
23 24 .1320 .2700 0 1
24 25 .1885 .3292 0 1
25 26 .2544 .3800 0 1
25 27 .1093 .2087 0 1
28 27 0 .3960 0 0.968
27 29 .2198 .4153 0 1
27 30 .3202 .6027 0 1
- 31 -
29 30 .2399 .4533 0 1
8 28 .0636 .2000 0.0214 1
6 28 .0169 .0599 0.065 1];
>> Lfybus
Results: Y-Bus matrix is computed by the program.
>>Lfnewton
>> Busout
Results:
Power Flow Solution by Newton-Raphson Method
Maximum Power Mismatch = 7.54898e-07
No. of Iterations = 4
- 32 -
Total 283.400 126.200 300.998 125.144 23.300
>> Lineflow
Results:
- 33 -
6 -29.425 3.196 29.598 0.103 -0.558
28 -0.575 -2.370 2.438 0.000 -4.368
- 34 -
19 2.775 0.765 2.879 0.005 0.010
- 35 -
30 3.704 0.606 3.753 0.033 0.063
c) Perform the Load flow Analysis on IEEE-30 bus test system using Fast
Decoupled method.
>> busdata
Results:
% IEEE 30-BUS TEST SYSTEM (American Electric Power)
% Bus Bus Voltage Angle ---Load---- -------Generator----- Injected
% No code Mag. Degree MW Mvar MW Mvar Qmin Qmax Mvar
busdata=[1 1 1.06 0.0 0.0 0.0 0.0 0.0 0 0 0
2 2 1.043 0.0 21.70 12.7 40.0 0.0 -40 50 0
3 0 1.0 0.0 2.4 1.2 0.0 0.0 0 0 0
4 0 1.06 0.0 7.6 1.6 0.0 0.0 0 0 0
5 2 1.01 0.0 94.2 19.0 0.0 0.0 -40 40 0
6 0 1.0 0.0 0.0 0.0 0.0 0.0 0 0 0
7 0 1.0 0.0 22.8 10.9 0.0 0.0 0 0 0
8 2 1.01 0.0 30.0 30.0 0.0 0.0 -10 40 0
9 0 1.0 0.0 0.0 0.0 0.0 0.0 0 0 0
10 0 1.0 0.0 5.8 2.0 0.0 0.0 -6 24 19
11 2 1.082 0.0 0.0 0.0 0.0 0.0 0 0 0
12 0 1.0 0 11.2 7.5 0 0 0 0 0
13 2 1.071 0 0 0.0 0 0 -6 24 0
14 0 1 0 6.2 1.6 0 0 0 0 0
15 0 1 0 8.2 2.5 0 0 0 0 0
16 0 1 0 3.5 1.8 0 0 0 0 0
17 0 1 0 9.0 5.8 0 0 0 0 0
18 0 1 0 3.2 0.9 0 0 0 0 0
19 0 1 0 9.5 3.4 0 0 0 0 0
20 0 1 0 2.2 0.7 0 0 0 0 0
21 0 1 0 17.5 11.2 0 0 0 0 0
22 0 1 0 0 0.0 0 0 0 0 0
23 0 1 0 3.2 1.6 0 0 0 0 0
24 0 1 0 8.7 6.7 0 0 0 0 4.3
25 0 1 0 0 0.0 0 0 0 0 0
26 0 1 0 3.5 2.3 0 0 0 0 0
- 36 -
27 0 1 0 0 0.0 0 0 0 0 0
28 0 1 0 0 0.0 0 0 0 0 0
29 0 1 0 2.4 0.9 0 0 0 0 0
30 0 1 0 10.6 1.9 0 0 0 0 0];
>> Lineflow
Results:
% Line code
% Bus bus R X 1/2 B = 1 for lines
% nl nr p.u. p.u. p.u. > 1 or < 1 tr. tap at bus nl
linedata=[1 2 0.0192 0.0575 0.02640 1
1 3 0.0452 0.1852 0.02040 1
2 4 0.0570 0.1737 0.01840 1
3 4 0.0132 0.0379 0.00420 1
2 5 0.0472 0.1983 0.02090 1
2 6 0.0581 0.1763 0.01870 1
4 6 0.0119 0.0414 0.00450 1
5 7 0.0460 0.1160 0.01020 1
6 7 0.0267 0.0820 0.00850 1
6 8 0.0120 0.0420 0.00450 1
6 9 0.0 0.2080 0.0 0.978
6 10 0 .5560 0 0.969
9 11 0 .2080 0 1
9 10 0 .1100 0 1
4 12 0 .2560 0 0.932
12 13 0 .1400 0 1
12 14 .1231 .2559 0 1
12 15 .0662 .1304 0 1
12 16 .0945 .1987 0 1
14 15 .2210 .1997 0 1
16 17 .0824 .1923 0 1
15 18 .1073 .2185 0 1
18 19 .0639 .1292 0 1
19 20 .0340 .0680 0 1
10 20 .0936 .2090 0 1
10 17 .0324 .0845 0 1
10 21 .0348 .0749 0 1
10 22 .0727 .1499 0 1
21 22 .0116 .0236 0 1
15 23 .1000 .2020 0 1
22 24 .1150 .1790 0 1
23 24 .1320 .2700 0 1
24 25 .1885 .3292 0 1
25 26 .2544 .3800 0 1
25 27 .1093 .2087 0 1
28 27 0 .3960 0 0.968
27 29 .2198 .4153 0 1
- 37 -
27 30 .3202 .6027 0 1
29 30 .2399 .4533 0 1
8 28 .0636 .2000 0.0214 1
6 28 .0169 .0599 0.065 1];
Result:
- 38 -
26 1.001 -16.840 3.500 2.300 0.000 0.000 0.000
27 1.026 -15.912 0.000 0.000 0.000 0.000 0.000
28 1.011 -12.057 0.000 0.000 0.000 0.000 0.000
29 1.006 -17.136 2.400 0.900 0.000 0.000 0.000
30 0.995 -18.014 10.600 1.900 0.000 0.000 0.000
Result:
Line Flow and Losses
- 39 -
28 18.818 -9.618 21.133 0.060 -13.086
- 40 -
17 -9.000 -5.800 10.707
16 -3.641 -1.424 3.910 0.012 0.027
10 -5.359 -4.376 6.918 0.014 0.037
- 41 -
28 0.000 0.000 0.000
27 18.183 5.466 18.987 -0.000 1.309 0.968
8 0.576 -1.999 2.080 0.000 -4.368
6 -18.758 -3.468 19.076 0.060 -13.086
Conclusion:
- 42 -
Experiment No. 5
a) The fuel-cost functions for three thermal plants is $/h are given by
C1=500 + 5.3P1 +0.004P12
C2=400 + 5.5P2 + 0.006 P22
C1=500 + 5.8P1 + 0.009 P32
Where P12, P22, P32 are in MW. The total load Pd is 800MW.Neglecting line losses and generator
limits, find the optimal dispatch and total cost in$/h
by iterative technique using the gradient method.
Program:
% Iterative solution Using Newton method
alpha =[500; 400; 200];
beta = [5.3; 5.5; 5.8]; gama=[.004; .006; .009];
PD=800;
DelP = 10; % Error in DelP is set to a high value
lambda = input('Enter estimated value of Lambda = ');
fprintf('\n ')
disp([' Lambda P1 P2 P3 DP'...
' grad Delambda'])
iter = 0; % Iteration counter
while abs(DelP) >= 0.001 % Test for convergence
iter = iter + 1; % No. of iterations
P = (lambda - beta)./(2*gama);
DelP =PD - sum(P); % Residual
J = sum( ones(length(gama), 1)./(2*gama)); % Gradient sum
Delambda = DelP/J; % Change in variable
disp([lambda, P(1), P(2), P(3), DelP, J, Delambda])
lambda = lambda + Delambda; % Successive solution
end
totalcost = sum(alpha + beta.*P + gama.*P.^2)
%Graphical Demonstration of Example 7.4
axis([0 450 6.5 10.5]);
P1=250:10:450; P2 = 150:10:350; P3=100:10:250;
IC1= 5.3 + 0.008*P1;
IC2= 5.5 + 0.012*P2;
IC3= 5.8 + 0.018*P3;
Px = 0:100:400;
plot(P1, IC1, P2, IC2, P3, IC3, Px, lambda*ones(1, length(Px)),'-m'),
xlabel('P, MW'), ylabel(' $/MWh'), grid
- 43 -
>>Result:-
>>Enter estimated value of Lambda = 6
totalcost =
6.6825e+03
- 44 -
b) Neglecting generator limits and system losses ,use dispatch program to obtain the
optimal dispatch of generation for thermal plant specified in (a)
cost = [500 5.3 0.004
400 5.5 0.006
200 5.8 0.009];
limits=[200 450
150 350
100 225];
Pdt = 800;
dispatch
gencost
Result:-
>> chp7ex5
400.0000
250.0000
150.0000
c) Find the optimal dispatch and the total cost in $/h for the thermal plants of (a),when the
total load is 975 MW with the following generator limits ( in MW)
cost = [500 5.3 0.004
400 5.5 0.006
200 5.8 0.009];
mwlimits=[200 450
150 350
100 225];
Pdt = 975;
dispatch
gencost
Result:
>> chp7ex6
- 45 -
450.0000
325.0000
200.0000
Conclusion:
- 46 -
Experiment No. 6
a) The fuel-cost functions for three thermal plants of power system are
C1= 200 + 7.0P1 +0.008P12
C2= 180 + 6.3P2 + 0.009 P22
C1= 140 + 6.8P1 + 0.007 P32
Where P12, P22 and P32 are in MW.Plant outputs are subject to the following limits
10 MW ≤ 85 MW
10 MW ≤ 80 MW
10 MW ≤ 70 MW
Program:
cost = [200 7.0 0.008
180 6.3 0.009
140 6.8 0.007];
mwlimits =[10 85
10 80
10 70];
Pdt = 150;
B = [0.0218 0 0
0 0.0228 0
0 0 0.0179];
basemva = 100;
dispatch
gencost
Result:->> >>
35.0907
64.1318
52.4767
- 47 -
Total generation cost = 1592.65 $/h
b) The one-line diagram of a power system described below. The B matrices of the loss formula
and they are given in per unit on a 100 MVA base as follows. Cost functions, generator limits
and total loads are given (a)
B00 = 0.00030523
Program:
cost = [200 7.0 0.008
180 6.3 0.009
140 6.8 0.007];
mwlimits =[10 85
10 80
- 48 -
10 70];
Pdt = 150;
B00 = 0.00030523;
basemva = 100;
dispatch
gencost
Result:->>
33.4701
64.0974
55.1012
c) One-line diagram of a simple 5-bus power system with generator at buses 1.2 and 3.Bus
1,with its voltage set at 1.06<00 pu ,is taken slack bus .voltage magnitude and real power
generation at buses 2 and 3 are 1.045 pu,40 MW and 1.030 pu,30 MW respectively.
Obtain the load flow solution and the loss coefficient in pu.
- 49 -
Program:
clear
basemva = 100; accuracy = 0.0001; maxiter = 10;
% Line code
% Bus bus R X 1/2 B = 1 for lines
% nl nr p.u. p.u. p.u. > 1 or < 1 tr. tap at bus nl
linedata=[1 2 0.02 0.06 0.030 1
1 3 0.08 0.24 0.025 1
2 3 0.06 0.18 0.020 1
2 4 0.06 0.18 0.020 1
2 5 0.04 0.12 0.015 1
3 4 0.01 0.03 0.010 1
4 5 0.08 0.24 0.025 1];
Result:-
- 50 -
No. of Iterations = 3
B00 = 3.0523e-04
Conclusion:
1) What is penalty factor? How does it affect the load sharing of generators?
2) Comment on load sharing when generator limits are considered.
3) Why there is difference in reactive power demanded by load and reactive power generated by
units?
- 51 -
Experiment No. 7
Program:
- 52 -
Result:
- 53 -
- 54 -
b) A line-to-line short circuit occurs between phases b and c at the armature
terminals.
Program:
Result:
- 55 -
c) A line-to-ground short circuit occurs on phase a of the armature terminals.
Program:
Result:
- 56 -
d) A three-phase, 60-Hz synchronous machine is driven at constant synchronous
speed by a prime mover. The armature windings are initially open-circuited and
field voltage is adjusted so that the armature terminal voltage is at the rated
- 57 -
value (i.e., 1.0 per unit).The machine has the following per unit reactance and
time constants.
1) Determine the steady state, transient and subtransient short circuit currents.
2) Obtain the fundamental-frequency waveform of the armature current for a
three phase short circuit at the terminals of the generator.
Program:
Result:
- 58 -
Conclusion:
1) Comment on the nature of short circuit currents of all the phases for different types of faults.
2) Why the current magnitude is very high in sub-transient region?
- 59 -
Experiment No. 8
Program:
Result:
E =1.3500
Pmax = 2.0769
d0 = 0.2931
Ps =1.9884
- 60 -
wn =6.1405
z =0.2131
wd =5.9995
fd =0.9549
tau =0.7643
th =1.3561
b) The generator of (a) is operating in the steady state at ∂ 0 =16.790 when input power
is increased by a small amount ΔP = 0.2 pu. The generator excitation and the infinite
bus bar voltage are E’ = 1.35 pu and V =1.0 pu.
i) Obtain the response using the MATLAB step function.
ii) Obtain a SIMULINK block diagram representation of the state-space model and
simulate to obtain the response.
Program :
E = 1.35, V= 1.0; H= 9.94; X=0.65; Pm=0.6; D=0.138; f0 = 60;
Pmax = E*V/X, d0 = asin(Pm/Pmax) % Max. power
Ps = Pmax*cos(d0) % Synchronizing power coefficient
wn = sqrt(pi*60/H*Ps) % Undamped frequency of of oscillation
z = D/2*sqrt(pi*60/(H*Ps)) % Damping ratio
wd = wn*sqrt(1-z^2), fd = wd/(2*pi) %Damped frequency oscill.
tau = 1/(z*wn) % Time constant
th = acos(z) % Phase angle theta
Dp = 0.2; Du = pi*f0/H*Dp; % Small step change in power input
t = 0:.01:3;
- 61 -
Dd = Du/wn^2*(1- 1/sqrt(1-z^2)*exp(-z*wn*t).*sin(wd*t + th));
d = (d0+Dd)*180/pi; % Load angle in degrees
Dw = Du/(wn*sqrt(1-z^2))*exp(-z*wn*t).*sin(wd*t);
f = f0 + Dw/(2*pi); % Frequency in Hz
figure(1), subplot(2,1,1), plot(t, d), grid
xlabel('t, sec'), ylabel('Delta, degrees')
subplot(2,1,2), plot(t, f), grid
xlabel('t, sec'), ylabel('Frequency, Hz')
subplot(111)
% Step response using step function
Result (a):
- 62 -
Simulation:
Results:
- 63 -
Conclusion:
1) What is the meaning of small signal stability of generator unit?
2) Comment on the small signal stability of the SMIB system for ΔP = 0.2 pu.
3) How does the initial angle δ affect the small signal stability?
- 64 -
Experiment No. 9
Objective: Transient stability study for single machine and multi-machine systems.
1) A 60 Hz synchronous generator having inertia constant H = 5 MJ/MVA and a transient
reactance X’d =0.3 pu is connected to an infinite bus through a purely reactive circuit.
The generator is delivering real power of 0.8 pu and Q = 0.074 pu to the infinite bus
at a voltage of V = 1 pu.
A three-phase fault at the middle of one line is cleared by isolating the faulted circuit
simultaneously at both ends.
a) The fault is cleared in 0.3 second. Obtain the numerical solution of the swing equation for 1.0
second using modified Euler method with a step size of Δt =0.01 second.
b) Repeat the simulation and obtain the swing plots for the critical clearing time, and when fault is
cleared in 0.4 and 0.5 second.
Program: global Pm f H E V X1 X2 X3
Pm = 0.80; E = 1.17; V = 1.0;
X1 = 0.65; X2 = 1.80; X3 = 0.8;
H = 5.0; f = 60; tf = 1; Dt = 0.01;
% (a) Fault is cleared in 0.3 sec.
tc = 0.3;
swingmeu(Pm, E, V, X1, X2, X3, H, f, tc, tf, Dt)
% (b) Fault is cleared in 0.4 sec. and 0.5 sec.
tc = .5;
swingmeu(Pm, E, V, X1, X2, X3, H, f, tc, tf, Dt)
tc = .4;
swingmeu(Pm, E, V, X1, X2, X3, H, f, tc, tf, Dt)
- 65 -
- 66 -
c) Obtain a SIMULINK block diagram model for the swing equation and simulate for a fault clearing
time of 0.3, 0.4 and 0.5 second.
Simulation:
- 67 -
1) The power system network of an electrical utility company as shown given below.
The three phase fault occurs on line 4-6 near bus 6, and is cleared by simultaneous opening
of breakers at both ends of the line.
Program:
basemva = 100; accuracy = 0.0001; maxiter = 10;
busdata=[1 1 1.06 0.0 00.00 00.00 0.00 00.00 0 0 0
2 2 1.04 0.0 00.00 00.00 150.00 00.00 0 140 0
3 2 1.03 0.0 00.00 00.00 100.00 00.00 0 90 0
4 0 1.0 0.0 100.00 70.00 00.00 00.00 0 0 0
5 0 1.0 0.0 90.00 30.00 00.00 00.00 0 0 0
6 0 1.0 0.0 160.00 110.00 00.00 00.00 0 0 0];
- 68 -
4 6 0.028 0.125 0.0035 1.0
5 6 0.026 0.175 0.0300 1.0];
% Gen. Ra Xd' H
gendata=[ 1 0 0.20 20
2 0 0.15 4
3 0 0.25 5];
trstab
Result:
Power Flow Solution by Newton-Raphson Method
Maximum Power Mismatch = 1.80187e-07
No. of Iterations = 4
>> trstab
Ybf =
- 69 -
3 1.1427 13.0644 1.0000
Ydf =
Fault is cleared by opening a line. The bus to bus nos. of the line to be removed must be entered within
brackets, e.g. [5, 7]
Yaf =
- 70 -
Another clearing time of fault? Enter 'y' or 'n' within quotes -> 'y'
- 71 -
Conclusion:
1) Comment on the effect of fault clearing time on the swing characteristic of the SMIB
system.
2) What is the equal-area criterion? How does it help in finding the critical clearing time?
3) For the multi-machine system comment on the relative swings of machine no. 2 & 3 w.r.t.
the slack bus.
4) For fault clearing time of 0.5 sec. why machine no. 2 swings out of bound?
- 72 -