Documente Academic
Documente Profesional
Documente Cultură
INPUT :
%clear
basemva = 100; accuracy = 0.0001; accel = 1.6; maxiter = 100;
% Line code
% Bus bus R X 1/2 B = 1 for lines
% nl nr p.u. p.u. p.u. > 1 or < 1 tr. tap at bus nl
linedata=[1 2 0.100 0.400 0.0 1
1 4 0.150 0.600 0.0 1
1 5 0.050 0.200 0.0 1
2 3 0.050 0.200 0.0 1
2 4 0.100 0.400 0.0 1
3 5 0.050 0.200 0.0 1 ];
lfybus % form the bus admittance matrix
%lfgauss % Load flow solution by Gauss-Seidel method
%lfnewton % Load flow solution by Newton-Raphson method
%decouple % Load flow solution by Fast Decoupled method
%busout % Prints the power flow solution on the screen
%lineflow % Computes and displays the line flow and losses
OUTPUT :
Ybus =
Columns 1 through 4
Column 5
-1.1765 + 4.7059i
-1.1765 + 4.7059i
2.3529 - 9.4118i
INPUT :
%clear
basemva = 100; accuracy = 0.0001; accel = 1.6; maxiter = 100;
% Line code
% Bus bus R X 1/2 B = 1 for lines
% nl nr p.u. p.u. p.u. > 1 or < 1 tr. tap at bus nl
linedata=[1 2 0.100 0.400 0.0 1
1 4 0.150 0.600 0.0 1
1 5 0.050 0.200 0.0 1
2 3 0.050 0.200 0.0 1
2 4 0.100 0.400 0.0 1
3 5 0.050 0.200 0.0 1 ];
OUTPUT :
Power Flow Solution by Gauss-Seidel Method
No. of Iterations = 25
% Line code
% Bus bus R X 1/2 B = 1 for lines
% nl nr p.u. p.u. p.u. > 1 or < 1 tr. tap at bus nl
linedata=[1 2 0.100 0.400 0.0 1
1 4 0.150 0.600 0.0 1
1 5 0.050 0.200 0.0 1
2 3 0.050 0.200 0.0 1
2 4 0.100 0.400 0.0 1
3 5 0.050 0.200 0.0 1 ];
OUTPUT :
Power Flow Solution by Newton-Raphson Method
No. of Iterations = 4
% Line code
% Bus bus R X 1/2 B = 1 for lines
% nl nr p.u. p.u. p.u. > 1 or < 1 tr. tap at bus nl
linedata=[1 2 0.100 0.400 0.0 1
1 4 0.150 0.600 0.0 1
1 5 0.050 0.200 0.0 1
2 3 0.050 0.200 0.0 1
2 4 0.100 0.400 0.0 1
3 5 0.050 0.200 0.0 1 ];
OUTPUT :
Power Flow Solution by Fast Decoupled Method
No. of Iterations = 7