SlideShare a Scribd company logo
Ki Hei, Chan
EE454
Final Project
12/9/2015
Power Flow Programming
1. What is the program about?
This program is about using matlab software to calculate the appropriate nodal
voltage magnitudes and angles in all the load buses. The program logic is getting
a Y-bus from all the resistance and reactance, calculate power flow for getting
mismatch matrix, and Jacobian Matrix. Finally, using Newton Raphson algorithm
method, which is taking some iteration steps in order to getting reasonable
voltage magnitudes and angles in all the bus. Thus, you are able to know all the
load flow and the direction in the transmission lines.
2. Why is that important?
Load flow studies are one of the most important aspects of power system
planning and operation. Through the load flow studies we can obtain the voltage
magnitudes and angles at each bus in the steady state. This is rather important as
the magnitudes of the bus voltages are required to be held within a specified
limit. Once the bus voltage magnitudes and their angles are computed using the
load flow, the real and reactive power flow through each line can be computed.
Also based on the difference between power flow in the sending and receiving
ends, the losses in a particular line can also be computed. Furthermore, from the
line flow we can also determine the over and under load conditions.
However, the steps for calculating the voltage and angles are annoyed because
there are many buses in a whole bus network system. Thus, there are gigantic
amount of equations have to be deal with at the same time, for example, two
equation in each PQ bus, and one equation in each PV bus. Furthermore, you
have to repeat and repeat some matrix calculation by Newton Raphson method
in order to get more accurate result. Therefore, it is very useful to build a code to
solve with this calculation problem. In addition, using Newton Raphson method
spend more steps, but the time cost is much less than normal NxN equation
solver.
3. Description of the test system
In this code, first of all, you have to consult all the resistance and impedance in all
the connected transmission lines, shunt susceptance of lines in π model, shunt
resistance in the bus, reactance of generators, power and reactive power of the
generator, and power and reactive power of the load. Afterward, you have to
identify whether the buses are Slack, PQ, PV. Slack bus means the bus sets the
angular reference for all the other buses. Since it is the angle difference between
two voltage sources that dictates the real and reactive power flow between
them, the particular angle of the slack bus is not important. However it sets the
reference against which angles of all the other bus voltages are measured. For
this reason the angle of this bus is usually chosen as 0°. Furthermore, the voltage
is known and I assume it usually is bus 1. PQ usually be the load bus, which
apparent power S is known, yet voltage and angle are unknown. I set PQ voltage
= 1 and angle = 0 at the beginning for first Newton Raphson algorithm iteration.
PV usually be the generator load, which active power and voltage is known, yet
reactive power of the generator and angle are unknown. Same reason, I set the
reactive power of the generator = 0 and angle = 0.
Once I figure out these information and type these information as a matrix form
named table, Ptable, and gTable, I can run the code. In my code, first of all, it scan
all the resistance and reactance to build a Y matrix. Next, matlab using the data in
Y-matrix and scan the voltage magnitude and angles to calculate active power
flow and reactive power flow and compare with injected active power (injected
active power = generator active power – load active power) and injected reactive
power (injected reactive power = generative reactive power – load reactive
power) in order to build mismatch matrix. Furthermore, these information is
enough for me to get the Jacobian matrix. Afterward, the cross product of the
inverse of Jacobian matrix cross and mismatch match produce the difference of V
and angles. Finally, update the new voltage and angles and repeat all the steps
from calculate power flow. For the default, I set the maximum iteration is three.
4. Answer the “question for the report”
a. Report the Jacobian of the 2ndand 3rditerations for both systems
Test A:
2nd Jacobian =
3rd Jacobian =
Test B:
2nd Jacobian =
3rd Jacobian =
b. Compute the Jacobian for the first iteration, and continue all the iterations
without updating it.
Does update Jacobian in test A:
1st: tolerance = 2.2129
2nd: tolerance = 0.0490
3rd: tolerance = 6.1540e-05
4th: tolerance = 1.0261e-10
5th: tolerance = 7.5651e-15
Without update Jacobian in Test A:
1st : tolerence = 2.2129
2nd : tolerance = 0.0490
3rd : tolerence = 0.0023
4th: tolerance = 1.1975e-04
5th: tolerance = 7.2651e-06
I changed to stop updating Jacobian matrix and just updating voltage, angle,
and mismatch matrix. Consequently, the voltage and angle does converge but
become slowler. As we still using our initial gussing in Jacobian matrix, it has
to take more iteration in order to get appropiate value.
c. Plot of the voltage magnitudes and angles as a function of the bus number for
the first and last iterations of both systems
Test A:
1st
3rd
Test B:
1st
1 1.5 2 2.5 3 3.5 4
bus nmber
-0.2
0
0.2
0.4
0.6
0.8
1
1.2
voltage(pu)
angle(rad)
1 1.5 2 2.5 3 3.5 4
bus number
-0.2
0
0.2
0.4
0.6
0.8
1
1.2
voltage
angle
5th
d. The power flowing from bus 3 to 4 in test system A, and explain the reasons
of such active and reactive flows
I assume 30 iteration is high enough to get an accurate answer. I get V3 =
0.9824pu, V4 = 1.02pu
S34 = V3*(V4-V3)*Y34 = -0.0637 + 0.3187i pu
From the result, the negative active power indicate the power flow is flowing
from bus 4 to bus 3. The map shows there has a generator in bus 4, and bus 3
is just a load bus. The positive reactive power indicate bus 3 is capacitance.
0 2 4 6 8 10 12
bus number
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
1.2
voltage
angle
0 2 4 6 8 10 12
bus number
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
1.2
voltage
angle
According to the map, there has a capacitor connected to bus 3.
e. Same as before but for buses 8 and 11 for test system B
V8 = 1.01, V11 = 0.9826
S8,11 = V8*(V11-V8)*Y8,11 = 0.1201 - 0.0604ipu
The positive active power indicate the power flow is flowing from bus 8 to
bus 11. Negative reactive power indicate bus 8 is inductive. In the map, a
generator is connected in bus 8, and there are no capacitor to reduce
inductive power.
f. Which is the bus with the lowest voltage magnitude in system A and B?
System A: the lowest is bus3
System B: the lowest is bus7
g. What could you do to increase the voltage at that bus? Show the effect of
your proposed solution numerically
In system A, adding lines between bus1 to bus3 and bus3 to bus4. I divide the
reactance and impedance of the line by 2, the 3rd voltage of bus 3 from
0.9989pu to 1.0035pu eventually. Also, it indicates that if the resistance or
reactance value of the transmission line decrease, voltage will increase. Thus,
the other way to boost the bus3 voltage are build lines with higher nominal
voltage, build plants closer to the load center, and add sources of reactive
power closer to load.
In addition, increase the prime mover of the generator is still work, yet the
bus3 in system A and bus11 in system 7 are load bus that I can’t do it.
5. Appendix with the MATLAB code
EE454_Power Flow Programming
EE454_Power Flow Programming
EE454_Power Flow Programming
EE454_Power Flow Programming

