AI
AI
INSTITUTE OF TECHNOLOGY
TITLE
Power System Network Modeling for Load Flow
Analysis using python
BY
1. GEMECHU TEFFERA………………………………………………………………..…….UGR/36053/12
2. TOLASA SHORE………………………………….……………………………………..….UGR/35832/12
Ambo in Ethiopia
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Acknowledgement
First and for most, it affords us great pleasure to thanks the God for keeping us in
good health and for his will strengthened us in the project under many challenges. We
would like to take this opportunity to express our gratitude to our master Mr. Esayas
for making us confident and initiative to do our training on time and give us
orientations about the project to do easily and for advising us to be innovator and push
us to create new idea in the daily activities and for the success of our project practice
in brief way.
Abstract:
The present predicament of electrical power system engineering mainly includes the
problems like blackout, power scarcity, ineptness of meeting the necessary demand of
power, load shedding etc. As a result new power plants are designed or old ones are
extended and upgraded. Load flow analysis plays a vital role in both the above
mentioned cases. The efficient and reliable operation of power systems is of
paramount importance in ensuring the smooth delivery of electricity to consumers.
Load flow analysis plays a crucial role in power system planning, operation, and
control. It provides a comprehensive understanding of the steady-state behavior of a
power system, allowing engineers to assess voltage profiles, power flows, and system
stability.
This project aims to develop an advanced power system network modeling framework
for load flow analysis. The project will focus on enhancing the accuracy and
computational efficiency of load flow calculations by integrating modern modeling
techniques, data analytics, and optimization algorithms. The first aim of the project
involves creating an accurate representation of the power system network. This
includes modeling various components such as generators, transmission lines,
transformers, and loads. The network model will be built using a combination of
mathematical equations and graph theory principles, ensuring a realistic
representation of the power system.
Content page
Acknowledgment………………………………………………………………...….…I
Declaration…………………………………………………….………………………II
CHAPTER ONE…………………………………………………………………...….1
Introduction………………………………………………………………….....1
1.1 Background……………………………………………………………….........1
1.2 Statement of the problem………………………………………………...…….1
1.3 Objective of study………………………………………………………..…….1
1.3.1 General objective…………………………………………………..…….1
1.3.2 Specific objective…………………………………………………..……1
1.4 Significance of the study………………………………………………….…….1
1.5 Methodology……………………………………………………………………1
1.5 Material required……………………………………………………………..…2
CHAPTER TWO……………………………………………………………………....3
Theory and Literature review………………………………………………..…3
1.1 Electric power system………………………………………………………….3
1.2 Load flow analysis…………………………………………………………..…3
1.3 Transformer………………………………………………………………….....3
1.4 Three phase source……………………………………………………………..4
1.5 Three phase load system…………...………………………………………….4
CHAPTER THREE……………………………………………………………………5
System design and Python result…………………………………...…………….5
3.1 Fault…………………………………………………………………..…………5
3.2 Type of fault………………………………………………………….…………5
3.2.1 Single line to ground fault…………………………………………………5
3.2.2 Line to line fault…………………………………………………………...5
3.2.3 Double line to ground fault………………………………………………...5
3.3 Turn and current ratio of transformer………………………………………..….5
3.4 Work principle……………………………………………………………….….5
3.5 Operating procedure………………………………………………………….…5
3.6 Limitation……………………………………………………………………….7
3.7 Result and Discussion…………………………………………………………..8
CHAPTER FOUR…………………………………………………………………....10
Conclusion……………………………………………………………...…………10
Reference…………………………………………………………………...……..11
Chapter One
Introduction
1.1 Background
Power system networking is the interconnected network of power generation,
transmission, and distribution systems that deliver electrical energy to consumers.
Load flow analysis is a crucial aspect of power system studies. It helps determine the
steady-state operating conditions of a power system, including voltage magnitudes
and angles, active and reactive power flows, and system losses. Power system
networks are complex interconnected systems that deliver electricity from generation
sources to consumers. Load flow analysis, also known as power flow analysis, is a
fundamental tool used in power system engineering to analyze the steady-state
behavior of these networks. It provides critical information about voltage profiles,
power flows, and system stability, which are essential for efficient and reliable power
system operation.
Traditionally, load flow analysis has been performed using numerical methods such as
the Gauss-Slidell and Newton-Raphson methods. These methods iteratively solve a
set of nonlinear equations to determine the voltages and currents at different nodes in
the power system. While these methods have been widely used and can handle
moderately sized systems, they have limitations in terms of convergence and
computational time for large-scale systems. With the increasing complexity and size
of modern power systems, there is a need for more advanced modeling techniques and
computational algorithms to improve load flow analysis. Researchers and engineers
have been exploring various approaches to enhance the accuracy and efficiency of
load flow calculations. One aspect of improving load flow analysis is the development
of advanced power system network models. These models aim to represent the
various components of the power system, such as generators, transmission lines,
transformers, and loads, in a more realistic and accurate manner. Mathematical
equations and graph theory principles are utilized to create a comprehensive
representation of the power system network.
Another aspect is the integration of data analytics techniques into load flow analysis.
The availability of real-time data from sensors, smart meters, and other monitoring
devices provides valuable information that can enhance load flow calculations.
Machine learning algorithms, statistical techniques, and data-driven approaches can
be applied to historical and real-time data to improve load flow accuracy, predict
system behavior, and identify anomalies or potential issues in the power system.
Furthermore, optimization algorithms play a crucial role in optimizing power system
operation. These algorithms aim to minimize costs, maximize efficiency, and ensure
system stability by optimizing parameters such as power flow, voltage profiles, and
reactive power dispatch. Genetic algorithms, particle swarm optimization, and mixed-
integer linear programming are some examples of optimization techniques applied to
power systems.
In this project we will explain the electrical component of the system and analysis the
amount of the load on each material as soon as without any calculation only using
python. Also if any abnormality happens on the networking system python detect the
fault and its location. We will use some extension on python like
Power system network modeling for load flow analysis using python project 2024 GC
1
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
numpy due to its important on math application. Component on power system like
generator, transformer, load, line value will determine by python. We will calculate
the active and reactive power injections, line flows, and losses using python.
Including voltage magnitudes, phase angles, active and reactive power flows, and
losses at each bus and line.
Power system network modeling for load flow analysis using python project 2024 GC
2
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
This information is crucial for efficient system operation and control, ensuring
optimal utilization of resources and minimizing the risk of blackouts or system
failures.
Integration of Data Analytic: The incorporation of data analytic techniques into load
flow analysis will enable the utilization of real-time data from sensors and smart
meters. This will enhance the accuracy and reliability of load flow calculations by
leveraging historical and real-time data to predict system behavior and identify
potential issues. This integration will contribute to the development of smarter and
more adaptive power systems.
Future Power System Challenges: As power systems evolve with the integration of
renewable energy sources, energy storage systems, and advanced grid technologies,
load flow analysis becomes more complex. This study will address the challenges
associated with the integration of these new technologies and provide insights into
their impact on power system operation. The findings will help in developing
strategies and solutions to overcome these challenges and ensure the smooth transition
towards a sustainable and resilient power system.
Industry and Policy Implications: The outcomes of this study will have practical
implications for the power industry, system operators, and policymakers. The
advanced modeling techniques, data analytic integration, and optimization algorithms
developed in this study can be implemented in power system analysis software and
tools. This will assist industry professionals in making informed decisions regarding
power system planning, operation, and control. Additionally, policymakers can utilize
the findings to develop regulations and policies that promote efficient and reliable
power system operation.
1.5 Methodology
The methodology of this project involves a number of different tasks that are
performed to lead towards completion. The first task is to describe the statement of
the problem and define the objectives of the project. This is followed by the literature
review where all the theoretical information regarding the component of the three
phase load analysis with temporary fault other ways trip permanently is gathered. A
comparison of previous similar project is also presented. A brief description on the
component and comparator is then presented. Simulation studies are carried out. In
addition to this the simulation studies are carried out at final circuit. The final stage is
the conclusion based on our project
Power system network modeling for load flow analysis using python project 2024 GC
3
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Power system network modeling for load flow analysis using python project 2024 GC
4
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Chapter Two
Theory and Literature Review
Power system network modeling for load flow analysis using python project 2024 GC
5
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Power system network modeling has focused on developing more accurate and
comprehensive models. This includes considering the effects of transmission line
parameters, transformer models, and load models in representing the impedance and
power characteristics of network components. Advanced modeling techniques, such
as the per-unit system, phasor measurement unit (PMU) modeling, and multi-terminal
high-voltage direct current (HVDC) systems, have also been explored. The integration
of data analytics techniques into load flow analysis has gained significant attention in
recent years. With the availability of large volumes of real-time data from sensors and
smart meters, data-driven approaches can enhance load flow calculations by
leveraging historical and real-time data.
Literature on data analytics in load flow analysis has focused on applying machine
learning algorithms, statistical techniques, and data-driven models to improve load
flow accuracy and predict system behavior. Techniques such as artificial neural
networks, support vector machines, and clustering algorithms have been utilized to
analyze historical data and identify patterns that aid load flow calculations. Real-time
data analytics techniques, including state estimation and data assimilation, have also
been explored to improve load flow accuracy in dynamic and uncertain system
conditions.
2.3 Transformer
A transformer is an electrical apparatus used to convert high voltage to low voltage or
low voltage to high voltage. That means it is designed to "step up" or "step down"
voltages. The input coil of the transformer is called the primary and the output coil is
called the secondary. There is no electrical connection between the two coils instead
they are linked by an alternating magnetic field created in the soft-iron core of the
transformer. The two lines in the middle of the circuit symbol represent the core.
Transformer works on the magnetic induction principle. A varying current in the
primary winding creates a varying magnetic flux in the transformer's core and thus a
varying magnetic flux through the secondary winding. This varying magnetic flux
induces a varying electromotive force or voltage in the secondary winding. A
transformer has no moving parts and is a completely static solid device which insures
under normal operating conditions along. The arrangement of primary and secondary
winding on the transformer core including voltage, current and flux in the winding are
shown in Fig 3.3.
Power system network modeling for load flow analysis using python project 2024 GC
6
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Figure 3.1:Transformer
The transformers consists incoming energy which is transformed from the primary
circuit to the magnetic field and into the ratio of the number of turns on each coil
called the turn ratio which determines the ratio of the voltages. A step-down
transformer has a large number of turns on its primary coil which is connected to the
high voltage main supply. A small number of turns on its secondary coil will give a
low output voltage. The equation below shows the relation of voltage and number of
turns in a transformer.
Where
V1 = primary or input voltage.
V2 = secondary or output voltage
N1 = number of turns on primary coil
N2= number of turns on secondary coil
I1 = primary or input current
I2= secondary or output current
Or V1/V2 is called the voltage ratio and N1/N2 is the turn ratio of the transformer. If
N2 is less than N1 then V2 is less than V1 and the transformer is Saied to be step-
down transformer. If N2 is greater than N1 then V2 is greater than V1 and the
transformer is said to be Step-up transformer. When the secondary coil is attached to
the load that allows current to flow electrical power is transmitted from the primary
circuit to the secondary circuit. The transformers are range in size from small-sized
units to units weighing hundreds of tons interconnecting the power grid. A wide range
of transformer depending on their size and weight are designed commonly used in a
electric power applications which require the conversion of AC voltage from one
voltage level to another
Power system network modeling for load flow analysis using python project 2024 GC
7
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Power system network modeling for load flow analysis using python project 2024 GC
8
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Chapter Three
System design and python result
4.1 Fault
Fault refers to an abnormal condition or failure that occurs within the system. It can
result in the interruption or disturbance of the normal flow of electric current.
Electrical faults can occur due to various reasons, including equipment failure,
insulation breakdown, short circuits, ground faults, or overloads.
Power system network modeling for load flow analysis using python project 2024 GC
9
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Where:
Ns = the number of turn ratio at the secondary side
Np = the number of turn ratio at the primary side
Vs = Voltage across the secondary in volts
Power system network modeling for load flow analysis using python project 2024 GC
10
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
When three phase fault is made on the system three is malfunction of the Power
distribution and due to this there is distortion of current and voltage pass through
transmission line. Those malfunction operation is show on the matlab.
Power system network modeling for load flow analysis using python project 2024 GC
11
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
class Generator:
def __init__(self, name, bus_number, active_power, voltage):
self.name = name
self.bus_number = bus_number
self.active_power = active_power
self.voltage = voltage
For other material the same form of class should made In generator class name, bus
number, Active power, voltage are represent characteristics of generator. In python
class work(run) first.
Power system network modeling for load flow analysis using python project 2024 GC
12
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
After class is made for each material we cheek how much load is exist on them. So
load flow analysis algorithm is done. Its about Calculating the power flows, losses,
and update the voltages at each bus.
Power system network modeling for load flow analysis using python project 2024 GC
13
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
fault_line = lines[fault_line_index]
fault_line.impedance = fault_impedance
In Python, the term "main" typically refers to the entry point of a program. It is a
convention used in many programming languages, including Python, to indicate the
starting point of execution. The main() function does have a special significance in
Python when used in conjunction with the if __name__ == "__main__":
construct.
def main():
generator1 = Generator("G1", 1, 100, 1.05)
generator2 = Generator("G2", 2, 150, 1.03)
generators = [generator1, generator2]
4.6 Limitation
There are several limitations that can be encountered when developing a Power
System Network Modeling for Load Flow Analysis project using Python. Those are
Power system network modeling for load flow analysis using python project 2024 GC
14
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Complexity of Power System Models: Power systems are highly complex and
dynamic, consisting of numerous components such as generators, transformers,
transmission lines, and loads. Creating accurate and comprehensive models for all
these components can be challenging and time-consuming.
Data Availability and Quality: Accurate load flow analysis requires reliable and up-
to-date data, including system topology, equipment parameters, and load profiles.
However, obtaining such data can be challenging due to data availability constraints
or data quality issues. Inaccurate or incomplete data can lead to erroneous results and
unreliable simulations.
The load flow analysis before the fault showed the following results:
These results indicate the initial operating conditions of the power system, with the
generator voltages and load active powers at their specified levels. During the
simulation, a fault was introduced on a specific line in the system. The user was
Power system network modeling for load flow analysis using python project 2024 GC
15
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
prompted to enter the index of the line and the fault impedance. The line parameters
were modified accordingly to simulate the fault.
Power system network modeling for load flow analysis using python project 2024 GC
16
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Chapter four
Conclusion
The project simulate a fault in a power system and analyze its impact using load flow
analysis. The load flow analysis was performed before and after introducing the fault,
and the results were compared to detect any abnormalities or faults in the system.
Before the fault simulation, the load flow analysis provided information about the
operating conditions of the power system. The generator voltages and load active
powers were at their specified levels, indicating a stable initial state.
During the fault simulation, a fault was introduced on a specific line by modifying its
parameters. The fault impedance was adjusted to simulate the fault condition. The
load flow analysis was then performed again to analyze the system's response to the
fault.
By comparing the load flow results before and after the fault, it is possible to identify
any changes in voltage levels, active power flows, or other system parameters. These
changes can indicate the presence of faults or abnormalities in the system.
In the project, a fault detection mechanism based on comparing the impedance of the
lines with a predefined threshold was proposed. It demonstrates the need to simulate
faults and analyze their impact to ensure the safe and reliable operation of the system.
The results obtained from load flow analysis can provide insights into system
behavior and aid in identifying potential issues or areas for improvement.
In future work, it is essential to address the error encountered during the fault
simulation and implement the fault detection mechanism successfully. Additionally,
further analysis and investigation can be conducted to explore the specific effects of
different types of faults on the power system and develop appropriate mitigation
strategies.
Overall, the project has provided valuable insights into the process of simulating
faults in power systems and conducting load flow analysis. It sets the foundation for
future research and development in fault analysis and system protection.
Power system network modeling for load flow analysis using python project 2024 GC
17
ECE DEP’T, POWER STREAM @AMBO UNIVERSITY,HHC 2024 GC
Reference
Power system network modeling for load flow analysis using python project 2024 GC
18