Professional Documents
Culture Documents
National Polytechnic School Department of Electrical Energy IEE6N4 Introduction To Power Systems José Tipantaxi 30/06/2016
National Polytechnic School Department of Electrical Energy IEE6N4 Introduction To Power Systems José Tipantaxi 30/06/2016
G(2,1)*V2*V1*cos(th2-th1)+B(2,1)*V2*V1*sin(th2-th1),
G(2,1)*V1*sin(th2-th1)-B(2,1)*V1*cos(th2-th1)-2*B(2,2)*V2];
Dx = (Jac^-1)*[DP2; DQ2];
th2 = th2 + Dx(1);
V2 = V2 + Dx(2);
iter = iter + 1;
end
if iter > itermax
disp('Diverged')
break
end
end
disp('Solution')
disp('V2 in volts')
disp(V2)
disp('Theta2 in deg')
disp(th2*180/pi)
%% Branch data
x1 = 0.01+0.1*1j;
y1 = 1/x1;
x2=0.1*j;
y2 = 1/x2;
c1=0.25*j;
c2=0.25*j;
x3=0.1*j;
y3 = 1/x3;
c4=0.2*j;
%% Bus data
V1 = 1.0;
th1 = 0;
V2 =1.0;
P2sp=0.1;
Q2sp=-0.2;
P3sp = -0.8;
Q3sp = -0.6;
%% Calculate Ybus
Ybus = [y1+y2+c1 -y2 -y1;
-y2 y2+c2+y3 -y3;
-y1 -y3 y3+c4+y1];
V3 = V3 + Dx(3);
iter = iter + 1;
end
if iter > itermax% diverged if is this condition
disp('Diverged')
break
end
end
%Display
disp('Solution')
disp('V3 in volts')
disp(V3)
disp('Theta2 in deg')
disp(th2*180/pi)
disp('Theta3 in deg')
disp(th3*180/pi)
Bibliografa
Notes Doc: Franklin Quilumba.