More Related Content

What's hot

International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Two Stage Amplifier
Two Stage AmplifierTwo Stage Amplifier
Two Stage AmplifierJacob Ramey
 
L 3,t-1,eee, 2018-2019
L 3,t-1,eee, 2018-2019L 3,t-1,eee, 2018-2019
L 3,t-1,eee, 2018-2019
TamimAhmed43
 
Dynamic model of pmsm (lq and la)
Dynamic model of pmsm  (lq and la)Dynamic model of pmsm  (lq and la)
Dynamic model of pmsm (lq and la)warluck88
 
Term question eee 305
Term question eee 305Term question eee 305
Term question eee 305
TamimAhmed43
 
RGPV BE Ist SEM BEE104 Unit I
RGPV BE Ist SEM BEE104 Unit IRGPV BE Ist SEM BEE104 Unit I
RGPV BE Ist SEM BEE104 Unit I
Mani Deep Dutt
 
K010337787
K010337787K010337787
K010337787
IOSR Journals
 
Per unit calculation
Per unit calculationPer unit calculation
Per unit calculation
obaidurbd
 
C04721623
C04721623C04721623
C04721623
IOSR-JEN
 
Static analysis of power systems
Static analysis of power systemsStatic analysis of power systems
Static analysis of power systemsJhon Miranda Ramos
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton RaphsonAisu
 
