Beruflich Dokumente
Kultur Dokumente
14EE01032
System Data:
Line Data:
Sl. No. 1 2 3 4 5
(From bus) (To bus) (Line impedance) Line charging admittance tap ratio
(R + jX) (b_l)/2
1 1 2 0.0000+0.1000j 0.000j 1.06
2 6 2 0.0175+0.0628j 0.030j 1+0j
3 6 5 0.0777+0.2013j 0.025j 1+0j
4 2 5 0.0573+0.158j 0.020j 1+0j
5 2 4 0.0607+0.171j 0.020j 1+0j
6 2 3 0.0431+0.14j 0.015j 1+0j
7 5 4 0.011+0.028j 0.010j 1+0j
8 4 3 0.0810+0.2065j 0.025j 1+0j
9 6 7 0.0000+0.1000j 0.010j 1.04
Experiment 3 Aditya Anand Gupta
14EE01032
Bus Data
Sl. No. 1 2 3 4 5 6 7 8 9 A B C D E
1 1 0 1.06 1.00 0.0 0+0j 0.0+0.0j 1.05 -10.0 0.0 1 0 0 0.3
2 2 2 1.00 1.00 0.0 0+0j 0.0+0.0j 0.00 0.00 0.0 1 0 0 0.4
3 3 2 1.00 1.00 0.0 0+0j 0.2+0.1j 0.00 0.00 0.0 1 0 0 0.3
4 4 2 1.00 1.00 0.0 0+0j 0.4+0.05j 0.00 0.00 0.0 1 0 0 0.0
5 5 2 1.00 1.00 0.0 0+0j 0.45+0.1j 0.00 0.00 0.0 1 0 0 0.0
6 6 2 1.00 1.00 0.0 0+0j 0.6+0.1j 0.00 0.00 0.01 1 0 0 0.0
7 7 1 1.00 1.00 0.0 0.4+0j 0.0+0.0j 10.0 -10.0 0.0 1 0 0 0.0
*The column wise description is as follows:
1 -- Bus Number.
2 -- Type of Bus, 0 == slack, 1 == PV, 2 == PQ.
3 -- Initial Choice for Voltage(V)
4 -- Nominal Bus Voltage(V_n)
5 -- Initial Choice for Angle(A)
6 -- Generation Specification(P_g + jQ_g)
7 -- Nominal Load Specification(P_dn + jQ_dn)
8 -- Reactive Generation Maximum(Q_g^max)
9 -- Reactive Generation Minimum(Q_g^min)
A -- Bus Shunt Susceptance(b_sh)
B -- Constant Power Load Coefficient(C_p)
C -- Constant Current Load Coefficient(C_c)
D -- Constant Impedance Load Coefficient(C_i)
E -- Generator participation factor(alp)
Theory:
Load flow studies are one of the most important aspects of power system planning and
operation. The load flow gives us the sinusoidal steady state of the entire system - voltages, real
and reactive power generated and absorbed and line losses. Through the load flow studies we can
obtain the voltage magnitudes and angles at each bus in the steady state. Also based on the
difference between power flow in the sending and receiving ends, the losses in a particular line
can also be computed. Furthermore, from the line flow we can also determine the over and under
load conditions.The steady state power and reactive power supplied by a bus in a power network
are expressed in terms of nonlinear algebraic equations. We therefore would require iterative
methods for solving these equations. The real and reactive power at bus i is given as,
n
Pi | YikViVk | cos( ik k i ) (1)
k 1
Experiment 3 Aditya Anand Gupta
14EE01032
n
Qi | YikViVk | sin( ik k i ) (2)
k 1
1 Pi.inj jQi.inj
Vi *
Yi1V1 Yi 2V2 ... YinVn (4)
Yii Vi
Algorithm
Step1:Read the data such as line data, specified power, specified voltages, Q limits at the
generator buses and tolerance for convergences
Step4:Iter=1
Step6: Check whether this is PV bus or PQ bus. If it is PQ bus goto step 8 otherwise go to next
step.
Step8: Calculate the new value of the bus voltage using gauss seidel formula.
𝑖−1 𝑁
1 𝑃𝑖,𝑖𝑛𝑗 − 𝑗𝑄𝑖,𝑖𝑛𝑗 (𝑘−1)
𝑉𝑖 = [ (𝑘−1)∗
− ∑ 𝑌𝑖𝑗 𝑉𝑗𝑘 − ∑ 𝑌𝑖𝑗 𝑉𝑗 ]
𝑌𝑖𝑖 𝑉 𝑖 𝑗=1 𝑗=𝑖+1
Experiment 3 Aditya Anand Gupta
14EE01032
Adjust voltage magnitude of the bus to specify magnitude if Q limits are not violated.
Step9: If all buses are considered go to step 10 otherwise increment the bus no. i=i+1 and Go to
step6.
Step11: Update the bus voltage using the formula. Vinew= Viold+ α(vinew-Viold) (i=1,2,…..n) i≠
slackbus ,α is the acceleration factor=1.4
Step12: Calculate the slack bus power, Q at P-V buses, real and reactive power flows, real and
reactance, line losses and print all the results including all the bus voltages and all the bus angles.
Step13: Stop
For the 7 bus system, perform one iteration for GS Load flow. The one iteration
involvesupdating of bus voltages and angles for that iteration.Compare the results with those
with the program executions.
Experiment 3 Aditya Anand Gupta
14EE01032
MATLAB codes
clc;
clear all; close all;
Y=[20-50*1i -10+20*1i -10+30*1i;-10+20*1i 26-52*1i -16+32*1i;-10+30*1i -
16+32*1i 26-62*1i];
P3=2;
P2=-4;
Q2=-2.5;
Q3=1;
d1=0;
D2=0;
c=1;
D3=0;
v3=1.04;
v1=1.05;
v2=1;
A2=(P2-Q2*1i)/Y(2,2);
B31=Y(3,1)/Y(3,3);
B32=Y(3,2)/Y(3,3);
B21=Y(2,1)/Y(2,2);
B23=Y(2,3)/Y(2,2);
l=0;
for o=1:100
x(o)=0;
y(o)=0;
f(o)=0;
g(o)=0;
end
for r=1:100
[x(r),y(r)]=pol2cart(D3,v3);
[f(r),g(r)]=pol2cart(D2,c);
M(r)=(x(r)+y(r)*1i);
U(r)=(f(r)+g(r)*1i);
Q3(r)=-
1*imag((conj(M(r))*Y(3,1)*(v1))+(conj(M(r))*Y(3,2)*U(r))+(conj(M(r))*Y(3,3)*M
(r)));
A3(r)=(P3-Q3(r)*1i)/Y(3,3);
d3(r)=angle((A3(r)/conj(M(r)))-(B31*(v1))-(B32*U(r)));
D3=d3(r);
[x(r),y(r)]=pol2cart(D3,v3);
[f(r),g(r)]=pol2cart(D2,c);
Experiment 3 Aditya Anand Gupta
14EE01032
M1(r)=(x(r)+y(r)*1i);
U1(r)=(f(r)+g(r)*1i);
v2(r)=((A2/conj(U1(r)))-B21*(v1)-B23*M1(r));
c=abs(v2(r));
D2=angle(v2(r));
c=abs(v2(r));
t5=0.00001
end
Q3
%%
clc;
clear all;
close all;
a2=(p1(2)-1i*q1(2))/ybus(2,2);
d(2)=angle((a2/conj(Vv(2)))-(ybus(2,1)/ybus(2,2))*Vv(1)-
(ybus(2,3)/ybus(2,2))*Vv(3));
Vv(2)=v(2)*cos(d(2))+v(2)*1i*sin(d(2));
Vv(3)=(1/ybus(3,3))*(((p1(3)-1i*q1(3))/conj(Vv(3)))-
(ybus(3,1)*Vv(1)+ybus(3,2)*Vv(2)));
for k=1:length(v)
v(k)=abs(Vv(k));
d(k)=angle(Vv(k));
end
count=count+1;
end
Sloss12=S12+S21;
Sloss13=S13+S31;
Sloss23=S23+S32;
Sloss=Sloss12+Sloss13+Sloss23
loss=((v(1)-v(2))^2)*(10-20i)+((v(2)-v(3))^2)*(20-40i)+((v(3)-v(1))^2)*(5-
15i);
Results