Professional Documents
Culture Documents
(
(
(
(
(
(
(
(
(
(
=
(
(
(
(
(
(
(
(
(
n
p
nn np n n
pn pp p p
n p
n p
n
p
V
V
V
V
Y Y Y Y
Y Y Y Y
Y Y Y Y
Y Y Y Y
I
I
I
I
2
1
2 1
2 1
2 2 22 12
1 1 12 11
2
1
(2)
where n is the total number of nodes.
V
p
is the phasor voltage to ground at node p.
I
p
is the phasor current flowing into the network at node p.
At thep
th
bus, current injection:
=
= =
+ = =
+ + + + =
n
p q
q
q pq p pp
n
q
q pq
n pn p pp p p p
V Y V Y V Y
V Y V Y V Y V Y I
1 1
2 2 1 1
... .......... .. ..........
(3)
n p V Y I
Y
V
n
p q
q
q pq p
pp
p
,.... 2 ;
1
1
=
(
(
(
(
=
=
=
(4)
At bus p , we can write P
p
jQ
p
=
p p
I V
-
Hence, the current at any node p is related to P, Q and V as follows:
-
=
p
p p
p
V
jQ P
I
) (
( for any bus p except slack bus s) (5)
Substituting for I
p
in Equation (4),
n p V Y
V
jQ P
Y
V
n
p q
q
q pq
p
p p
pp
p
..... , 2 ;
1
1
*
=
(
(
(
(
=
=
=
(6)
I
p
has been substituted by the real and reactive powers because normally in a power system these
quantities are specified.
In case of PV bus,
1 ) ( 1
. | |
+ +
Z =
k
i
specified
i
k
i
V V
) sin .(cos | |
1 1 ) ( 1 + + +
+ =
k
i
k
i
specified
i
k
i
V V
Acceleration factor: (
To speed up the convergence, the node voltage (Vi(k+1)) of the succeeding iteration can
be modified(accelerated) by multiplication factor called as Acceleration factor.
k
i
k
i i
V V V = A
+1
i
k
i
k
i
V V V A + =
+
.
1
Algorithm:
Step 1: Read the input data.
Step 2: Find out the admittance matrix.
Step 3: Choose the flat voltage profile 1+j0 to all buses except slack bus.
Step 4: Set the iteration count p =0 and bus count i =1.
Step 5: Check the slack bus, if it is the generator bus then go to the next step otherwise
go to next step 7.
Step 6: Before the check for the slack bus if it is slack bus then go to step 11 otherwise
go to next step.
Step 7: Check the reactive power of the generator bus within the given limit.
Step 8: If the reactive power violates a limit then treat the bus as load bus.
Step 9: Calculate the phase of the bus voltage on load bus
Step 10: Calculate the change in bus voltage of the repeat step mentioned above until all
the bus voltages are calculated.
Step 11: Stop the program and print the results
Flowchart:
Yes
Read the input data values
Start
FormY Bus matrix
Set flat voltage profile 1+j0 except slack bus
Set iteration count, p=0
Set the bus count, i =1
Check for
slack bus
Check for
Gen bus
It is a load bus calculate
(
=
+
=
+
n
j
k ik
j
k
k ik
i
i i
ii
p
ical
V Y V Y
V
jQ P
Y
V
1
1
1
*
1
1
Calculate
(
+ =
=
+
=
+ p
k
n
i k
ik
p
k
i
k
ik
p
i
V Y V Y
ip
Q
V
1
1
1
*
1
Im
Check
min
1
Q Q
p
i
(
+
Set
Qi=Qi min
Check
max
1
Q Q
p
i
)
+
Set
Qi=Qi max
A
Y
No
Yes
No
No
No
Yes
Yes
D
E
C
B
RESULT:
The given set of load flow equations for a given power system were solved using Gauss-Seidal method
and verified using Matlab 7.5.
Treat this as gen bus & calculate V
pi
(
=
+ =
=
+ +
n
i k
p
k ik
i
k
p
k ik
i
i
ii
p
i
V Y V Y
V
jQ P
Y
V
1
1
1
1
*
1
1
Calculate the change in voltage
1 +
A
p
i
V
Increment the bus count
Check
n i)
Check
( A
+1 p
i
V
Print the result
Stop
Increment
iteration count
P =P+1
Yes
Yes
No
No
B
E
D
C
A
~
~
1
2
3
-j3
-j4
-j5
Problems:1
A three bus power system is shown. (Refer book Power System Analysis by K.B. Hemalatha,
S.T. Jayachrista Page no: 4.11)
The relevant p.u line admittances are indicated on the diagram and bus data are given in table.
Determine the voltages at buses 2 and 3 after1st iteration using Gauss Seidal method. Take the
acceleration factor = 1.6.
cl c
cl ear al l
busdat a=[ 1 1 1. 02 0 0 0 0 0 0 0
2 3 1 0 0. 25 0. 15 0. 5 0. 25 0 0
3 3 1 0 0 0 0. 6 0. 3 0 0] ;
l i nedat a=[ 1 2 0 - 3i
1 3 0 - 4i
2 3 0 - 5i ] ;
f b=l i nedat a( : , 1) ;
t b=l i nedat a( : , 2) ;
r =l i nedat a( : , 3) ;
x=l i nedat a( : , 4) ;
y=r +x;
nbus=max( max( f b) , max( t b) ) ;
nbr anch=l engt h( f b) ;
ybus=zer os( nbus, nbus) ;
f or i =1: nbr anch
m=f b( i ) ;
n=t b( i ) ;
ybus( m, m) =ybus( m, m) +y( i ) ;
ybus( n, n) =ybus( n, n) +y( i ) ;
ybus( m, n) =- y( i ) ;
ybus( n, m) =ybus( m, n) ;
end
ybus
bus=busdat a( : , 1) ;
t ype=busdat a( : , 2) ;
v=busdat a( : , 3) ;
t h=busdat a( : , 4) ;
Bus no Type Generation Load Bus voltage
P
G
Q
G
P
L
Q
L
V o
1 Slack - - - - 1.02 0o
2 PQ 0.25 0.15 0.5 0.25 - -
3 PQ 0 0 0.6 0.3 - -
genmw=busdat a( : , 5) ;
genmvar =busdat a( : , 6) ;
l oadmw=busdat a( : , 7) ;
l oadmvar =busdat a( : , 8) ;
qmi n=busdat a( : , 9) ;
qmax=busdat a( : , 10) ;
p=genmw- l oadmw;
q=genmvar - l oadmvar ;
vpr ev=v;
t ol er =1;
dv=0;
i t er at i on=1;
whi l e( t ol er >0. 1)
f or i =2: nbus
sumyv=0;
f or k=1: nbus
i f i ~=k
sumyv=sumyv+( ybus( i , k) *v( k) ) ;
end
end
i f ( t ype( i ) ==2)
q( i ) =- i mag( conj ( v( i ) ) ) *( sumyv+bus( i , i ) *v( i ) ) ;
i f ( q( i ) >qmax( i ) | | q( i ) <qmi n( i ) )
i f q( i ) <qmi n( i )
q( i ) =qmi n( i ) ;
el se q( i ) =qmax( i ) ;
end
t ype( i ) =3;
end
end
v( i ) =( 1/ ybus( i , i ) ) *( ( p( i ) - j *q( i ) ) / conj ( v( i ) ) - sumyv) ;
dv( i ) =v( i ) - vpr ev( i ) ;
v( i ) =vpr ev( i ) +( 1. 6*dv( i ) ) ;
i f t ype( i ) ==2
v( i ) =pol 2car t ( abs( vpr ev( i ) ) , angl e( v( i ) ) ) ;
end
end
i t er at i on=i t er at i on+1;
t ol er =max( abs( abs( v) - abs( vpr ev) ) ) ;
vpr ev=v;
end
i t er at i on;
v
OUTPUT:
ybus =
0 - 7.0000i 0 +3.0000i 0 +4.0000i
0 +3.0000i 0 - 8.0000i 0 +5.0000i
0 +4.0000i 0 +5.0000i 0 - 9.0000i
v =
1.0200
0.9920 - 0.0500i
0.9538 - 0.1511i