ECNG 6503 #4
ECNG 6503 #4ECNG 6503 #4
ECNG 6503 #4
Chandrabhan Sharma
 
Z bus building algorithm
Z bus building algorithmZ bus building algorithm
Z bus building algorithm
Karansinh Parmar
 
Circuit theory 1 finals
Circuit theory 1 finalsCircuit theory 1 finals
Circuit theory 1 finals
jerbor
 
2017 a
2017 a2017 a
Chapter 4 (power factor correction)
Chapter 4 (power factor correction)Chapter 4 (power factor correction)
Chapter 4 (power factor correction)
fairuzid
 
Rlc circuits and differential equations1
Rlc circuits and differential equations1Rlc circuits and differential equations1
Rlc circuits and differential equations1Ghanima Eyleeuhs
 
power system analysis lecture 1
power system analysis lecture 1power system analysis lecture 1
power system analysis lecture 1
Audih Alfaoury
 
Power system calculations
Power system calculationsPower system calculations
Power system calculations
Engr. M. Haroon BE(Elect) ME USA
 

What's hot (20)

International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Two Stage Amplifier
Two Stage AmplifierTwo Stage Amplifier
Two Stage Amplifier
 
L 3,t-1,eee, 2018-2019
L 3,t-1,eee, 2018-2019L 3,t-1,eee, 2018-2019
L 3,t-1,eee, 2018-2019
 
Dynamic model of pmsm (lq and la)
Dynamic model of pmsm  (lq and la)Dynamic model of pmsm  (lq and la)
Dynamic model of pmsm (lq and la)
 
PROBLEMSETEE443.docx
PROBLEMSETEE443.docxPROBLEMSETEE443.docx
PROBLEMSETEE443.docx
 
Term question eee 305
Term question eee 305Term question eee 305
Term question eee 305
 
RGPV BE Ist SEM BEE104 Unit I
RGPV BE Ist SEM BEE104 Unit IRGPV BE Ist SEM BEE104 Unit I
RGPV BE Ist SEM BEE104 Unit I
 
K010337787
K010337787K010337787
K010337787
 
Per unit calculation
Per unit calculationPer unit calculation
Per unit calculation
 
C04721623
C04721623C04721623
C04721623
 
Static analysis of power systems
Static analysis of power systemsStatic analysis of power systems
Static analysis of power systems
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton Raphson
 
ECNG 6503 #4
ECNG 6503 #4ECNG 6503 #4
ECNG 6503 #4
 
Z bus building algorithm
Z bus building algorithmZ bus building algorithm
Z bus building algorithm
 
Circuit theory 1 finals
Circuit theory 1 finalsCircuit theory 1 finals
Circuit theory 1 finals
 
2017 a
2017 a2017 a
2017 a
 
Chapter 4 (power factor correction)
Chapter 4 (power factor correction)Chapter 4 (power factor correction)
Chapter 4 (power factor correction)
 
Rlc circuits and differential equations1
Rlc circuits and differential equations1Rlc circuits and differential equations1
Rlc circuits and differential equations1
 
power system analysis lecture 1
power system analysis lecture 1power system analysis lecture 1
power system analysis lecture 1
 
Power system calculations
Power system calculationsPower system calculations
Power system calculations
 

Viewers also liked

Scl 2r
Scl 2rScl 2r
Scl 2r
macodougal
 
04 tia portal hands on - scl v11 -v1
04 tia portal   hands on - scl v11 -v104 tia portal   hands on - scl v11 -v1
04 tia portal hands on - scl v11 -v1
confidencial
 
Комплекс защитных сооружений г.Санкт-Петербурга от наводнения (Дамба)
Комплекс защитных сооружений г.Санкт-Петербурга от наводнения (Дамба)Комплекс защитных сооружений г.Санкт-Петербурга от наводнения (Дамба)
Комплекс защитных сооружений г.Санкт-Петербурга от наводнения (Дамба)
Marat Mamleev
 
Автоматизация зданий - энергоэффективность и комфорт
Автоматизация зданий - энергоэффективность и комфортАвтоматизация зданий - энергоэффективность и комфорт
Автоматизация зданий - энергоэффективность и комфорт
Ukrainian Real Estate Club
 
