Professional Documents
Culture Documents
A three phase transposed line composed of one ACSR, 1, 43,000cmil, 47/7 Bobolink
conductor per phase with flat horizontal spacing of 11m between phases a and b and between
phases b and c. The conductors have a diameter 3.625cm and GMR of 1.439 cm. The line is to
be replaced by a three conductor bundle of ACSR 477000cmil, 26/7 Hawk conductors having
the same cross sectional area of aluminum as the single conductor line. The conductors have a
diameter of 2.1793 cm and a GMR of 0.8839cm. The new line will also have a flat horizontal
configuration, but it is to be operated at a higher voltage and therefore the phase spacing is
increased to 14m as measured from the centre of the bundles. The Spacing between the
conductors in the bundle is 45cm.
(a) Determine the inductance and capacitance per phase per kilometer of the above two lines.
(b) Determine the percentage change in the L and C in the bundle conductor system. Which
system is better and why?
(c) Verify the results using the MATLAB.
FORMULA USED:
Single phase line:
L= 4*10-7 ln (GMD/GMR) H/M.
C=π Єo/ ln (D/R) F/M.
Three phase line:
L= 2*10-7 ln (GMD/GMR) H/M.
C= 2π Єo/ln (GMD/GMR) F/M.
GMD for 3ф single and double circuits.
GMD= (3 (DAB)*(DBC)*(DCA) )
where D-is the distance between two respective conductors.
GMD for 3-phase double circuit;
GMD= 3 (DS1)*(DS2)*(DS3)
3ph
1ph
Sy
m
Unsym
ALGORITHM:
6. If symmetrical get the distance between the conductors and radius of the conductor
8. If unsymmetrical get the distance between the conductors and radius of the conductor.
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
ONE LINE DIAGRAM:
Form Y Bus matrix for the given network.
G1 G2
T1 T2
1 2
0.1+0.3j
0.02j 0.15+0.5j
0.2+0.6j
0.028j
0.0125j
2 2 3 0.15+0.5j 0.0125j
3 3 1 0.2+0.6j 0.028j
Ex.No: 2a FORMATION OF BUS ADMITTANCE MATRICES AND SOLUTION
Date: OF NETWORKS
AIM:
To determine the admittance matrices for the given power system network.
FORMULA USED:
Yij=∑yij for i=1 to n
Yij= -yji= 1/Zij
Where Yij- Sum of admittance connected to bus
yij- admittance between the bus.
ALGORITHM
1. Read the values such as number of lines, number of buses and line data.
2. Initialize Ybus matrix.
Ybus[ i ][ j ]=Complex (0.0,0.0)
3. Compute Ybus matrix by considering only the line data.
4. Print the Ybus matrix.
5. Verify it by solving manual calculation.
FLOW CHART:
Start
Consider line i = 1
STOP
PROGRAM:
clear all;
clc;
n=input(' ENTER THE NUMBER OF BUS :');
for i=1:n;
for j=i+1:n;
y(i,j)=input(' ENTER THE LINE ADMITTANCE :');
y(j,i)=y(i,j);
end
end
for i=1:n
y1(i)=input(' ENTER THE GROUND ADMITTANCE :');
end
for i=1:n
for j=1:n
if i==j
ybus(i,j)=0;
for k=1:n
ybus(i,j)=ybus(i,j)+y(i,k);
end
else
ybus(i,j)=-1*y(j,i);
end
end
end
disp(' Y BUS MATRIX IS : ')
disp(ybus);
MODEL CALCULATION:
OUTPUT:
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
ONE LINE DIAGRAM:
Form Y Bus matrix for the given network.
G1 G2
T1 T2
1 2
0.1+0.3j
0.02j 0.15+0.5j
0.2+0.6j
0.028j
0.0125j
2 2 3 0.15+0.5j 0.0125j
3 3 1 0.2+0.6j 0.028j
Ex.No: 2b FORMATION OF BUS IMPEDANCE MATRICES AND
Date: SOLUTION OF NETWORKS
AIM:-
To form the bus impedance matrix for a given single line diagram.
FORMULA USED:
Yij=∑yij for i=1 to n
Yij= -Yji= 1/Zij
Where Yij- Sum of admittance connected to bus
yij- admittance between the bus
ALGORITHM:-
Step 1: Read the values of line, number of buses, line data, generator data and
Transformer data.
Step 2: Initialize Ybus, matrix for considering only a line data.
Step 3: Compute Ybus matrix considering only a line data.
Step 4: Modify Ybus matrix by using transformer generator data is adding with a
respective diagonal element of the Ybus matrix. After completing modified
Ybus matrix by inversion of the modified Ybus matrix.
Step 5: Check the modified ybus matrix and zbus matrix are multiplied. Whether
the resulting matrix is using or not.
Step 6: print the zbus matrix.
FLOW CHART:
Start
Consider line i = 1
Y(I,j) =YYseries(I)
ij= -Yij= -1/Zij
Y(I,1) = Y(I,j)
NO YES
Yij=Yij
If i<n
I = nl
STOP
Program:
clear all;
clc;
n=input(' ENTER THE NO OF NODES :');
fprintf(' ENTER YOUR CHOICE :');
fprintf(' 1.ADMITTANCE;2.IMPEDENCE ');
e=input(':');
if(e==1)
for a=1:n
for b=a+1:n
fprintf(' ENTER THE ADMITTANCE OF LINE %d%d' ,a,b);
y(a,b)=input(':');
y(b,a)=y(a,b);
fprintf(' ENTER THE CHANGING ADMITTANCE ::');
h(a,b)=input(':');
h(a,b)=h(a,b);
end
end
end
for a=1:n
for b=a+1:n
fprintf(' ENTER THE IMPEDANCE OF LINE %d%d' ,a,b);
z(a,b)=input(':');
y(a,b)=inv(z(a,b));
fprintf(' ENTER THE CHANGING ADMITTANCE::');
h(a,b)=input(':');
h(a,b)=h(a,b);
end
end
ybus=zeros(n,n);
for a=1:n
for b=1:n
if(a==b)
for k=1:n
y(k,a)=y(a,k);
h(k,a)=h(a,k);
ybus(a,a)=ybus(a,a)+y(a,k)+h(a,k);
end
else
ybus(b,a)=-y(a,b);
end
end
end
ybus;
zbus=inv(ybus);
zbus;
disp(sprintf(' Y Bus Matrix is: ' ));
disp(ybus);
disp(sprintf(' Z Bus Matrix is: ' ));
disp(zbus);
OUTPUT:
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
PROBLEM:
The one-line diagram of a three-bus power system with generation at bus 1 is given
below. The magnitude of voltage at bus 1 is adjusted to 1.05 per unit. The scheduled loads at
buses 2 and 3 are as marked on the diagram .Line impedances are marked in per unit on a 100
MVA base and the line charging susceptances are neglected.
(a) Using the Gauss- Seidal method, determine the pharos values of the voltage at the load
buses 2and 3 (P-Q buses) accurate to four decimal places.
(b) Find the slack bus real and reactive power.
(c) Determine the line flows and line losses.
Ex.No: 3
POWER FLOW ANALYSIS USING GAUSS-SEIDEL
Date: METHOD
AIM:-
To understand, in particular, the mathematical formulation of power flow model in
complex form and a simple method of solving power flow problems of small sized system using
Gauss-Seidel iterative algorithm.
PROCEDURE:-
1. Assume a flat voltage profile for all nodal voltage except the slack bus
2. Set iteration count k=0.
3. Set bus count p=1.
4. Check for the slack bus. If it is not slack bus go to next step.
5. Calculate the bus voltage Vpk+1 using equation
Vp= [1/Ypp] {[(Pp-jQp)/Vp*] – ΣnYpqvq q=1, q≠p and difference in bus p=1, 2,….n,
voltage ΔVpk=Vpk+1-Vpk.
6. Advance the bus count by 1 to evaluate other values of Vpk+1&ΔVpk.
7. Check if all buses have been taken in to account, if yes, go to next step otherwise go to
step4.
8. Determine the largest absolute value of change in voltage |ΔV| max.
9. If |ΔV| max is Less than a specified tolerance& evaluate line flows &print the voltage
&line flows.
10. If not, advance the iteration count k=k+1 &go to step3.
PROGRAM:
clc;
clear all;
n=input ('no of buses');
l=input ('no of lines');
s=input ('impedance 1 or admittance 2');
for i=1:l
a=input ('starting bus');
b=input ('ending bus');
t=input ('admittance or impedance value');
if s==1
y(a,b)=1/t;
else
y(a,b)=t;
end
y(b,a)=y(a,b);
end
ybus=zeros(n,n);
for i=1:n
for j=1:n
if i==j
for k=1:n
ybus(i,j)=ybus(i,j)+y(i,k);
end
else
ybus(i,j)=-y(i,j);
end
ybus(j,i)=ybus(i,j);
end
end
ybus
p=zeros(1,n);
q=zeros(1,n);
v=zeros(1,n);
pv=input ('no of pv buses');
pq=input('no of pq buses');
s=input ('slack bus number');
v(s)=input ('slack bus voltage');
acc=input ('acceleration factor');
for i=1:pv
b(i)=input('pv bus number');
p(b(i))=input('real power');
v(b(i))=input ('voltage value');
qmin(b(i))=input ('min value of q');
qmax(b(i))=input ('max value of q');
end
for i=1:pq
c(i)=input('pq bus number');
p(c(i))=input('real power');
p(c(i))=-p(c(i));
q(c(i))=input ('reactive power');
q(c(i))=-q(c(i));
v(c(i))=1+0i;
end
e=v;
enew(s)=v(s);
it=0;
yy=zeros(1,n);
for ii=1:n
ypq(ii)=0;
if ii~=s
flag=0;
gen=0;
for j=1:pv
if ii==b(j)
flag=1;
end
end
if flag==1
for k=1:n
yy(ii)=yy(ii)+ybus(ii,k)*v(k);
end
qcal(ii)=-imag(conj(v(ii))*yy(ii));
if qcal(ii)<qmin(ii)
qcal(ii)=qmin(ii);
elseif qcal(ii)>qmax(ii)
qcal(ii)=qmax(ii);
else
qcal(ii)=qcal(ii);
gen=1;
end
else
qcal(ii)=q(ii);
end
qcal(ii)=qcal(ii)*sqrt(-1);
for k=1:n
if k~=ii
ypq(ii)=ypq(ii)+ybus(ii,k)*e(k);
end
end
enew(ii)=(((p(ii)-qcal(ii))/conj(e(ii)))-ypq(ii))/ybus(ii,ii);
dele(ii)=enew(ii)-e(ii);
enew(ii)=e(ii)+acc*dele(ii);
if gen==1 ang=angle(enew(ii));
enew(ii)=v(ii)*cos(ang)+v(ii)*sin(ang)*sqrt(-1);
end
e(ii)=enew(ii);
end
end
disp('voltages');
enew
MODEL CALCULATION:
OUTPUT:
no of buses3
no of lines3
impedance 1 or admittance 21
starting bus1
ending bus2
admittance or impedance value10-20i
starting bus1
ending bus3
admittance or impedance value10-30i
starting bus2
ending bus3
admittance or impedance value16-32i
ybus =
0.0300 + 0.0700i -0.0200 - 0.0400i -0.0100 - 0.0300i
-0.0200 - 0.0400i 0.0325 + 0.0650i -0.0125 - 0.0250i
-0.0100 - 0.0300i -0.0125 - 0.0250i 0.0225 + 0.0550i
no of pv buses0
no of pq buses2
slack bus number1
slack bus voltage1.05
acceleration factor1.1
pq bus number2
real power2.566
reactive power1.102
pq bus number3
real power1.386
reactive power0.452
voltages
enew =
1.0500 -1.4166 +42.1994i -0.5447 +48.7819i
INFERENCE:
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
PROBLEM:
The figure shows the one-line diagram of a simple three-bus power system with
generators at buses 1 and 3. The magnitude of voltage at bus 1 is adjusted to 1.05 pu. Voltage
magnitude at bus 3 is fixed at 1.04pu with a real power generation of 200MW. A load consisting
of 400MW and 250Mvar is taken from bus 2. Line Impedances are neglected. Obtain the power
flow solution by the Newton Rap son method.
Ex.No: 4
POWER FLOW ANALYSIS USING NEWTON RAPHSON
Date: METHOD
AIM:
To solve load flow problems by using Newton Rap son method with MATLAB program.
PROCEDURE:-
ALGORITHM:
1. Assume a suitable solution for all buses except the slack bus.
2. Set convergence criterion=Σ ie, if the largest of absolute of the residues exceeds the
process is repeated, otherwise it is terminated.
3. Set iteration count k=0.
4. Set bus count p=1.
5. Check if p is a slack bus. If yes, go to step 10.
6. Calculate the real & reactive power Pp & Qp respectively using formulae.
7. Evaluate Δ Ppk = Psp - Ppk .
8. Check if the bus in question is a generator bus. If not go to step 10.
9. Evaluate Δ Qpk = Qps - Qpk .
10. Advance the bus count by 1, i.e. p=p+1 & check if all the buses have been
accounted, If not go to step 5.
11. Determine the largest of the absolute value of the residue.
12. If the largest of the absolute value of the residue is less than & go to step 17.
13. Evaluate the element b for Jacobian Matrix.
14. Calculate voltage in element b Δ epk & Δ fpk.
15. Calculate new bus voltage epk+1= epk + Δ epk & fpk+1= fpk + Δ fpk.
16. Advance iteration count k = k+1 & go to step 4.
17. Evaluate bus & line power &print the result b.
FLOWCHART:
MODEL CALCULATIONS:
PROGRAM:
clear all;
clc;
nb=input('the number of buses\n');
nl=input('the number of lines\n');
sb=input('the number of starting buses\n');
eb=input('the number of ending buses\n');
sli=input('enter the details of series line impedance\n');
lca=input('enter the detail of line changing admittance\n');
for m=1:nb
for n=1:nb
if m==n||m~=n
if sli(m,n)==0
n=n+1;
else
y(m,n)=+sli(m,n)^-1+lca(m,n);
y(n,n)=+sli(m,n)^-1+lca(m,n);
y(m,n)=-sli(m,n)^-1;
y(n,m)=y(m,n);
end
end
end
end
ybus=y;
for j=1:nb
mag(j)=input(['enter the voltage magnitude of bus',num2str(j),':']);
th(j)=input(['enter the angle of the bus',num2str(j),':']) ;
acp(j)=input(['enter the real power of bus',num2str(j),':']);
acq(j)=input(['enter the reactive power of bus',num2str(j),':']);
end
my=abs(ybus); an=angle(ybus);
g=real(ybus);b=imag(ybus);
for i=1:nb;
pe(i)=0; qu(i)=0;
for j=1:nb;
pe(i)=mag(i)*my(i,j)*mag(j)*cos(th(i)-th(j)-an(i,j))+pe(i);
qu(i)=mag(i)*my(i,j)*mag(j)*sin(th(i)-th(j)-an(i,j))+qu(i);
end
end
for i=2:nb
for j=2:nb
if i~=j
j1(i,j)=mag(i)*mag(j)*(g(i,j)*sin(th(i)-th(j))-b(i,j)*cos(th(i)-th(j)));
j3(i,j)=-mag(i)*mag(j)*(g(i,j)*cos(th(i)-th(j))-b(i,j)*sin(th(i)-th(j)));
j2(i,j)=-j3(i,j);
j4(i,j)=-j1(i,j);
else
j1(i,j)=-qu(i)-b(i,j)*(mag(i)^2);
j2(i,j)=pe(i)+g(i,j)*(mag(i)^2);
j3(i,j)=pe(i)-g(i,j)*(mag(i)^2);
j1(i,j)=qu(i)-b(i,j)*(mag(i)^2);
end
end
end
ja1(1:nb-1,1:nb-1)=j1(2:nb,2:nb);
ja2(1:nb-1,1:nb-1)=j2(2:nb,2:nb);
ja3(1:nb-1,1:nb-1)=j3(2:nb,2:nb);
ja4(1:nb-1,1:nb-1)=j4(2:nb,2:nb);
jacob=[ja1 ja2; ja3 ja4];
disp('the jacobian matrix is :');
jacob=[ja1 ja2; ja3 ja4];
disp('the jacobian matrix is :');
disp(jacob);
delp(1:nb-1)=acp(2:nb)-pe(2:nb);
delq(1:nb-1)=acp(2:nb)-qu(2:nb);
chan=(inv(jacob))*[delp delp]';
chth(2:nb)=chan(1:2);
chma(2:nb)=chan(n:2*2);
for i=2:nb
chmag(i)=chma(i)*mag(i);
end
mag=mag+chmag;
th=th + chth;
disp(['the voltage magnitudes are:',num2str(mag),]);
disp(['the phase value are:' ,num2str(th),]);
OUTPUT:
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
PROBLEM:
It is proposed to conduct fault analysis on two alternative configurations of the 4-bus system
given below.
(i) For a Three phase to ground (solid) fault at bus 4, determine the fault current and MVA at
faulted bus, post fault bus voltages, fault current distribution in different elements of the
network using Thevenin’s equivalent circuit. Draw a single line diagram showing the
above results.
Ex.No: 5 SYMMETRIC AND UNSYMMETRICAL FAULT
Date: ANALYSIS
AIM:
To perform short circuit analysis to find short circuit currents and bus voltages using
MATLAB program.
FORMULA:
ALGORITHM:
1. From the bus admittance matrix for the network.
6. Find the bus voltage drop using the formula and also short circuit current.
FLOWCHART:
Start
I=0
If
I<nb? No
Stop
PROGRAM:
clear all
clc
% From To R X
zdata= [ 0 1 0 0.15
0 2 0 0.075
1 2 0 0.1
2 3 0 0.1
3 1 0 0.1];
nl=zdata(:,1); nr=zdata(:,2); X=zdata(:,4);
nbr=length (zdata(:,1)); nbus = max (max(nl),max(nr));
Z=j*X; %branch impedance
Y=ones(nbr,1)./Z; %branch admittance
Ybus=zeros(nbus,nbus); %initialize Ybus to zero
for k = 1:nbr; % formation of the off diagonal elements
if nl(k) > 0 & nr(k) > 0
Ybus (nl(k),nr(k))= Ybus(nl(k), nr(k)) - Y(k);
Ybus (nr(k),nl(k))= Ybus(nl(k),nr(k));
end
end
for n = 1:nbus % formation of the diagonal elements
for k = 1:nbr
if nl(k) == n | nr(k) ==n
Ybus(n,n) = Ybus(n,n) + Y(k);
else,end
end
end
Ybus; %bus admittance matrix
Zbus = inv(Ybus); %bus impedance matrix
zf=0;
v=[1 1 1]; %pre fault voltage
vfa=[0 0 0];
selectedbus=input('select bus 1,2,3=');
i=selectedbus
If=v(i)/(zf+Zbus(i,i));
for k=1:3
if k~i
vf(k)=v(k)-(Zbus(i,k)*v(k)/(zf+Zbus(i,i)));
vfa(k)=vfa(k)+vf(k);
End
vf(i)=zf*v(i)/(zf+Zbus(i,i));
vfa(i)=vfa(i)+vf(i);
i12f=abs(vfa(1)-vfa(2))/X(3);
i13f=abs(vfa(1)-vfa(3))/X(4);
i23f=abs(vfa(2)-vfa(3))/X(5);
end
end
end
vfa
i12f
i13f
i23f
If=abs(If)
OUTPUT:
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
Problem:
A Power system comprising a thermal generating plant with four 555MVA, 24kV, 60Hz units
supplies power to an infinite bus through a transformer and two transmission lines.
The data for the system in per unit on a base of 2220 MVA, 24kV is given below:
Case 1:
It is proposed to examine the transient stability of the system for a three phase to ground
fault at the end of line 2 near H.T bus occurring at time t = 0sec. The fault is cleared at 0.07 sec.
by simultaneous opening of the two circuit breakers at both the ends of line2.
(a) Calculate the initial conditions necessary for the classical model of the machine for
the above pre-fault operating condition determine the critical clearing angle and time for the fault
using "Equal Area Criterion" and hence comment on the stability of the system for this fault.
Ex.No: 6 TRANSIENT STABILITY ANALYSIS OF SINGLE-MACHINE
Date: INFINITE BUS SYSTEM
AIM:
To obtain the value of displacement angle of single machine infinite bus System up to
time t=1sec.
FORMULA USED
FLOW CHART:
Start
NO
If
t<1 sec
YES
Stop
ALGORITHM:
1. Start the program.
2. Get the values of H, Pi, s, delt, f, and t.
3. Calculate the per unit value.
a. Pu (i) =del (i)/90.
4. Calculate the acceleration power.
a. Pa (i) =P (i)-Pu (i).
5. Calculate the inertia constant.
i. M=SH/180f.
6. Calculate the value of delwn, deldeln.
7. Calculate the values of t and increase the‘t’ value.
8. Print the displacement angle
9. Stop the program.
MODEL CALCULATION:
PROGRAM:
clear all;
clc;
% INPUT DATAS
pc=input('Enter the power in p.u. for plant operating conditions:');
pf=input('Enter the value of power factor:');
f=input('Enter the value of frequency:');
x1=input('Enter the reactance of line 1:');
x2=input('Enter the reactance of line 2:');
xtr=input('Enter the reactance of transformer:');
xd=input('Enter the reactance of generator :');
et=input('Enter the terminal voltage :');
h=input('Enter the value of inertia constant in seconds :');
p2max=0;
%calculations
% COMPUTATION OF INITIAL CONDITIONS
input('\n');
qc=tan(acos(pc));
s=complex(pc,qc);
s=s^-1;
% STATOR CURRENT
input('\n');
It=s/et
% VOLTAGE BEHIND TRANSIENT REACTANCE
input('\n');
Etx=et+xd*It
Etxangle=input('Enter the angle of transient reactance :');
% VOLTAGE OF THE INFINITE BUS
input('\n');
x3=(x1*x2)/(x1+x2);
Eb=et-(x3+xtr)*It
Ebangle=input('Enter the angle of infinite bus:');
% ANGULAR SEPARATION BETWEEN Etx AND Eb
input('\n');
angle=Etxangle-Ebangle
% INFINITE BUS AS REFERENCE
input('\n');
Eb2=real(It);
Eb2angle=angle;
et=et;
etangle=Ebangle;
% CRITICAL CLEARING ANGLE
input('\n');
p3max=(Eb*Etx)/(xd+xtr+x1);
p3max=real(p3max);
delmax=180-asin(0.9/p3max);
criticalangle=(pf*(delmax-angle)+p3max*(cos(delmax))-p2max*cos(angle));
criticalangle=criticalangle/(p3max-p2max)
% CRITICAL CLEARING TIME
input('\n');
tcr=sqrt((2*h*(criticalangle-angle)/(3.141*f*pf)))
OUTPUT:
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
PROBLEM:
Determine the economic generation schedules of three generating units in a power system to
meet the system load of 850 MW. The data of the generating units are given below:
Operating Limits:
F1 P1
2
0.00128 P1 6.48 P1 459
F 2 P 2
2
0.00194 P2 7.85 P2 310
F 3 P 3
2
0.00482 P3 7.93 P3 78
Ex.No: 7
ECONOMIC DISPATCH IN POWER SYSTEMS
Date:
AIM:-
To understand the basics of the problem of Economic Dispatch (ED) of optimally
adjusting the generation schedules of thermal generating units to meet the system load which
are required for unit commitment and economic operation of power systems.
FORMULA USED:-
P1= (λ-b1)/2a1;
P2= (λ-b2)/2a2
P=P1+P2.
Where PD-power demand in MW
ai,bi are coefficients (unitless)
P1, P2, P are the power generation in MW.
FLOW CHART:
ALGORITHM:
1. Start the program.
2. Get the cost input of two generating units.
3. Get the values of load demand and the incremental cost transmission loss coefficient (λ).
4. Calculate optimum generators p1 and p2. P1= (λ-b1)/2a1; P2= (λ-b2)/2a2 Where, a1, a2, b1,
b2 are coefficients of two generating units.
5. Calculate the total power generation P=P1+P2.
6. Check whether total power generation is equal to demand.
7. If power and demand are not equal, then increment or decrement the incremental cost
value.
8. If they are equal, then display P1 and P2.
9. When there is presence of loss, then get the values of transmission loss & coefficient of
incremental cost (λ).
10. Calculate PL; PL = P12 B11 +P22 B22 +2 P1 P2 B12
11. Calculate the total generation and the received power PTG = P1+P2.
12. Power demand PD = PTG - PL.
13. Print all the values.
14. Stop the program.
MODEL CALCULATION:
PROGRAM:
clc;
clear all;
n=input('Enter the number of units:');
a=zeros(n);
b=zeros(n);
c=zeros(n);
for i=1:n
fprintf('Enter the unit %g Data \n',i);
a(i)=input('Enter the value of a:');
b(i)=input('Enter the value of b:');
c(i)=input('Enter the value of c:');
pmin(i)=input('Enter the MIN value of Generation : ');
pmax(i)=input('Enter the MAX value of Generation : ');
end
pd=input('Enter the value of load demand:');
P=zeros(n);
sum=0; den=0;
for i=1:n
sum=sum+(b(i)/(2*a(i)));
end
for i=1:n
den=den+(1/(2*a(i)));
end
num=pd+sum;
lamda=num/den;
for i=1:n
P(i)=(lamda-b(i))/(2*a(i));
end
for i=1:n
fprintf('Optimal Generation of unit %g: %g MW\n',i,P(i));
end
fprintf('Lamda: %g \n',lamda);
for i=1:n
unitcost=a(i)*P(i)^2+b(i)*P(i)+c(i);
fprintf('Generation cost of unit %g : %g\n',i,unitcost);
end
totalcost=0;
for i=1:n
totalcost=totalcost+a(i)*P(i)^2+b(i)*P(i)+c(i);
end
fprintf('Total generation cost : %g\n', totalcost);
OUTPUT:
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
PROBLEM:
The data for a single area power system is given below, Rated area capacity
Pr = 2000MW, Nominal operating load PD = 1000MW, f0 = 50Hz, D = 1%, R = 3%, H = 5sec,
Load increase M = 20 MW. Compute steady state frequency deviation. Also determine the
Critical value for controller gain KIcrit, so that the response is critically damped.
Ex.No: 8a LOAD FREQUENCY DYNAMICS OF SINGLE AREA POWER
Date: SYSTEM
AIM:-
To became familiar with modeling and analysis of the frequency and tie-line flow
dynamics of a power system without and with load frequency controllers (LFC) and to design
better controllers for getting better responses.
PROCEDURE:-
3. Pick up the blocks from the Simulink library browser and form a block diagram.
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
PROBLEM:
Ex.No: 8b
LOAD FREQUENCY DYNAMICS OF TWO AREA POWER
Date: SYSTEM
AIM:-
To become familiar with modeling and analysis of the frequency and tie-line flow
dynamics of a two area power system without and with load frequency controllers (LFC) and to
design better controllers for getting better responses.
PROCEDURE:
3. Pick up the blocks from the Simulink library browser and form a block diagram.
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
PROBLEM:
Find the estimate of state of the power system for the IEEE 14 bus system by weighted least
squares method.
Ex.No: 9 STATE ESTIMATION: WEIGHTED LEAST SQUARE
Date: ESTIMATION.
Aim:
To obtain the bests possible estimate of state of the power system for the IEEE 14 bus
system by weighted least squares method.
Theory:
State Estimation BY WLSE method
State estimation plays a very important role in the monitoring and control of modern
power system. The main aim of this is to obtain the voltages and bus angles by processing the
available system data.
State estimation is defined as the data processing algorithm for converting redundant
meter reading and other available information into as estimate of the state of electrical power
system.
Real time measurement are collected in power system through SCADA system. Typical
data includes real and reactive line flows and real and reactive bus injections and bus voltage
magnitude. This telemetered data may contain errors. Theseerrors render the outputuseless. It
is for this reason that, power system state estimation techniques have been developed.
A commonly used criterion is that of minimizing the sum of the squares of the differences
between estimated measurement quantities and actual measurement. This is known as
“weighted least squares” criterion. The mathematical model of state estimation is based on the
relation between the measurement variable and the state variable.
Let
[Z] = Set of measurements
[X] = The vector of state variables
[f(X] = The equation relating measurement variables
to the state variable
[e] = The measurement error vector
We have
[Z] = [f(x)+[e] → (1)
The errors [e1,e2,….em]T are assumed to be independent random variable with Gaussian
distribution whose mean is zero. The variation measurement errorσiprovides an indication of the
certainity about the particular measurements. A large variance indicates that the corresponding
measurement accurate.
→ (2)
J(x)={[f(x)-[Z]}T [W}[f(X/]-[Z]}
Linearsing equation (1) and simultaneously minimizing the objective function (3), We
get state correction vector as
[ΔX]={[H][W][H]-1[H][W]{[Z]-F9X)]}} (4)
Where
Algorithm:
Read all the relevant data
Initialize the state vector
Compute measurement function [f(x)] and Jacobian matrix [H] using latest known
system state variable
Check weather all the elements of [ΔX] are within the tolerance value, if so latest
[X] is the present system state or else go to next step.
Update the state vector
[X]=[X0]+[ΔX] and go to step 3
FLOW CHART:
PROGRAM:
linedata = linedatas(num);
fb = linedata(:,1);
tb = linedata(:,2);
b = linedata(:,5);
nbus = max(max(fb),max(tb)); % no. of buses...
nbranch = length(fb); % no. of branches...
bbus = zeros(nbus,nbus);
for k=1:nbranch
bbus(fb(k),tb(k)) = b(k);
bbus(tb(k),fb(k)) = bbus(fb(k),tb(k));
end
% |Bus | Type | Vsp | theta | PGi | QGi | PLi | QLi | Qmin | Qmax |
busdata14 = [ 1 1 1.060 0 0 0 0 0 0 0;
2 2 1.045 0 40 42.4 21.7 12.7 -40 50;
3 2 1.010 0 0 23.4 94.2 19.0 0 40;
4 3 1.0 0 0 0 47.8 -3.9 0 0;
5 3 1.0 0 0 0 7.6 1.6 0 0;
6 2 1.070 0 0 12.2 11.2 7.5 -6 24;
7 3 1.0 0 0 0 0.0 0.0 0 0;
8 2 1.090 0 0 17.4 0.0 0.0 -6 24;
9 3 1.0 0 0 0 29.5 16.6 0 0;
10 3 1.0 0 0 0 9.0 5.8 0 0;
11 3 1.0 0 0 0 3.5 1.8 0 0;
12 3 1.0 0 0 0 6.1 1.6 0 0;
13 3 1.0 0 0 0 13.5 5.8 0 0;
14 3 1.0 0 0 0 14.9 5.0 0 0;];
% |Bus | Type | Vsp | theta | PGi | QGi | PLi | QLi | Qmin | Qmax |
busdata30 = [ 1 1 1.06 0 0 0 0 0 0 0;
2 2 1.043 0 40 50.0 21.7 12.7 -40 50;
3 3 1.0 0 0 0 2.4 1.2 0 0;
4 3 1.06 0 0 0 7.6 1.6 0 0;
5 2 1.01 0 0 37.0 94.2 19.0 -40 40;
6 3 1.0 0 0 0 0.0 0.0 0 0;
7 3 1.0 0 0 0 22.8 10.9 0 0;
8 2 1.01 0 0 37.3 30.0 30.0 -10 40;
9 3 1.0 0 0 0 0.0 0.0 0 0;
10 3 1.0 0 0 0 5.8 2.0 0 0;
11 2 1.082 0 0 16.2 0.0 0.0 -6 24;
12 3 1.0 0 0 0 11.2 7.5 0 0;
13 2 1.071 0 0 10.6 0.0 0.0 -6 24;
14 3 1.0 0 0 0 6.2 1.6 0 0;
15 3 1.0 0 0 0 8.2 2.5 0 0;
16 3 1.0 0 0 0 3.5 1.8 0 0;
17 3 1.0 0 0 0 9.0 5.8 0 0;
18 3 1.0 0 0 0 3.2 0.9 0 0;
19 3 1.0 0 0 0 9.5 3.4 0 0;
20 3 1.0 0 0 0 2.2 0.7 0 0;
21 3 1.0 0 0 0 17.5 11.2 0 0;
22 3 1.0 0 0 0 0.0 0.0 0 0;
23 3 1.0 0 0 0 3.2 1.6 0 0;
24 3 1.0 0 0 0 8.7 6.7 0 0;
25 3 1.0 0 0 0 0.0 0.0 0 0;
26 3 1.0 0 0 0 3.5 2.3 0 0;
27 3 1.0 0 0 0 0.0 0.0 0 0;
28 3 1.0 0 0 0 0.0 0.0 0 0;
29 3 1.0 0 0 0 2.4 0.9 0 0;
30 3 1.0 0 0 0 10.6 1.9 0 0 ];
switch num
case 14
busdt = busdata14;
case 30
busdt = busdata30;
end
function linedt = linedatas(num)
% | From | To | R | X | B/2 | X'mer |
% | Bus | Bus | pu | pu | pu | TAP (a) |
linedata14 =[1 2 0.01938 0.05917 0.0264 1
1 5 0.05403 0.22304 0.0246 1
2 3 0.04699 0.19797 0.0219 1
2 4 0.05811 0.17632 0.0170 1
2 5 0.05695 0.17388 0.0173 1
3 4 0.06701 0.17103 0.0064 1
4 5 0.01335 0.04211 0.0 1
4 7 0.0 0.20912 0.0 0.978
4 9 0.0 0.55618 0.0 0.969
5 6 0.0 0.25202 0.0 0.932
6 11 0.09498 0.19890 0.0 1
6 12 0.12291 0.25581 0.0 1
6 13 0.06615 0.13027 0.0 1
7 8 0.0 0.17615 0.0 1
7 9 0.0 0.11001 0.0 1
9 10 0.03181 0.08450 0.0 1
9 14 0.12711 0.27038 0.0 1
10 11 0.08205 0.19207 0.0 1
12 13 0.22092 0.19988 0.0 1
13 14 0.17093 0.34802 0.0 1 ];
switch num
case 14
linedt = linedata14;
case 30
linedt = linedata30;
end
% Polar to Rectangular Conversion
% [RECT] = RECT2POL(RHO, THETA)
% RECT - Complex matrix or number, RECT = A + jB, A = Real, B = Imaginary
% RHO - Magnitude
% THETA - Angle in radians
iter = 1;
tol = 5;
%Measurement Function, h
h1 = V(fbus(vi),1);
h2 = zeros(npi,1);
h3 = zeros(nqi,1);
h4 = zeros(npf,1);
h5 = zeros(nqf,1);
for i = 1:npi
m = fbus(ppi(i));
for k = 1:nbus
h2(i) = h2(i) + V(m)*V(k)*(G(m,k)*cos(del(m)-del(k)) +
B(m,k)*sin(del(m)-del(k)));
end
end
for i = 1:nqi
m = fbus(qi(i));
for k = 1:nbus
h3(i) = h3(i) + V(m)*V(k)*(G(m,k)*sin(del(m)-del(k)) -
B(m,k)*cos(del(m)-del(k)));
end
end
for i = 1:npf
m = fbus(pf(i));
n = tbus(pf(i));
h4(i) = -V(m)^2*G(m,n) - V(m)*V(n)*(-G(m,n)*cos(del(m)-del(n)) -
B(m,n)*sin(del(m)-del(n)));
end
for i = 1:nqf
m = fbus(qf(i));
n = tbus(qf(i));
h5(i) = -V(m)^2*(-B(m,n)+bpq(m,n)) - V(m)*V(n)*(-G(m,n)*sin(del(m)-
del(n)) + B(m,n)*cos(del(m)-del(n)));
end
% Residue..
r = z - h;
% Jacobian..
% H11 - Derivative of V with respect to angles.. All Zeros
H11 = zeros(nvi,nbus-1);
%Objective Function..
J = sum(inv(Ri)*r.^2);
% State Vector..
dE = inv(Gm)*(H'*inv(Ri)*r);
E = E + dE;
del(2:end) = E(1:nbus-1);
V = E(nbus:end);
iter = iter + 1;
tol = max(abs(dE));
end
Del = 180/pi*del;
E2 = [V Del]; % Bus Voltages and angles..
disp('-------- State Estimation ------------------');
disp('--------------------------');
disp('| Bus | V | Angle | ');
disp('| No | pu | Degree | ');
disp('--------------------------');
for m = 1:n
fprintf('%4g', m); fprintf(' %8.4f', V(m)); fprintf(' %8.4f', Del(m));
fprintf('\n');
end
disp('---------------------------------------------');
% Program to form Admittance And Impedance Bus Formation....
% with Transformer Tap setting..
switch num
case 14
zdt = zdata14;
case 30
zdt = zdata30;
end
end
OUTPUT:
>> wls
-------- State Estimation -------------
--------------------------------
| Bus | V | Angle |
| No | pu | Degree |
--------------------------------
1 1.0068 0.0000
2 0.9899 -5.5265
3 0.9518 -14.2039
4 0.9579 -11.4146
5 0.9615 -9.7583
6 1.0185 -16.0798
7 0.9919 -14.7510
8 1.0287 -14.7500
9 0.9763 -16.5125
10 0.9758 -16.7476
11 0.9932 -16.5397
12 1.0009 -17.0203
13 0.9940 -17.0583
-------------------------------------------
>>
INFERENCE:
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100
Ex.No: 10 ELECTROMAGNETIC TRANSIENTS IN POWER SYSTEMS :
Date: TRANSMISSION LINE ENERGIZATION
AIM:-
To plot the electromagnetic transients in the power system using MATLAB.
FORMULA USED:
OUTPUT RESPONSE:
INFERENCE:
RESULT:
MARKS SPLIT UP
Max. Marks
Particulars
Marks Obtained
Aim & Algorithm 10
Execution of Program 40
Viva voce 20
Total 100