Professional Documents
Culture Documents
Exp7
Exp7
Exp7
: 7
Problem 1:
Write a MATLAB Code to analyse the power flow using Newton-Raphson Method (using Polar Coordinates)
for the system shown in Fig. 1. Take base MVA as 100 MVA. Perform iterations till a tolerance of 𝜀 = 0.0001
is reached. The results should display the following.
J(1,1)=mod_V2*(mod_V1*mod_Yb(2,1)*sin(theta(2,1)+Delta_1Delta_2)+mod_V3*mod_Yb(2,3)*sin(the
ta(2,3)+Delta_3-Delta_2));
J(1,2)=mod_V2*mod_V3*mod_Yb(2,3)*sin(Delta_2-theta(2,3)-Delta_3);
J(1,3)=mod_V2*mod_Yb(2,3)*cos(theta(2,3)+Delta_3-Delta_2);
J(2,1)=mod_V2*mod_V3*mod_Yb(3,2)*sin(Delta_3-theta(3,2)-Delta_2);
J(2,2)=mod_V3*(mod_V1*mod_Yb(3,1)*sin(theta(3,1)+Delta_1Delta_3)+mod_V2*mod_Yb(3,2)*sin(the
ta(3,2)+Delta_2-Delta_3));
J(2,3)=mod_V1*mod_Yb(3,1)*cos(theta(3,1)+Delta_1-
Delta_3)+mod_V2*mod_Yb(3,2)*cos(theta(3,2)+Delta_2-
Delta_3)+2*mod_V3*mod_Yb(3,3)*cos(theta(3,3));
J(3,1)=-mod_V2*mod_V3*mod_Yb(3,2)*cos(-theta(3,2)+Delta_3-Delta_2);
J(3,2)=mod_V3*(mod_V1*mod_Yb(3,1)*cos(-theta(3,1)+Delta_3-
Delta_1)+mod_V2*mod_Yb(3,2)*cos(theta(3,2)+Delta_3-Delta_2));
J(3,3)=mod_V1*mod_Yb(3,1)*sin(Delta_3-Delta_1-
theta(3,1))+mod_V2*mod_Yb(3,2)*sin(Delta_3Delta_2-theta(3,2))+2*mod_V3*mod_Yb(3,3)*sin(-
theta(3,3));
MV=[delP2;delP3;delQ3];
DiffM=inv(J)*MV;
Delta_2=Delta_2+DiffM(1,1);
Delta_3=Delta_3+DiffM(2,1);
mod_V3=mod_V3+DiffM(3,1);
iteration=iteration+1; end
V1=mod_V1*exp(1i*Delta_1);
V2=mod_V2*exp(1i*Delta_2);
V3=mod_V3*exp(1i*Delta_3);
S12=V1*conj(-Yb(1,2)*(V1-V2))*Base_MVA;
S21=V2*conj(-Yb(2,1)*(V2-V1))*Base_MVA;
S23=V2*conj(-Yb(2,3)*(V2-V3))*Base_MVA;
S32=V3*conj(-Yb(3,2)*(V3-V2))*Base_MVA;
S13=V1*conj(-Yb(1,3)*(V1-V3))*Base_MVA;
S31=V3*conj(-Yb(3,1)*(V3-V1))*Base_MVA;
Problem 2:
MATLAB Code:
J(1,1)=mod_V2*(mod_V1*mod_Yb(2,1)*sin(theta(2,1)+Delta_1Delta_2)+mod_V3*mod_Yb(2,3)*sin(the
ta(2,3)+Delta_3-Delta_2));
J(1,2)=mod_V2*mod_V3*mod_Yb(2,3)*sin(Delta_2-theta(2,3)-Delta_3);
J(1,3)=0;
J(2,1)=mod_V2*mod_V3*mod_Yb(3,2)*sin(Delta_3-theta(3,2)-Delta_2);
J(2,2)=mod_V3*(mod_V1*mod_Yb(3,1)*sin(theta(3,1)+Delta_1Delta_3)+mod_V2*mod_Yb(3,2)*sin(the
ta(3,2)+Delta_2-Delta_3));
J(2,3)=0;
J(3,1)=0;
J(3,2)=0;
J(3,3)=mod_V1*mod_Yb(3,1)*sin(Delta_3-Delta_1-
theta(3,1))+mod_V2*mod_Yb(3,2)*sin(Delta_3Delta_2-theta(3,2))+2*mod_V3*mod_Yb(3,3)*sin(-
theta(3,3));
MV=[delP2;delP3;delQ3];
DiffM=inv(J)*MV;
Delta_2=Delta_2+DiffM(1,1);
Delta_3=Delta_3+DiffM(2,1);
mod_V3=mod_V3+DiffM(3,1);
iteration=iteration+1; end
V1=mod_V1*exp(1i*Delta_1);
V2=mod_V2*exp(1i*Delta_2);
V3=mod_V3*exp(1i*Delta_3);
S12=V1*conj(-Yb(1,2)*(V1-V2))*Base_MVA;
S21=V2*conj(-Yb(2,1)*(V2-V1))*Base_MVA;
S23=V2*conj(-Yb(2,3)*(V2-V3))*Base_MVA;
S32=V3*conj(-Yb(3,2)*(V3-V2))*Base_MVA;
S13=V1*conj(-Yb(1,3)*(V1-V3))*Base_MVA;
S31=V3*conj(-Yb(3,1)*(V3-V1))*Base_MVA;
MATLAB Output:
Enter the details of the power system
[1 2 .025 .05;
1 3 .0125 .025;
2 3 .0125 .025];
24.0000 -48.0000i -8.0000 +16.0000i -16.0000 +32.0000i
-8.0000 +16.0000i 24.0000 -48.0000i -16.0000 +32.0000i -
16.0000 +32.0000i -16.0000 +32.0000i 32.0000 -64.0000i
Observations:
The load flow analysis decoupled method replaces the Newton-Raphson method. This method and the NR method are
fairly equivalent in terms of calculation. The only difference between all of the formulations is that we substitute zeros
for some parts of the Jacobian matrix due to weak coupling. Power flow analysis can be obtained using this decoupling
Problem 3:
Compare the results obtained with that of Gauss-Seidel method. Write the inferences.
Observations:
The output numbers of the NR technique and the decoupled method are extremely similar. However,
compared to the NR method or the GS method, the decoupled approach is much faster. The GS technique is
significantly impacted by the slack bus selection, but the NR method is less vulnerable. The GS approach
requires more iterations to converge than the NR method does.
The NR approach yields data that are more accurate though. In contrast to the NR approach, the size of the
system has no effect on the number of cycles required to converge for the GS method. The decoupled method
is speedier than the NR method while requiring more iterations. The decoupling method uses the least amount
of storage and is the fastest.