Mcis siemens nc 61 2007-2008ru
Mcis siemens nc 61 2007-2008ruMcis siemens nc 61 2007-2008ru
Mcis siemens nc 61 2007-2008ruIntenta
 
Berger step7 stl&scl-rus
Berger step7 stl&scl-rusBerger step7 stl&scl-rus
Berger step7 stl&scl-rusrampodo
 
16 automação totalmente integrada
16   automação totalmente integrada16   automação totalmente integrada
16 automação totalmente integradaconfidencial
 
10 introdução a_hmi
10 introdução a_hmi10 introdução a_hmi
10 introdução a_hmi
confidencial
 
10 introdução a_hmi
10 introdução a_hmi10 introdução a_hmi
10 introdução a_hmi
confidencial
 
07 operações binárias_e_digitais
07 operações binárias_e_digitais07 operações binárias_e_digitais
07 operações binárias_e_digitais
confidencial
 
11 busca e_eliminação_de_erros
11 busca e_eliminação_de_erros11 busca e_eliminação_de_erros
11 busca e_eliminação_de_erros
confidencial
 
S7 básico
S7 básicoS7 básico
S7 básico
confidencial
 
09 blocos de_organização
09 blocos de_organização09 blocos de_organização
09 blocos de_organização
confidencial
 
12 soluções sugeridas
12 soluções sugeridas12 soluções sugeridas
12 soluções sugeridas
confidencial
 
Clp siemens
Clp siemensClp siemens
Clp siemens
Pablo Souza
 
Sitrain operações binárias e digitais
Sitrain operações binárias e digitaisSitrain operações binárias e digitais
Sitrain operações binárias e digitais
confidencial
 
Sitrain blocos de orgazação
Sitrain blocos de orgazaçãoSitrain blocos de orgazação
Sitrain blocos de orgazação
confidencial
 
07 operações binárias_e_digitais-1
07 operações binárias_e_digitais-107 operações binárias_e_digitais-1
07 operações binárias_e_digitais-1
confidencial
 

Viewers also liked (20)

Scl 2r
Scl 2rScl 2r
Scl 2r
 
04 tia portal hands on - scl v11 -v1
04 tia portal   hands on - scl v11 -v104 tia portal   hands on - scl v11 -v1
04 tia portal hands on - scl v11 -v1
 
Комплекс защитных сооружений г.Санкт-Петербурга от наводнения (Дамба)
Комплекс защитных сооружений г.Санкт-Петербурга от наводнения (Дамба)Комплекс защитных сооружений г.Санкт-Петербурга от наводнения (Дамба)
Комплекс защитных сооружений г.Санкт-Петербурга от наводнения (Дамба)
 
Автоматизация зданий - энергоэффективность и комфорт
Автоматизация зданий - энергоэффективность и комфортАвтоматизация зданий - энергоэффективность и комфорт
Автоматизация зданий - энергоэффективность и комфорт
 
Mcis siemens nc 61 2007-2008ru
Mcis siemens nc 61 2007-2008ruMcis siemens nc 61 2007-2008ru
Mcis siemens nc 61 2007-2008ru
 
Savyuk (ITEA-2013)
Savyuk (ITEA-2013)Savyuk (ITEA-2013)
Savyuk (ITEA-2013)
 
Berger step7 stl&scl-rus
Berger step7 stl&scl-rusBerger step7 stl&scl-rus
Berger step7 stl&scl-rus
 
16 automação totalmente integrada
16   automação totalmente integrada16   automação totalmente integrada
16 automação totalmente integrada
 
10 introdução a_hmi
10 introdução a_hmi10 introdução a_hmi
10 introdução a_hmi
 
10 introdução a_hmi
10 introdução a_hmi10 introdução a_hmi
10 introdução a_hmi
 
07 operações binárias_e_digitais
07 operações binárias_e_digitais07 operações binárias_e_digitais
07 operações binárias_e_digitais
 
11 busca e_eliminação_de_erros
11 busca e_eliminação_de_erros11 busca e_eliminação_de_erros
11 busca e_eliminação_de_erros
 
S7 básico
S7 básicoS7 básico
S7 básico
 
