Lab Session 7: Load Flow Analysis Ofa Power System Using Gauss Seidel Method in Matlab
Lab Session 7: Load Flow Analysis Ofa Power System Using Gauss Seidel Method in Matlab
Lab Session 7: Load Flow Analysis Ofa Power System Using Gauss Seidel Method in Matlab
Load Flow Analysis ofA Power System Using Gauss Seidel Method In MATLAB
Development of a MATLAB program to solve power flow problems using Gauss Seidel method.
Construct a power flow diagram and show direction of the line flows.
Now consider an acceleration factor α = 1.6 and repeat the above problem.
Voltage controlled bus also has a type in which some constraints can be given as is given in this
problem i.e.
0 ≤ Q2 ≤ 600
After calculations, if Q2 violates this limit, this means that voltage at bus 2 is either too high or
too low. The limit of maximum reactive power is due to the capacity of generator. If reactive
power is high, the field circuit of generator gets damaged. If reactive power is less than the given
minimum value, it means that the generator is not supplying enough reactive power to provide
required real power at given voltage. If any of this condition is violated, the bus is treated as load
bus or P-Q bus.
MATLAB Code:
for k=1:nbranch
Y(fb(k),tb(k)) = Y(fb(k),tb(k))-y(k);
Y(tb(k),fb(k)) = Y(fb(k),tb(k));
end
for m =1:nbus
for n =1:nbranch
iffb(n) == m
Y(m,m) = Y(m,m) + y(n);
elseiftb(n) == m
Y(m,m) = Y(m,m) + y(n);
end
end
end
if ref==1
Y(1,:)=[];
Y(:,1)=[];
end
else
V2n=(1/Y(2,2))*(((P2-Q2o*i)/conj(V2o))-V1*Y(2,1)-V3o*Y(2,3));
V2n_mag=sqrt(real(V2n)*real(V2n)+imag(V2n)*imag(V2n));
V2n_angle=atan(imag(V2n)/real(V2n));
V2n=1.05*cos(V2n_angle)+1.05*sin(V2n_angle)*i;
end
end
V3n=(1/Y(3,3))*(((-5+4i)/conj(V3o))-V1*Y(3,1)-V2n*Y(3,2));
iter=iter+1;
if (abs(V3n-V3o)<0.000001)
break;
elseif Q2o>=0&&Q2o<=6
V2o=V2n;
else
V2n_angle=atan(imag(V2n)/real(V2n));
V2o=1.05*cos(V2n_angle)+1.05*sin(V2n_angle)*i;
end
V3o=V3n;
end
end
no_of_iterations=iter
V2=V2n
V3=V3n
S1=conj(V1)*(V1*Y(1,1)+V2*Y(1,2)+V3*Y(1,3))*100
I12=(V1-V2)*(-40*i);
I21=-I12;
I13=(V1-V3)/(-20*i);
I31=-I13;
I23=(V2-V3)/(-20*i);
I32=-I23;
S12=V1*conj(I12)*100
S21=V2*conj(I21)*100
S13=V1*conj(I13)*100
S31=V3*conj(I31)*100
S23=V2*conj(I23)*100
S32=V3*conj(I32)*100
Ploss12=abs(abs(real(S12))-abs(real(S21)))
Qloss12=abs(abs(imag(S12))-abs(imag(S21)))
Ploss13=abs(abs(real(S13))-abs(real(S31)))
Qloss13=abs(abs(imag(S13))-abs(imag(S31)))
Ploss23=abs(abs(real(S23))-abs(real(S32)))
Qloss23=abs(abs(imag(S23))-abs(imag(S32)))
MATLAB Results:
s
w
Flo
e
Lin
Flow Chart:
Conclusion:
The main purpose of the Acceleration Factor is to speed up convergence. The proper choice of
acceleration factor reduces the number of iterations. But the improper selection can even lead the
solution to diverge instead of converging. This method is known as Accelerated Gauss Seidel
Method.