You are on page 1of 10

Load flow solution with nominal tap setting

clear all
close all
basemva = 100; accuracy = 0.001; accel = 1.8; maxiter = 100;

% Bus Bus Voltage Angle ---Load---- -------Generator----- Static


Mvar
% No code Mag. Degree MW Mvar MW Mvar Qmin Qmax +Qc/-Ql
busdata=[1 1 1.06 0.0 0 0 0 0 0 0 0
2 2 1.045 0.0 0 0 40 0 0 0 0
3 2 1.03 0.0 0 0 30 0 0 0 0
4 0 1.00 0.0 50 30 0 0 0 0 0
5 0 1.00 0.0 60 40 0 0 0 0 0];

% 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.02 0.06 0.000 1
1 3 0.00 0.24 0.000 1
2 3 0.06 0.18 0.000 1
2 4 0.06 0.25 0.000 1
2 5 0.00 0.12 0.000 1
3 4 0.00 0.03 0.000 1
4 5 0.08 0.24 0.000 1];
tic
lfybus % form the bus admittance matrix
lfgauss % Load flow solution by Gauss-Seidel method
lfnewton % Power flow solution by Newton-Raphson method
decouple % Power flow solution by fast decoupled method
busout % Prints the power flow solution on the screen
lineflow % Computes and displays the line flow and losses
toc

output
Load flow solution by Gauss-Seidel method
Power flow solution by Newton-Raphson method
Power flow solution by fast decoupled method
Load flow solution with off nominal tap setting

clear all
close all
basemva = 100; accuracy = 0.001; accel = 1.8; maxiter = 100;

% Bus Bus Voltage Angle ---Load---- -------Generator----- Static


Mvar
% No code Mag. Degree MW Mvar MW Mvar Qmin Qmax +Qc/-Ql
busdata=[1 1 1.06 0.0 0 0 0 0 0 0 0
2 2 1.045 0.0 0 0 40 0 0 0 0
3 2 1.03 0.0 0 0 30 0 0 0 0
4 0 1.00 0.0 50 30 0 0 0 0 0
5 0 1.00 0.0 60 40 0 0 0 0 0];

% 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.02 0.06 0.000 1
1 3 0.00 0.24 0.000 1.02
2 3 0.06 0.18 0.000 1
2 4 0.06 0.25 0.000 1
2 5 0.00 0.12 0.000 1.1
3 4 0.00 0.03 0.000 1.08
4 5 0.08 0.24 0.000 1];

tic
lfybus % form the bus admittance matrix
lfgauss % Load flow solution by Gauss-Seidel method
lfnewton % Power flow solution by Newton-Raphson method
decouple % Power flow solution by fast decoupled method
busout % Prints the power flow solution on the screen
lineflow % Computes and displays the line flow and losses
toc

output

Load flow solution by Gauss-Seidel method


Power flow solution by Newton-Raphson method
Power flow solution by fast decoupled method
Conclusion:
For nominal tapping load flow
For nominal tapping, no. of iterations for gauss seidel method are 30 and elapsed time
0.250522 sec.
For nominal tapping, no. of iterations for newton Raphson method are 3 and elapsed time
0.268236 sec (more time than gauss seidel because it is quadratic conversion while gauss seidel
is linear conversion).
For nominal tapping, no. of iterations for fast decouple method are 4 and elapsed time
0.259413 sec.
We observe that newton Raphson method use least iterations and less power loss so this
technique is used mostly in industries.

For off-nominal tapping load flow


For nominal tapping, no. of iterations for gauss seidel method are 32 and elapsed time
0.289810 sec.
For nominal tapping, no. of iterations for newton Raphson method are 3 and elapsed time
0.263670 sec (more time than gauss seidel because it is quadratic conversion while gauss seidel
is linear conversion).
For nominal tapping, no. of iterations for fast decouple method are 5 and elapsed time
0.252432 sec.
We observe that newton Raphson method use least iterations and less power loss so this
technique is used mostly in industries.

You might also like