09 blocos de_organização
09 blocos de_organização09 blocos de_organização
09 blocos de_organização
 
12 soluções sugeridas
12 soluções sugeridas12 soluções sugeridas
12 soluções sugeridas
 
Clp siemens
Clp siemensClp siemens
Clp siemens
 
Sitrain operações binárias e digitais
Sitrain operações binárias e digitaisSitrain operações binárias e digitais
Sitrain operações binárias e digitais
 
Tia portal v11
Tia portal v11Tia portal v11
Tia portal v11
 
Sitrain blocos de orgazação
Sitrain blocos de orgazaçãoSitrain blocos de orgazação
Sitrain blocos de orgazação
 
07 operações binárias_e_digitais-1
07 operações binárias_e_digitais-107 operações binárias_e_digitais-1
07 operações binárias_e_digitais-1
 

Similar to EE454_Power Flow Programming

Power flow solution
Power flow solutionPower flow solution
Power flow solution
Balaram Das
 
MY CONTINUATION RESEARCH 1
MY CONTINUATION RESEARCH 1MY CONTINUATION RESEARCH 1
MY CONTINUATION RESEARCH 1Binod Panthee
 
Power_System_Load_Flow.pptx
Power_System_Load_Flow.pptxPower_System_Load_Flow.pptx
Power_System_Load_Flow.pptx
HabibNazzar1
 
Load flow analysis of 10 bus loop distribution network excited by a generator...
Load flow analysis of 10 bus loop distribution network excited by a generator...Load flow analysis of 10 bus loop distribution network excited by a generator...
Load flow analysis of 10 bus loop distribution network excited by a generator...
International Journal of Power Electronics and Drive Systems
 
Power Circuits and Transforers-Unit 5 Labvolt Student Manual
Power Circuits and Transforers-Unit 5 Labvolt Student ManualPower Circuits and Transforers-Unit 5 Labvolt Student Manual
Power Circuits and Transforers-Unit 5 Labvolt Student Manual
phase3-120A
 
Power System Analysis and Design
Power System Analysis and DesignPower System Analysis and Design
Power System Analysis and Design
ZainUlAbdeen41
 
A New Structure for ''Sen'' Transformer Using Three Winding Linear Transformer
A New Structure for ''Sen'' Transformer Using Three Winding Linear TransformerA New Structure for ''Sen'' Transformer Using Three Winding Linear Transformer
A New Structure for ''Sen'' Transformer Using Three Winding Linear Transformer
IJPEDS-IAES
 
The MATLAB File by Akshit Jain .pdf on .
The MATLAB File by Akshit Jain .pdf on .The MATLAB File by Akshit Jain .pdf on .
The MATLAB File by Akshit Jain .pdf on .
Akshit Jain
 
Load flow studies 19
Load flow studies 19Load flow studies 19
Load flow studies 19
Asha Anu Kurian
 
Ee 1351 power system analysis
Ee 1351 power system analysisEe 1351 power system analysis
Ee 1351 power system analysis
Hari Kumar
 
Operation and Control of Inductive Wireless Power Transfer
Operation and Control of Inductive Wireless Power Transfer Operation and Control of Inductive Wireless Power Transfer
Operation and Control of Inductive Wireless Power Transfer
Indian Institute of Technology Guwahati
 
Exp 5 (1)5. Newton Raphson load flow analysis Matlab Software
Exp 5 (1)5.	Newton Raphson load flow analysis Matlab SoftwareExp 5 (1)5.	Newton Raphson load flow analysis Matlab Software
Exp 5 (1)5. Newton Raphson load flow analysis Matlab Software
Shweta Yadav
 
Basic electrical lab manual
Basic electrical lab manualBasic electrical lab manual
Basic electrical lab manualDevashish Meena
 
Sheet1resistance of resistorTime Constant = 5.3s10v from power sup.docx
Sheet1resistance of resistorTime Constant = 5.3s10v from power sup.docxSheet1resistance of resistorTime Constant = 5.3s10v from power sup.docx
Sheet1resistance of resistorTime Constant = 5.3s10v from power sup.docx
maoanderton
 
