Gause Sei Dal
Gause Sei Dal
LAB Report
Experiment number: 05
Experiment Name: Load flow analysis by Gauss-Seidal method using MATLAB.
Submitted To:
Md. Rashidul Islam
Dept. of Electrical and Electronic Engineering,
RUET
Submitted By:
Md. Masud Alam
Roll: 1801074
Department of EEE, RUET.
Experiment No.: 05
Experiment Name: Load flow analysis by Gauss-Seidal method using MATLAB.
Objectives:
To perform Gauss-Seidal method in MATLAB
To analyze the process to determine the node voltage
To understand the necessity of this method in power system
Theory:
Load flow study is very important for determining the node voltage in a power system. The
Gauss seidal method is one of the important type of load flow study. The method is described
below. There may remain two types of bus in a system. One is generator bus and another is
load bus. In load flow study one bus is taken as slack bus. In this case the generator bus is taken
as slack bus.
The n complex equations that describe the power injected into an n node power system are
n
Si= ∑ V i Y ¿ik V ¿k
K=1
The node voltage of a system can be found using the following equations:
[ ]
n
1 Si
V i= −∑ Y ¿ V ¿ for i=1,2, ……..,n
Y ii V i K =1 ik k
K ≠i
The following points are to be noted while solving the load flow problem using the above
equation.
If we take node 1 as reference/slack bus bar, V 1 is completely known beforehand. So, the load
flow problem now reduces to solving only (n-1) complex equations to obtain V2 , Vn
So keeping all this thing in mind the node voltage can be calculated by using the above
described process so it is very important
Command Used:
Command Description
clc clears the command window and homes the cursor
clear all removes items from MATLAB workspace and resets
MuPAD engine
cd() Specifies the full path to change the current folder
from any location to the Excel Works directory for
MATLAB, assuming that MATLAB is installed on
your C: drive
z =xlsread('') Reads Microsoft spreadsheet file named
'Ybus'into Numeric Matrix, z
d=sum(y,2) creates a matrix (here matrix, d) and compute the
value
input Takes the value as input
Zeros Makes the zero matrix here
Angle angle is a MATLAB function that returns the phase
angles in radians
imag imag(z) returns the imaginary part of z
16. The node voltage can be calculated by using the following equation
[ ]
n
1 Si
Y ii V i K∑
¿ ¿
V i= − Y ik V k for i=1,2, ……..,n
=1
K ≠i
17. Choosing the starting values of x1, x2 , …………, xn as x10 , x20 , …………, xn0
18. Taking iteration count i=0
19. Getting the new values of x1i+1 , x2i+1 , …………, xni+1 (which are better than x1i , x2i
, …………, xni and closer to the required solution) from the following equations.
Xki+1 = gk ( x1i , x2i , …………, xni ) for k =1, 2, ……….,n
20. If | xki+1 – xki | for all k = 1,2,……… n is less than the specified tolerance, then go
to next step(22) otherwise go to step (21)
21. Taking i= i+1 and going to step (17)
22. a ng2 ← angle(V k )
ia
23. if Pg ←0 , V k ←V o e
k
ng
24. V 1 ←∨V ∨¿
V −z
25. E ←∨ ∨¿
V
26. if E<← 10−3 break
27. Print result and stop
Given System :
Figure: Three node system
Bus Bus R X
1 2 0.05 0.25
1 3 0.04 0.2
2 3 0.03 0.15