IRJET-Power Flow & Voltage Stability Analysis using MATLAB
IRJET-Power Flow & Voltage Stability Analysis using MATLAB IRJET-Power Flow & Voltage Stability Analysis using MATLAB
IRJET-Power Flow & Voltage Stability Analysis using MATLAB
IRJET Journal
 
Power Flow & Voltage Stability Analysis using MATLAB
Power Flow & Voltage Stability Analysis using MATLAB Power Flow & Voltage Stability Analysis using MATLAB
Power Flow & Voltage Stability Analysis using MATLAB
IRJET Journal
 
Application of SVC on IEEE 6 Bus System for Optimization of Voltage Stability
Application of SVC on IEEE 6 Bus System for Optimization of Voltage StabilityApplication of SVC on IEEE 6 Bus System for Optimization of Voltage Stability
Application of SVC on IEEE 6 Bus System for Optimization of Voltage Stability
ijeei-iaes
 
Gauss Siedel method of Load Flow
Gauss Siedel method of Load FlowGauss Siedel method of Load Flow
Gauss Siedel method of Load Flow
Abdul Azeem
 
Load Flow and PV Curve Analysis of a 220kV Substation
Load Flow and PV Curve Analysis of a 220kV SubstationLoad Flow and PV Curve Analysis of a 220kV Substation
Load Flow and PV Curve Analysis of a 220kV Substation
IRJET Journal
 
Power flow analysis
Power flow analysisPower flow analysis
Power flow analysis
pragatinaresh
 

Similar to EE454_Power Flow Programming (20)

Power flow solution
Power flow solutionPower flow solution
Power flow solution
 
MY CONTINUATION RESEARCH 1
MY CONTINUATION RESEARCH 1MY CONTINUATION RESEARCH 1
MY CONTINUATION RESEARCH 1
 
Power_System_Load_Flow.pptx
Power_System_Load_Flow.pptxPower_System_Load_Flow.pptx
Power_System_Load_Flow.pptx
 
Load flow analysis of 10 bus loop distribution network excited by a generator...
Load flow analysis of 10 bus loop distribution network excited by a generator...Load flow analysis of 10 bus loop distribution network excited by a generator...
Load flow analysis of 10 bus loop distribution network excited by a generator...
 
Power Circuits and Transforers-Unit 5 Labvolt Student Manual
Power Circuits and Transforers-Unit 5 Labvolt Student ManualPower Circuits and Transforers-Unit 5 Labvolt Student Manual
Power Circuits and Transforers-Unit 5 Labvolt Student Manual
 
Power System Analysis and Design
Power System Analysis and DesignPower System Analysis and Design
Power System Analysis and Design
 
A New Structure for ''Sen'' Transformer Using Three Winding Linear Transformer
A New Structure for ''Sen'' Transformer Using Three Winding Linear TransformerA New Structure for ''Sen'' Transformer Using Three Winding Linear Transformer
A New Structure for ''Sen'' Transformer Using Three Winding Linear Transformer
 
The MATLAB File by Akshit Jain .pdf on .
The MATLAB File by Akshit Jain .pdf on .The MATLAB File by Akshit Jain .pdf on .
The MATLAB File by Akshit Jain .pdf on .
 
Load flow studies 19
Load flow studies 19Load flow studies 19
Load flow studies 19
 
Ee 1351 power system analysis
Ee 1351 power system analysisEe 1351 power system analysis
Ee 1351 power system analysis
 
Operation and Control of Inductive Wireless Power Transfer
Operation and Control of Inductive Wireless Power Transfer Operation and Control of Inductive Wireless Power Transfer
Operation and Control of Inductive Wireless Power Transfer
 
Exp 5 (1)5. Newton Raphson load flow analysis Matlab Software
Exp 5 (1)5.	Newton Raphson load flow analysis Matlab SoftwareExp 5 (1)5.	Newton Raphson load flow analysis Matlab Software
Exp 5 (1)5. Newton Raphson load flow analysis Matlab Software
 
Basic electrical lab manual
Basic electrical lab manualBasic electrical lab manual
Basic electrical lab manual
 
Sheet1resistance of resistorTime Constant = 5.3s10v from power sup.docx
Sheet1resistance of resistorTime Constant = 5.3s10v from power sup.docxSheet1resistance of resistorTime Constant = 5.3s10v from power sup.docx
Sheet1resistance of resistorTime Constant = 5.3s10v from power sup.docx
 
IRJET-Power Flow & Voltage Stability Analysis using MATLAB
IRJET-Power Flow & Voltage Stability Analysis using MATLAB IRJET-Power Flow & Voltage Stability Analysis using MATLAB
IRJET-Power Flow & Voltage Stability Analysis using MATLAB
 
Power Flow & Voltage Stability Analysis using MATLAB
Power Flow & Voltage Stability Analysis using MATLAB Power Flow & Voltage Stability Analysis using MATLAB
Power Flow & Voltage Stability Analysis using MATLAB
 
Application of SVC on IEEE 6 Bus System for Optimization of Voltage Stability
Application of SVC on IEEE 6 Bus System for Optimization of Voltage StabilityApplication of SVC on IEEE 6 Bus System for Optimization of Voltage Stability
Application of SVC on IEEE 6 Bus System for Optimization of Voltage Stability
 
Gauss Siedel method of Load Flow
Gauss Siedel method of Load FlowGauss Siedel method of Load Flow
Gauss Siedel method of Load Flow
 
Load Flow and PV Curve Analysis of a 220kV Substation
Load Flow and PV Curve Analysis of a 220kV SubstationLoad Flow and PV Curve Analysis of a 220kV Substation
Load Flow and PV Curve Analysis of a 220kV Substation
 
Power flow analysis
Power flow analysisPower flow analysis
Power flow analysis
 

EE454_Power Flow Programming

  • 1. Ki Hei, Chan EE454 Final Project 12/9/2015 Power Flow Programming
  • 2. 1. What is the program about? This program is about using matlab software to calculate the appropriate nodal voltage magnitudes and angles in all the load buses. The program logic is getting a Y-bus from all the resistance and reactance, calculate power flow for getting mismatch matrix, and Jacobian Matrix. Finally, using Newton Raphson algorithm method, which is taking some iteration steps in order to getting reasonable voltage magnitudes and angles in all the bus. Thus, you are able to know all the load flow and the direction in the transmission lines. 2. Why is that important? Load flow studies are one of the most important aspects of power system planning and operation. Through the load flow studies we can obtain the voltage magnitudes and angles at each bus in the steady state. This is rather important as the magnitudes of the bus voltages are required to be held within a specified limit. Once the bus voltage magnitudes and their angles are computed using the load flow, the real and reactive power flow through each line can be computed. Also based on the difference between power flow in the sending and receiving ends, the losses in a particular line can also be computed. Furthermore, from the line flow we can also determine the over and under load conditions. However, the steps for calculating the voltage and angles are annoyed because there are many buses in a whole bus network system. Thus, there are gigantic amount of equations have to be deal with at the same time, for example, two equation in each PQ bus, and one equation in each PV bus. Furthermore, you have to repeat and repeat some matrix calculation by Newton Raphson method in order to get more accurate result. Therefore, it is very useful to build a code to solve with this calculation problem. In addition, using Newton Raphson method spend more steps, but the time cost is much less than normal NxN equation solver. 3. Description of the test system In this code, first of all, you have to consult all the resistance and impedance in all the connected transmission lines, shunt susceptance of lines in π model, shunt resistance in the bus, reactance of generators, power and reactive power of the generator, and power and reactive power of the load. Afterward, you have to identify whether the buses are Slack, PQ, PV. Slack bus means the bus sets the angular reference for all the other buses. Since it is the angle difference between two voltage sources that dictates the real and reactive power flow between them, the particular angle of the slack bus is not important. However it sets the reference against which angles of all the other bus voltages are measured. For this reason the angle of this bus is usually chosen as 0°. Furthermore, the voltage
  • 3. is known and I assume it usually is bus 1. PQ usually be the load bus, which apparent power S is known, yet voltage and angle are unknown. I set PQ voltage = 1 and angle = 0 at the beginning for first Newton Raphson algorithm iteration. PV usually be the generator load, which active power and voltage is known, yet reactive power of the generator and angle are unknown. Same reason, I set the reactive power of the generator = 0 and angle = 0. Once I figure out these information and type these information as a matrix form named table, Ptable, and gTable, I can run the code. In my code, first of all, it scan all the resistance and reactance to build a Y matrix. Next, matlab using the data in Y-matrix and scan the voltage magnitude and angles to calculate active power flow and reactive power flow and compare with injected active power (injected active power = generator active power – load active power) and injected reactive power (injected reactive power = generative reactive power – load reactive power) in order to build mismatch matrix. Furthermore, these information is enough for me to get the Jacobian matrix. Afterward, the cross product of the inverse of Jacobian matrix cross and mismatch match produce the difference of V and angles. Finally, update the new voltage and angles and repeat all the steps from calculate power flow. For the default, I set the maximum iteration is three. 4. Answer the “question for the report” a. Report the Jacobian of the 2ndand 3rditerations for both systems Test A: 2nd Jacobian = 3rd Jacobian =
  • 4. Test B: 2nd Jacobian = 3rd Jacobian =
  • 5. b. Compute the Jacobian for the first iteration, and continue all the iterations without updating it. Does update Jacobian in test A: 1st: tolerance = 2.2129 2nd: tolerance = 0.0490 3rd: tolerance = 6.1540e-05 4th: tolerance = 1.0261e-10 5th: tolerance = 7.5651e-15 Without update Jacobian in Test A: 1st : tolerence = 2.2129 2nd : tolerance = 0.0490 3rd : tolerence = 0.0023 4th: tolerance = 1.1975e-04 5th: tolerance = 7.2651e-06 I changed to stop updating Jacobian matrix and just updating voltage, angle, and mismatch matrix. Consequently, the voltage and angle does converge but become slowler. As we still using our initial gussing in Jacobian matrix, it has to take more iteration in order to get appropiate value. c. Plot of the voltage magnitudes and angles as a function of the bus number for the first and last iterations of both systems Test A: 1st
  • 6. 3rd Test B: 1st 1 1.5 2 2.5 3 3.5 4 bus nmber -0.2 0 0.2 0.4 0.6 0.8 1 1.2 voltage(pu) angle(rad) 1 1.5 2 2.5 3 3.5 4 bus number -0.2 0 0.2 0.4 0.6 0.8 1 1.2 voltage angle
  • 7. 5th d. The power flowing from bus 3 to 4 in test system A, and explain the reasons of such active and reactive flows I assume 30 iteration is high enough to get an accurate answer. I get V3 = 0.9824pu, V4 = 1.02pu S34 = V3*(V4-V3)*Y34 = -0.0637 + 0.3187i pu From the result, the negative active power indicate the power flow is flowing from bus 4 to bus 3. The map shows there has a generator in bus 4, and bus 3 is just a load bus. The positive reactive power indicate bus 3 is capacitance. 0 2 4 6 8 10 12 bus number -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 voltage angle 0 2 4 6 8 10 12 bus number -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 voltage angle
  • 8. According to the map, there has a capacitor connected to bus 3. e. Same as before but for buses 8 and 11 for test system B V8 = 1.01, V11 = 0.9826 S8,11 = V8*(V11-V8)*Y8,11 = 0.1201 - 0.0604ipu The positive active power indicate the power flow is flowing from bus 8 to bus 11. Negative reactive power indicate bus 8 is inductive. In the map, a generator is connected in bus 8, and there are no capacitor to reduce inductive power. f. Which is the bus with the lowest voltage magnitude in system A and B? System A: the lowest is bus3 System B: the lowest is bus7 g. What could you do to increase the voltage at that bus? Show the effect of your proposed solution numerically In system A, adding lines between bus1 to bus3 and bus3 to bus4. I divide the reactance and impedance of the line by 2, the 3rd voltage of bus 3 from 0.9989pu to 1.0035pu eventually. Also, it indicates that if the resistance or reactance value of the transmission line decrease, voltage will increase. Thus, the other way to boost the bus3 voltage are build lines with higher nominal voltage, build plants closer to the load center, and add sources of reactive power closer to load. In addition, increase the prime mover of the generator is still work, yet the bus3 in system A and bus11 in system 7 are load bus that I can’t do it.
  • 9. 5. Appendix with the MATLAB code