Professional Documents
Culture Documents
Psa Lab Report Final
Psa Lab Report Final
Experiment No.2 Load Flow Analysis with two generators, slack bus and different types of
loads.
Experiment No.3 Short circuit analysis using Electrical Transient Analyzer and Program
(ETAP).
Experiment No.4 Selection of power cables depending upon cable construction, Cable Ratings
and shielding requirements for a given power system using ETAP
Experiment No.7 Formulation of the YBus of given Power System Network using
MATLAB
Experiment No.8 Formulation of the ZBus of given Power System Network using MATLAB
Experiment No.9 BUS elimination techniques for a BUS system using MATLAB
Experiment No.12 To evaluate VOLTAGES for a 4-bus system using node eq. in MATLAB
Tool Required in Lab
1|Page
LAB REPORT 1
ETAP introduction:
ETAP is a true 64-bit program developed for Microsoft® Windows® 2008 R2 (SP1), 2012/R2, 7
(SP1), 8/8.1, 10 operating systems. This demo is fully interactive and allows you to make changes
to the one-line diagram, run system studies, graphically review study results just like the full,
commercial release of the program. It gives you the opportunity to explore the many features and
capabilities of ETAP including Arc Flash, Load Flow, AC/DC Short-Circuit (Refer to the demo
restrictions document for a full list of capabilities).
Product description:
ETAP is a fully graphical electrical power system analysis program that runs on Microsoft®
Windows® 2008 R2 (SP1), 2012/R2, 7 (SP1), 8/8.1, 10 operating systems. In addition to the
standard offline simulation modules, ETAP can utilize real-time operating data for Monitoring &
Simulation, optimization, and high-speed intelligent load shedding. However, only offline
simulation modules are included in the ETAP Demo.
ETAP has been designed and developed by engineers for engineers to handle the diverse discipline
of power systems in one integrated package with multiple interface views such as:
• AC and DC Networks
• Cable Raceways
• Ground Grid Systems
• GIS
• Panel Systems
• Protective Device Coordination/Selectivity
• Control System Diagrams.
ETAP allows you to work directly with graphical one-line diagrams, underground cable raceway
systems, three-dimensional cable systems, advanced time-current coordination and selectivity
plots, geographic information system schematics (GIS), three-dimensional ground grid systems.
The program has been designed according to three key concepts:
2|Page
(which require electrical parameters and connections) as well as cable ampacity derating
calculations (which require physical routing data). This integration of the data provides consistency
throughout the system and eliminates multiple data entry for the same element. Simplicity in
Data Entry:
ETAP keeps track of the detailed data for each electrical apparatus. Data editors can speed up the
data entry process by requiring the minimum data for a particular study. To achieve this, we have
structured the property editors in the most logical manner for entering data for different types of
analysis or design.
ETAP’s one-line diagram supports a number of features to assist you in constructing networks of
varying complexities. For example, each element can individually have varying orientations, sizes,
and display symbols (IEC or ANSI). The one-line diagram also allows you to place multiple
protective devices between a circuit branch and a bus. ETAP provides you with a variety of options
for presenting or viewing your electrical system. These views are called presentations. The
location, size, orientation, and symbol of each element can be different in each presentation.
Additionally, protective devices and relays can be displayed (visible) or hidden (invisible) for any
particular presentation. For example, one presentation can be a relay view where all protective
devices are displayed. Another presentation may show a one line diagram with some circuit
breakers shown and the rest hidden (a layout best suited for load flow results). Among ETAP’s
most powerful features are the composite network and motor elements. Composite elements allow
you to graphically nest network elements within themselves to an arbitrary depth. For example, a
composite network can contain other composite networks, providing the capability to construct
complex electrical networks while still maintaining a clean, uncluttered diagram that displays what
you want to emphasize - yet the next level of system detail is within easy reach of your mouse.
Power is at your fingertips. We consider ETAP to be the foremost-integrated database for electrical
systems, allowing you to have multiple presentations of a system for different analysis or design
purposes.
Program Features:
• Five levels of automatic error checking
• Dynamic help line and error messaging
• Message logger to track program usage and access
• Multiple user access levels
• Automatic one-line creation
• Automatic equipment connection mode
• Automated selection of available pins
• Auto connection to closest highlighted element
• Auto Disconnect & Reconnect
• ODBC (open database connectivity) - use SQL
• Manages maintenance data via info, remarks, and comment pages
• Multi-user Management of Project Merge for a single project
• Parallel ETAP project development
• Self-contained snapshots of the parent & branch projects
• Merge Base, Revision Data & TCCs Views
3|Page
• Merge independent ETAP project files
• Integrated 1-phase, 3-phase, and DC systems
• Integrated one-line diagram and underground raceway systems
• Integrated one-line diagram and device coordination/selectivity module
• Common database for all studies
• Simplicity in data entry
• Multiple sub-systems and swing machines
• User-controlled auto save and transaction
• User-controlled default settings for all components
• Typical data for motors, generators, transformers, reactors, governors, and exciters
• Individual LTC time delays (initial and operating)
• No voltage limitations
• Unlimited protective and metering device connections to branches and loads
• Unlimited load connections to a single bus
• Any system frequency
• English and metric unit systems
• 25-character component IDs
• Raw manufacturer data entry
• Individual and global load demand and diversity factors
• Temperature sensitive cable resistance for all studies
• Element navigator
• Lumped loading Getting Started Product Description 6 ETAP Demo
• Equipment cables for loads, eliminating requirement for terminal buses
• Edited by and checked by data stamping
• Date stamping of all data changes
• Intelligent editors with user-defined data fields
• Analysis-dependent data entry requirements
• Multiple user network support
• Compatible database with ETAP Real-Time for real-time monitoring, simulation, and
supervisory control
• Toolbar accessible Preferences pane for preference modification while ETAP is running
• License borrowing.
• ETAP License Manager Configuration Utility
• Keyless network licensing One-line diagrams:
ETAP provides an easy to use fully Graphical User Interface (GUI) for constructing one-line
diagrams. Here you can graphically add, delete, relocate, connect elements, zoom in or out, display
grid off or on, change element size, orientation, change symbols, change equipment/device color,
create personalized viewing themes, hide or show protective devices, enter properties, set operating
status etc.
4|Page
When you create a new one line diagram presentation, you are initially in Edit Mode with
configuration status set to Normal, default condition. Grid and Continuity Check are both switched
off. If you open an existing one line diagram presentation, it opens with all attributes set that were
saved last, i.e., mode (Edit, Flow, Load, Short-Circuit, Motor Starting, etc.), configuration status,
displays options, view size, and view location as the initial condition.
ETAP’s electrical system diagram is a one-line representation of a balanced three-phase system.
This one-line diagram is the starting point for all of your studies. You can graphically construct
your electrical system by connecting the buses, branches, motors, generators, and protective devices
in any order from the One-Line Diagram Edit toolbar. You can connect elements to buses
graphically (by dragging lines from the device element) or by using the Info page of the Device
Property Editor (double-click on the element and its property editor will open). Using these editors,
you can assign the engineering properties of the element, such as its ratings, settings, loading,
connection, etc. You can also elect to set the defaults for each element prior to placing them in the
one-line diagram to minimize the time required for data entry. One-line diagram Features:
• Unlimited one-line diagram presentations
• Single phase system (2 or 3 wires)
• Panel systems
• Unlimited status configurations/scenarios (switching devices motors loads etc.)
• Multiple engineering properties (base and revision data)
• 3-D database
• Data manager
• Integrated ground grid systems
• Multiple loading categories with individual percent loading • Unlimited one-line diagram
nested for sub-systems, MCCS, etc.
• Simultaneous view of one-line diagram presentation
• Simultaneous view of system configuration
• Simultaneous view of different study results
• Phase adapters to convert from three phase to mixed single phase networks
• One-line templates
• Auto-Build
• Automatic bus/node insertion
• Circuit tracing
• Find elements from editors
• Graphical Auto Select
• Graphical symbol selection
• Symbol library
• ActiveX (programmable objects)
• Drag and drop, cut and paste, undo and redo, zooming etc.
• Built-in ETAP CAD system
• XML data exchange
• Export one-line diagrams to third party CAD systems via. dxf and metafile formats
• Import OLE objects (text, pictures, spreadsheets, GIS maps, etc.)
5|Page
• Import ASCII project files.
• Built-in conversions for Siemens PSS®E, EasyPower®, SKM® Dapper® & CAPTORTM.
• Execute external programs.
• Customizable graphical display of results annotations
• Customizable graphical display of nameplate data annotations
• Interchangeable ANSI and IEC element symbols
• Multiple sizing and rotation of element symbols
• Multi-color symbols and annotations
• Supports True Type fonts
• Hide and show protective devices per presentation.
• Remote connectors for better one-line diagram layout
• Graphical operation (open/close) of switching devices in edit or study modes.
• Dynamic continuity check shows deenergized devices as “semi-transparent” images and
graphically displays current system configuration.
• Configuration manager to easily compare open/close status for all switching devices.
• Display of fixed tap and load tap changer (LTC) positions on the one-line diagram.
• Direct device coordination from the one-line diagram
• Build elementary diagrams within the same project and integrate with one-line diagram.
• Comprehensive printing/plotting capabilities
• Individual and global section of elements, objects, and composites
• Schedule manager for system components (input data)
• Customizable output reports (Crystal Reports) with find functionality.
• Categorized output report manager for Crystal Reports
• Access database output reports
• Crystal Reports for library data
• Comprehensive summary reports
• Customizable output plots
• Report status of loads and protective devices for all configurations
• System dumpster with unlimited cells for storage and retrieval of deleted components
• Resizable, floating/attachable toolbars for each study
• Keyboard Shortcuts
3-D Database:
ETAP organizes an electrical system into a single project. Within this project, ETAP creates three
major system components:
6|Page
generator operating modes (swing, voltage control, reactive power control, power factor
control) and MOVs (open, closed, throttling, and spare).
• Revision Data Base Data and unlimited Revision Data IDs that keep track of the changes
and modifications to the engineering properties (for example, nameplate or settings) of
elements.
These three system components are organized in an orthogonal fashion to provide great power and
flexibility in constructing and manipulating your ETAP project. Using this concept of Presentation,
Status Configuration, and Revision Data, you can create numerous combinations of networks of
diverse configurations and varying engineering properties that allow you to fully investigate and
study the behavior and characteristics of the electrical networks using one database. This means
that you do not need to copy your database for different system configurations, “What If” studies,
etc. ETAP relies on a three-dimensional
database concept to implement all
Presentations, Configurations, and Base and
Revision Data. The use of this
multidimensional database concept allows you
to independently select a particular
Presentation, Configuration Status, or Revision
Data within the same project database.
Revision Data:
Revision Data is the third orthogonal system component provided by ETAP. The engineering data
associated with the elements in your project are stored in the project database. ETAP provides
ready access to an unlimited number of unique engineering Revision Data associated with each
element. ETAP establishes a revision level of zero for the data used as Base Data. You may assign
a revision at any time to distinguish the engineering parameters associated with any or all of the
elements on the one-line diagram without impacting or changing the Base Data. An element cannot
exist in Revision Data without also existing in the Base Data. ETAP constrains your project to
using the engineering data in one Revision Data ID (name) at a time. You must be working with
the Base Data to add or delete system elements or to make connectivity changes to your one-line
diagram. Also, the Base Data must be active (instead of Revision Data being active) for you to be
able to save or close a project. Using “What If” Studies The primary use for Revision Data is to
enable you to run “What If” studies for an electrical system where you vary the engineering data
of the network’s components and compare these results with the Base Data or other Revision Data.
For example, you can change the impedance of a transformer in the Revision Data (leaving the
Base Data untouched) and compare the short-circuit results with the
7|Page
Base Data. Other applications of Revision Data allow the creation of future modifications of the
system without changing your Base Data. For example, you can add a new substation to an existing
system and keep all of your modifications in Revision Data. In this example, the Base Data
represents your existing system and the Revision Data represents your design for future
modifications. To take this example further, first add the new elements for the substation to the
Base Data and flag them as Out of Service so they will not affect the study results of the existing
system. In the Revision Data, you then set the flag to In Service and enter all other required
properties. When the new substation is commissioned, merge the Revision Data to Base Data to
implement and save the modification.
ETAP Wizards:
ETAP includes time-saving project management tools called the ETAP Wizards, which allow you
to record and run any study at any time. The ETAP Wizards include the Scenario Wizard, Study
Wizard, and Project Wizard. All three are described in more detail below. The three ETAP Wizards
are located on the System toolbar.
Scenario
Wizard
Study Wizard
Project
Wizard
Scenario Wizard:
A scenario allows you to group all study options into one place. For this reason, scenarios are useful
anytime you want to record a study to be executed. Every project file contains a Scenario Wizard.
Scenarios are created and recorded in the Scenario Wizard and can be run individually at any time.
A project can have an unlimited number of scenarios. Scenarios are composed of the following
parameters:
8|Page
You can create a scenario either by selecting parameters in the Scenario Wizard or by recording
options you have already selected for your study in the one-line view.
Study Wizard:
Macros reduce the time it takes to run several scenarios. Every project file contains a Study Wizard.
The Study Wizard enables you to sequentially group existing scenarios into study macros. You
must have created the scenarios you want to include in your study macro before you can create the
macro. You create the scenarios using the Scenario Wizard. (See the Scenario Wizard section above
for more information.)
A project may have an unlimited number of study macros. When you run a study macro, all of the
scenarios included in it are run, creating or overwriting the output reports just as they would if they
were run individually. For example, you could group scenarios related to load flow or a specific
type of load flow into one study macro.
9|Page
The Project Wizard is project independent and is saved within the ETAP folder. It enables the user
to group existing study macros into project macros. You should use a project macro when you have
several projects from which you want to run multiple study macros and their scenarios
simultaneously. This feature automates opening and closing project files and individually.
10 | P a g e
Editors:
|Page
ETAP editors are called “intelligent editors” because they have the following capabilities:
11 | P a g e
• Recloser (manufacturer published data)
• Electronic Controller (manufacturer published data)
• LV circuit breaker (manufacturer published data)
• HV circuit breaker (manufacturer published data)
• Fuse (manufacturer published data)
• Overload Heater (manufacturer published data)
• Harmonic (IEEE and manufacturer published data)
• Motor overload heater (manufacturer published data)
• Battery
• Reliability index library
• Interruption cost library
• 50,000+ device time-current characteristic curves
• Merge data from different libraries
• Export library data to Microsoft Access file with report manager and Crystal Reports
OLE Client:
OLE is a program-integration technology used to share information between programs. Many Windows
programs, including Microsoft Office, are OLE capable. Within ETAP, you can dynamically embed OLE
objects such as bitmaps, text, spreadsheets, tables, and metafiles into your one-line diagrams.
12 | P a g e
Convert to EMF, WMF and DXF files:
Export ETAP one-line diagrams to Enhanced MetaFiles (EMF), Windows MetaFiles (WMF), Extensible
Markup Language (XML), Raw image format (RAW), and AutoCAD DXF files. These files can be imported
into AutoCAD , Microsoft Word , etc.
• Print Options
• Printer Setup
• Zoom Level for Print Size
• Print Coordinates & Scrolling
• Customizable Print Preview
• Batch Printing
13 | P a g e
Output Report Manager:
Provides more than 250 reports in Crystal Reports formats for different studies including the following subsections:
• Complete report
• Input data
• Results
• Summary reports
• Customizable subsections
Select the report and language from the Report Manager. Output Reports are available in 6 languages.
Crystal Reports:
ETAP uses the Crystal Reports program to generate output reports. Crystal Reports is a reporting tool with
customizable report formats with full-color presentation-quality. ETAP provides a number of different report
formats for various analyses, library data, and schedules.
The Crystal Reports browser/printer is available within ETAP. Users can create report formats and modify the
existing ones using the Crystal Reports program. Crystal Reports is a Business Objects product.
14 | P a g e
Schedule Report Manager:
Using Crystal Reports, ETAP provides different schedules for elements in the database, such as bus, branch,
load, and cable with the following options:
15 | P a g e
LAB REPORT 2
Introduction:
Load flow studies determine if system voltages remain within specified limits under normal or emergency
operating conditions, and whether equipment such as transformers and conductors are overloaded. Load flow
studies are commonly used to: Optimize component or circuit loading. Develop practical bus voltage profiles.
A power-flow study usually uses simplified notations such as a one-line diagram and per-unit system, and
focuses on various aspects of AC power parameters, such as voltages, voltage angles, real power and reactive
power. It analyzes the power systems in normal steady-state operation. Obtain the power flow solution by
Newton-Raphson method for the system.
PART1
Circuit Diagram:
Circuit on ETAP:
16 | P a g e
After doing load flow analysis on circuit.
17 | P a g e
PART2
Circuit Diagram:
Circuit on ETAP:
18 | P a g e
Load Flow Report Generated.
19 | P a g e
EXPERIMENT 3
Short Circuit Analysis of Power System
Introduction:
A Short circuit analysis is used to determine the magnitude of short circuit current, the system is capable of
producing, and compares that magnitude with the interrupting rating of the overcurrent protective devices.
A short-circuit study is an analysis of an electrical system that determines the magnitude of the currents that
flow during an electrical fault. Comparing these calculated values against the equipment ratings is the first step
to ensuring that the power system is safely protected.
.PART 1
Circuit on ETAP:
20 | P a g e
ANALYSIS REPORT:
PART 2
Circuit on ETAP:
21 | P a g e
After doing short circuit analysis
ANALYSIS REPORT:
22 | P a g e
EXPERIMENT 4
Comparison of Aluminum & Copper Cable in term of Branch Losses in
Load Flow Analysis of a Power System
Electrical Power Cable
Introduction:
A cable used for the transmission and distribution of electrical energy is called electrical power cable. Power
cable consists two or more electrical conductors join with an over sheath. It is used for the transmission of
extra high voltages in a place where overhead lines are impracticable to use like, the sea, airfield crossing,
etc. But underground cable is more costly as compared to aerial cable for the same voltage which is one of
the main draws back of electrical power cable.
Construction of Cable:
Conductor:
Coppers and aluminum wires are
used as a conductor material in cables because of their high electrical conductivity. Solid or number of bare
wires made of either copper or aluminum are used to make a power cable. For a conductor having more
than three wires, the wire is arranged around a center wire such that there are six in the first layer, twelve in
the second, eighteen in the third, and so on. The number of wires in the conductors are 7, 19, 37, 61, 91,
etc., The size of the conductor is represented by 7/A, 19/B, 37/C, etc., in which first figures represent the
number of strands and the second figure A, B, C, etc., represents the diameters in cm or mm of the individual
wire of the conductors.
Insulation:
The most commonly used dielectric in power cables is impregnated paper, butyl rubber, polyvinyl chloride
cable, polyethylene, cross-linked polyethylene. Paper insulated cables are mostly preferred because their
current carrying capacity is high, generally reliable and having a long life. The dielectric compound used
for the cable should have following properties.
23 | P a g e
• The insulator must have high insulation resistance.
• Should have high dielectric strength so that it does not allow the leakage current to pass through it.
• The material must have good mechanical strength.
• The dielectric material should be capable of operating at high temperature.
• It should have low thermal resistance.
• It should have a low power factor.
The cables used for submarine and damp soil should use synthetic dielectrics like polyvinyl chloride,
polyethylene, etc. These materials are comparatively lighter and have no migratory dielectric. Also, such
type of dielectric material has good dielectric strength, low power loss, and low thermal resistance.
Inner Sheath:
It is used for protecting the cable from moistures which would affect the insulation. Cable sheath is made
up of lead alloy, and these strengths withstand the internal pressures of the pressurized cables. The material
used for inner sheath should be nonmagnetic material.
The aluminum sheath is also used in a power cable because it is cheaper, smaller in weight and high
mechanical strength than the lead sheath. In oil-filled cables and telephone, cables corrugated seamless
aluminum sheath is used because it has better-bending properties, reduced thickness, and lesser weight.
Protective Covering:
Lead sheath cables when directly laid down on the ground are damaged by corrosion and electrolyte. For
protecting the cables against corrosion layers of fibrous material like paper, hessian, etc., or polyvinyl
chloride is used. Layers of fibrous material spread with the waterproof compound to the outside of the
electrical cable are called serving.
Armoring:
Armoring is the process in which layers of galvanized steel wires or two layers of metal tape are applied
over sheath for protecting it from mechanical damage. The steel wires are normally used for armoring
because it has high longitudinal strength. Armoring is also used for earthen the cable. When the fault occurs
in the cable (due to insulation failure) the fault current flows through the armor and get earthed.
Over Sheath:
It gives the mechanical strength to the cables. It protects the cable from overall damage like moisture,
corrosion, dirt, dust, etc. The thermosetting or thermoplastic material is used for making over the sheath.
24 | P a g e
• Normal maximum continuous current rating.
• Over-current rating
• Short- Circuit rating
In the three phase cable, all the three conductors are at the same temperature. The heat produced flows outwards
through the dielectric
in three parallel paths
from the conductor to
the sheaths. The
thermal resistances
between the core and
the sheath may be
assumed to be gc1, gc2,
and gc3. It then passes
through the bedding of
resistance gb, metallic
armoring serving of
resistance g’s. Finally,
it passes into
surrounding air or
ground depending
upon the method of installation of cable.
Let the thermal resistance of the external heat flow path be ge, i.e., ge is the thermal resistance between the outer
surface of the cable and ambient. The thermal resistance of metallic portion namely screens, sheath, and
armoring are negligible. Heat is generated due to the loss in the core.
Where, θ = temperature difference between maximum permissible temperature and ambient and
25 | P a g e
The maximum current rating is, therefore, given by,
Where,
Rθ = AC resistance per unit length of the conductor at the maximum operating temperature including
allowance for skin and proximity effects.
n = number of loaded conductor in the cable
gd = thermal resistance of the dielectric
gb = thermal resistance of the bedding between sheath and armoring
gs = thermal resistance of serving
ge = thermal resistance between the outer surface of the cable and ambient
λ = sheath loss factor, i.e., the fractional increment in a.c. the resistance of the conductor to allow for sheath
loss
The short circuit rating of the cable depends on upon the maximum current attained by the cable under short
circuit condition. The safe value of limiting temperature is usually taken as 120°C, for a maximum continuous
operating conductor temperature of 80ºC and the permissible temperature rise of 50ºC. The short current is
measured by the formula
Voltage Regulation:
In electrical power systems, voltage regulation is a dimensionless quantity defined at the receiving end of a transmission
line as:
26 | P a g e
|𝑉𝑓𝑙 |
𝑝𝑒𝑟𝑐𝑒𝑛𝑡 𝑉𝑅 = |𝑉𝑛𝑙 | × 100
|𝑉𝑓𝑙 |
Where, Vnl is voltage at no load and Vfl is voltage at full load. The percent voltage regulation of an ideal transmission line,
as defined by a transmission line with zero resistance and reactance, would equal zero due to Vnl equaling Vfl as a result of
there being no voltage drop along the line. This is why a smaller value of Voltage Regulation is usually beneficial,
indicating that the line is closer to ideal.
The Voltage Regulation formula could be visualized with the following: "Consider power being delivered to a load such
that the voltage at the load is the load's rated voltage VRated, if then the load disappears, the voltage at the point of the load
will rise to Vnl."
Voltage regulation in transmission lines occurs due to the impedance of the line between its sending and receiving ends.
Transmission lines intrinsically have some amount of resistance, inductance, and capacitance that all change the voltage
continuously along the line. Both the magnitude and phase angle of voltage change along a real transmission line. The effects
of line impedance can be modeled with simplified circuits such as the short line approximation (least accurate), the medium
line approximation (more accurate), and the long line approximation (most accurate).
PART 1
• Copper wire
• 50 Hz
• 5KM length
Circuit on ETAP:
27 | P a g e
After load flow analysis (when switch is open).
Analysis Report:
28 | P a g e
After load flow analysis (when switch is close).
Analysis Report:
29 | P a g e
PART 2
• Aluminum wire
• 50 Hz
• 5KM length
Analysis Report:
30 | P a g e
After load flow analysis (when switch is close).
Analysis Report:
Conclusion:
From above it is clear that the line losses in case of Aluminum wire are greater than that of Copper wire.
31 | P a g e
EXPERIMENT 5
“Symmetrical Fault Analysis on ETAP”
Symmetrical Faults:
• In symmetrical faults, all phases are shorted to each other or to earth (L-
L-L) or (L-L-L-G).
• The nature of this type of fault is balanced.
• In this type of fault, fault currents in all phases are symmetrical i.e, their
magnitudes are equal and they are equally displaced by angle 120o as
shown in figure
Power System # 1:
32 | P a g e
Short Circuit Analysis:
Power System # 2:
33 | P a g e
After creating Fault at Bus 7.
34 | P a g e
Short Circuit Analysis Report:
Unsymmetrical fault:
• These faults involve only one or two phases.
• In this type of fault, three phase lines become
unbalanced.
• Those faults on the power system which gives rise to
unsymmetrical fault currents(i.e, unequal line current
with unequal phase displacement)are called Unsymmetrical fault.
• Such fault occur between line to ground and two lines.
• This type of fault mainly have two types
▪ Shunt Fault
▪ Series Fault
• These faults mostly occurs on power system.
• The calculations of these currents are made by Symmetrical Component method.
• Unbalanced fault analysis is important for Relay setting, single phase switch and system stability studies.
35 | P a g e
Power System # 1
Circuit on ETAP:
36 | P a g e
Line-to-Ground Fault:
Line-to-Line-to-Ground Fault:
37 | P a g e
Power System # 2
Circuit on ETAP:
38 | P a g e
Short Circuit Analysis
Reports Line-to-Line Fault:
Line-to-Ground Fault:
39 | P a g e
Line-to-Line-to-Ground Fault:
40 | P a g e
EXPERIMENT 6
“Implementation of Zbus Building Algorithm in MATLAB”
Example 6.1 (Power System Analysis and Design by Hadi Saadat 2nd edition)
The emfs shown in figure 6.1 using MATLAB find its admittance matrices Zbus.
figure 6.1
Program:
clear all
clc
disp('Zbus Building Algorithm')
data=dlmread('data.txt'); %takes whole matrix of line data
num_bus=max(max(data(:,1),data(:,2)));
sz=size(data);
size=sz(1,1);
buses_added=1;
bus_status=zeros(1,num_bus+1);
41 | P a g e
for n=1:size
if(data(n,1)==0)
temp=data(n,1); % cloumn swaping
data(n,1)=data(n,2);
data(n,2)=temp;
end
if(data(n,1)>data(n,2) && data(n,2)~=0)
temp=data(n,1) % coloumn swaping
data(n,1)=data(n,2);
data(n,2)=temp;
end
end
for n=1:size
if(data(n,1)==1 && data(n,2)==0)
temp1=data(1,:);
data(1,:)=data(n,:);
data(n,:)=temp1;
end
end
for n=1:size
for m=1:size
if(data(m,1)==n)
bus1=data(m,1);
bus2=data(m,2);
p_bus1=0;
p_bus2=0;
for k=1:num_bus
if(bus_status(1,k)== bus1 && bus1~=0)
p_bus1=1;
end
if(bus_status(1,k)== bus2 && bus2~=0)
p_bus2=1;
end
end
if(bus_status(1,buses_added)==0 && bus2==0 && p_bus1==0)
disp('Adding Z=')
disp(data(m,3)+ i*data(m,4))
disp('between buses:')
disp(bus1)
disp(bus2)
disp('This impedance is added between a new bus and reference')
buses_added=buses_added+1;
bus_status(1,buses_added-1)=bus1;
if(bus1==1)
Zbus(bus1,bus1)=data(m,3)+i*data(m,4)
else
ssz=length(Zbus);
42 | P a g e
Zbus(ssz+1,ssz+1)=data(m,3)+i*data(m,4)
end
disp(' ')
disp(' ')
elseif(p_bus1==1 && p_bus2==0 && bus2~=0)
disp('Adding Z=')
disp(data(m,3)+ i*data(m,4))
disp('between buses:')
disp(bus1)
disp(bus2)
disp('This impedance is added between a new bus and an existing bus')
buses_added=buses_added+1;
bus_status(1,buses_added-1)=bus2;
size_zbus=length(Zbus);
for var=1:size_zbus
Zbus(size_zbus+1,var)=Zbus(bus1,var);
Zbus(var,size_zbus+1)=Zbus(var,bus1);
end
Zbus(size_zbus+1,size_zbus+1)=Zbus(bus1,bus1)+ data(m,3)+ i*data(m,4);
Zbus
disp(' ')
disp(' ')
elseif(p_bus1==1 && p_bus2==0 && bus2==0)
disp('Adding Z=')
disp(data(m,3)+ i*data(m,4))
disp('between buses:')
disp(bus1)
disp(bus2)
disp('This impedance is added between an existing bus and reference')
size_zbus=length(Zbus);
Zbus1=Zbus;
for var=1:size_zbus
Zbus1(size_zbus+1,var)=Zbus1(bus1,var);
Zbus1(var,size_zbus+1)=Zbus1(var,bus1);
end
Zbus1(size_zbus+1,size_zbus+1)=Zbus1(bus1,bus1)+ data(m,3)+ i*data(m,4);
for var1=1:size_zbus
for var2=1:size_zbus
Zbus(var1,var2)=Zbus1(var1,var2)-
Zbus1(var1,size_zbus+1)*Zbus1(size_zbus+1,var2)/Zbus1(size_zbus+1,size_zbus+1);
end
end
Zbus
disp(' ')
disp(' ')
elseif(p_bus1==1 && p_bus2==1 && bus2~=0)
disp('Adding Z=')
disp(data(m,3)+ i*data(m,4))
disp('between buses:')
disp(bus1)
disp(bus2)
43 | P a g e
disp('This impedance is added between two existing buses')
size_zbus=length(Zbus);
Zbus1=Zbus;
for var=1:size_zbus
Zbus1(size_zbus+1,var)=Zbus1(bus1,var)-Zbus1(bus2,var);
Zbus1(var,size_zbus+1)=Zbus1(var,bus1)-Zbus1(var,bus2);
end
Zbus1(size_zbus+1,size_zbus+1)=Zbus1(bus1,bus1)+Zbus1(bus2,bus2)-2*Zbus1(bus1,bus2) +
data(m,3)+ i*data(m,4);
for var1=1:size_zbus
for var2=1:size_zbus
Zbus(var1,var2)=Zbus1(var1,var2)-
Zbus1(var1,size_zbus+1)*Zbus1(size_zbus+1,var2)/Zbus1(size_zbus+1,size_zbus+1);
end
end
Zbus
disp(' ')
disp(' ')
end
end
end
end
bus_status
for var1=1:num_bus
for var2=1:num_bus
if(bus_status(1,var2)==var1)
zvar1=Zbus(var2,:);
Zbus(var2,:)=Zbus(var1,:);
Zbus(var1,:)=zvar1;
zvar2=Zbus(:,var2);
Zbus(:,var2)=Zbus(:,var1);
Zbus(:,var1)=zvar2;
z_s=bus_status(1,var1);
bus_status(1,var1)=bus_status(1,var2);
bus_status(1,var2)=z_s;
end
end
end
Zbus
MATLAB Output:
44 | P a g e
MATLAB Ybus.^-1 Output:
The emfs shown in figure 6.18 using MATLAB find its admittance matrices zbus.
Program:
Same as Example 6.1.
MATLAB Output:
45 | P a g e
Book Output:
Command Learnt:
➢ disp
➢ sum
➢ diag
➢ case
➢ dlmread
46 | P a g e
EXPERIMENT 7
“Formulation of The YBus of Given Power System Network Using MATLAB”
Matlab:
MATLAB is a high-performance language for technical computing. It integrates computation,
visualization, and programming in an easy-to-use environment where problems and solutions are expressed in
familiar mathematical notation. Application development, including Graphical User Interface building.
MATLAB has several advantages over other methods or languages: Its basic data element is the matrix. Several
mathematical operations that work on arrays or matrices are built-in to the Matlab environment.
Power System:
An electric power system is a network of electrical components deployed to supply, transfer, and use
electric power. An example of an electric power system is the grid that provides power to an extended area. The
electrical power system consists of three major components: generation, a high voltage transmission grid, and
a distribution system. The high voltage transmission system links the generators to substations, which supply
power to the user through the distribution system.
Admittance:
Admittance (symbolized Y ) is an expression of the ease with which alternating current ( AC ) flows
through a complex circuit or system. Admittance is a vector quantity comprised of two independent scalar
phenomena: conductance and susceptance . Admittance is the vector sum of conductance and susceptance.
Susceptance is conventionally multiplied by the positive square root of -1, the unit imaginary number called
symbolized by j , to express Y as a complex quantity G - jB L (when the net susceptance is inductive) or G + jB
C (when the net susceptance is capacitive). In parallel circuits, conductance and susceptance add together
independently to yield the composite admittance. In series circuits, conductance and susceptance combine in a
more complicated manner. In these situations, it is easier to convert conductance to resistance, susceptance to
reactance, and then calculate the composite impedance.
Conductance:
Conductance, denoted G, is a measure of the ease with which charge carriers can pass through a
component or substance. The more easily the charge carriers move in response to a given applied electric
potential, the higher the conductance, which is expressed in positive realnumber siemens . Conductance is
observed with AC and also with direct current ( DC ).
Susceptance:
Susceptance, denoted B , is an expression of the readiness with which an electronic component, circuit,
or system releases stored energy as the current and voltage fluctuate. Susceptance is expressed in imaginary
number siemens. It is observed for AC, but not for DC. When AC passes through a component that contains
susceptance, energy might be stored and released in the form of a magnetic field, in which case the susceptance
is inductive (denoted - jB L ), or energy might be stored and released in the form of an electric field, in which
case the susceptance is capacitive (denoted + jB C ).
47 | P a g e
Bus Admittance:
In a power system, Bus Admittance Matrix represents the nodal admittances of the various buses.
With the help of the transmission line, each bus is connected to the various other buses.
Admittance matrix is used to analyse the data that is needed in the load or a power flow study of the buses.
It explains the admittance and the topology of the network.
Power System:
The Power System that is used for this experiment is taken from Hadi Sadat’s book and that is
shown in figure 1:
48 | P a g e
Code:
The MATLAB code of the formulation of Ybus is below:
clc; clear;
[from to R X]=textread('labpsa.txt','%d %d %f %f');
nodes=max(max(from),max(to));%gives the number of nodes
branches=length(from); %gives the number of branches
Y=zeros(1,branches);
for a=1:branches %gives the admittances
Y(a)= 1/(R(a)+X(a)*j);
end
ybus=zeros(nodes, nodes); %ybus matrix for diagonal elements
for b=1:branches
if from(b)>0
ybus(from(b),from(b))=ybus(from(b),from(b))+Y(b);
end
if to(b)>0
ybus(to(b),to(b))=ybus(to(b),to(b))+ Y(b);
end
end
%for off diagonal elements
for c=1:branches
if from(c)>0 & to(c)>0
if from(c) ~= to(c)
ybus(from(c),to(c))=-1*(ybus(to(c),from(c))+Y(c));
ybus(to(c),from(c))=ybus(from(c),to(c));
end
end
end
ybus
49 | P a g e
Matlab output:
The output that Matlab will give us is the Ybus that is formulated by Matlab of the power system
that was under consideration.
ybus =
Columns 1 through 2
0.0000 - 8.5000i 0.0000 + 2.5000i
0.0000 + 2.5000i 0.0000 - 8.7500i
0.0000 + 5.0000i 0.0000 + 5.0000i
0.0000 + 0.0000i 0.0000 + 0.0000i
Columns 3 through 4
0.0000 + 5.0000i 0.0000 + 0.0000i
0.0000 + 5.0000i 0.0000 + 0.0000i
0.0000 -22.5000i 0.0000 +12.5000i
0.0000 +12.5000i 0.0000 -12.5000i
Book Output:
The output of the same circuit in the text book is below:
We will take another example from the textbook to formulate the Ybus matrix.
Power System:
The following is another example taken from the textbook of Hadi Sadat:
50 | P a g e
Procedure:
To formulate the Ybus matrix in MATLAB the following procedure must be followed:
• Open Matlab.
• Open a new file and write the code of the Ybus in a new script.
• When the code is completed then save the code.
• Put the values of Zbus by entering the different columns of Zbus. After that run the code.
• It will show the Ybus.
Zbus Matrix:
To enter values in Zbus the following method is adopted. First we will enter values in columns and
then we will enter them in a matrix.
Code:
The MATLAB code of the formulation of Ybus is below:
clc; clear;
[from to R X]=textread('labpsa_2.txt','%d %d %f %f');
nodes=max(max(from),max(to));%gives the number of nodes
branches=length(from); %gives the number of branches
Y=zeros(1,branches);
for a=1:branches %gives the admittances
Y(a)= 1/(R(a)+X(a)*j);
end
ybus=zeros(nodes, nodes); %ybus matrix for diagonal elements
for b=1:branches
if from(b)>0
ybus(from(b),from(b))=ybus(from(b),from(b))+Y(b);
end
if to(b)>0
ybus(to(b),to(b))=ybus(to(b),to(b))+ Y(b);
end
end
51 | P a g e
%for off diagonal elements
for c=1:branches
if from(c)>0 & to(c)>0
if from(c) ~= to(c)
ybus(from(c),to(c))=-1*(ybus(to(c),from(c))+Y(c));
ybus(to(c),from(c))=ybus(from(c),to(c));
end
end
end
ybus
Matlab output:
The output that Matlab will give us is the Ybus that is formulated by Matlab of the power system
that was under consideration.
ybus =
Columns 1 through 2
20.0000 -52.0000i -10.0000 +20.0000i
-10.0000 +20.0000i 26.0000 -53.0000i
-10.0000 +30.0000i -16.0000 +32.0000i
Column 3
-10.0000 +30.0000i
-16.0000 +32.0000i
28.0000 -63.0000i
Book Output:
The output of the same circuit in the textbook is below:
The final output that we got from Matlab is same as that we calculate manually so that gives us way
to check out calculations or just by solving the given power system on Matlab. It is quick and efficient way
to check the Ybus matrix of a Power System.
52 | P a g e
EXPERIMENT 8
“Formulation of The Zbus of Given Power System Network Using MATLAB”
LAB TASK:
For the given Zbus :
1 2 3
𝑍𝐵𝑈𝑆 = [4 5 6]
7 8 9
➢ CASE 1: Adding impedance from a new bus to the reference bus.
Add new impedance
Z=10
➢ CASE 2: Adding impedance from a new bus to the reference bus.
Add new impedance
Z=10
➢ CASE 3: Adding impedance from an existing bus to the reference bas.
Add new impedance in last bus
Z=10
➢ CASE 4: Adding Impedance between two existing buses.
Add new impedance between bus 2 and 3
Z=10
MATLAB CODE:
CASE 1:
function [Z]=Case1(zold,zb) % Modifying Z bus matrix
l=length(zold); %length of orignal matrix
for i=1:l+1
for j=1:l+1
if i<=l && j<=l
Z(i,j)=zold(i,j); %Put values of zold in new matrix of order (n+1)
elseif i==l+1 && j==l+1 %Access last element of the New matrix
Z(i,j)=zb; %Adding new impednce as Last element of z
else
Z(i,j)=0;
end
end
end
CASE 2:
function [Z]=Case2(zold,zb)
l=length(zold); %length of orignal matrix
row =zold(l,:); %Extract last row of orignal matrix zold
column =zold(:,l); %Extract last column of orignal matrix zold
for i=1:l+1
for j=1:l+1
if i<=l && j<=l
Z(i,j)=zold(i,j); %Put values of zold in z order (n+1)
elseif i==l+1
53 | P a g e
for p=1:l
Z(i,p)=row(p); %Copy & Paste Last row in z from zold.
end
elseif j==l+1 %Copy & Past Last Column in z from zold.
for q=1:l
Z(q,j)=column(q);
end
end
if i==l+1 && j==l+1 %Access last element of the New matrix.
Z(i,j)=zb+zold(l,l); %Adding new impednce into Last element of zold
end
end
end
CASE 3:
function [Z]=CASE2(zold,zb)
l=length(zold); %length of orignal matrix
row =zold(l,:); %Extract last row of orignal matrix zold
column =zold(:,l); %Extract last column of orignal matrix zold
for i=1:l+1
for j=1:l+1
if i<=l && j<=l
Z(i,j)=zold(i,j); %Put values of zold in z order (n+1)
elseif i==l+1
for p=1:l
Z(i,p)=row(p); %Copy & Paste Last row in z from zold.
end
elseif j==l+1
for q=1:l
Z(q,j)=column(q); %Copy & Past Last Column in z from zold.
end
end
if i==l+1 && j==l+1 %Access last element of the New matrix.
Z(i,j)=zb+zold(l,l); %Adding new impednce into Last element of zold
end
end
end
Z11=Z(1,1); %Access Element of Row1 and Column 1
Z12=Z(1,2); %Access Element of Row1 and Column 2
Z13=Z(1,3); %Access Element of Row1 and Column 3
Z14=Z(1,4); %Access Element of Row1 and Column 4
Z21=Z(2,1); %Access Element of Row2 and Column 1
Z22=Z(2,2); %Access Element of Row2 and Column 2
Z23=Z(2,3); %Access Element of Row2 and Column 2
Z24=Z(2,4); %Access Element of Row2 and Column 4
Z31=Z(3,1); %Access Element of Row3 and Column 1
Z32=Z(3,2); %Access Element of Row3 and Column 2
Z33=Z(3,3); %Access Element of Row3 and Column 4
Z34=Z(3,4); %Access Element of Row3 and Column 4
54 | P a g e
Z41=Z(4,1); %Access Element of Row4 and Column 1
Z42=Z(4,2); %Access Element of Row4 and Column 2
Z43=Z(4,3); %Access Element of Row4 and Column 3
Z44=Z(4,4); %Access Element of Row4 and Column 4
%After Node elimination, the new matrix Znew is given as
Znew=[(Z11-((Z14*Z41)/Z44)) (Z12-((Z14*Z42)/Z44)) (Z13-((Z14*Z43)/Z44));
(Z21-((Z24*Z41)/Z44)) (Z22-((Z24*Z42)/Z44)) (Z23-((Z24*Z43)/Z44));
(Z31-((Z34*Z41)/Z44)) (Z32-((Z34*Z42)/Z44)) (Z33-((Z34*Z43)/Z44))]
CASE 4:
function [Z,Znew]=CASE2(zold,zb,n1,n2)
l=length(zold); %length of orignal matrix
row =zold(n1,:)-zold(n2,:); %Extract last row of orignal matrix zold
column =zold(:,n1)-zold(:,n2);%Extract last column of orignal matrix zold
for i=1:l+1
for j=1:l+1
if i<=l && j<=l
Z(i,j)=zold(i,j); %Put values of zold in z order (n+1)
elseif i==l+1
for p=1:l
Z(i,p)=row(p); % Inserting last column in Z.
end
elseif j==l+1
for q=1:l
Z(q,j)=column(q); %Inserting last column in Z
end
end
if i==l+1 && j==l+1 %Access last element of the New matrix Z.
Z(i,j)=zb+zold(n1,n1)+zold(n2,n2)-(2*zold(n1,n2));
end
end
end
Z11=Z(1,1); %Access Element of Row1 and Column 1
Z12=Z(1,2); %Access Element of Row1 and Column 2
Z13=Z(1,3); %Access Element of Row1 and Column 3
Z14=Z(1,4); %Access Element of Row1 and Column 4
Z21=Z(2,1); %Access Element of Row2 and Column 1
Z22=Z(2,2); %Access Element of Row2 and Column 2
Z23=Z(2,3); %Access Element of Row2 and Column 2
Z24=Z(2,4); %Access Element of Row2 and Column 4
Z31=Z(3,1); %Access Element of Row3 and Column 1
Z32=Z(3,2); %Access Element of Row3 and Column 2
Z33=Z(3,3); %Access Element of Row3 and Column 4
Z34=Z(3,4); %Access Element of Row3 and Column 4
Z41=Z(4,1); %Access Element of Row4 and Column 1
Z42=Z(4,2); %Access Element of Row4 and Column 2
Z43=Z(4,3); %Access Element of Row4 and Column 3
Z44=Z(4,4); %Access Element of Row4 and Column 4
55 | P a g e
%After Node elimination, the new matrix Znew is given as
Znew=[(Z11-((Z14*Z41)/Z44)) (Z12-((Z14*Z42)/Z44)) (Z13-((Z14*Z43)/Z44));
(Z21-((Z24*Z41)/Z44)) (Z22-((Z24*Z42)/Z44)) (Z23-((Z24*Z43)/Z44));
(Z31-((Z34*Z41)/Z44)) (Z32-((Z34*Z42)/Z44)) (Z33-((Z34*Z43)/Z44))]
RESULTS:
>> Case1
zold=[1 2 3; 4 5 6; 7 8 9] % zold=origional impedence matrix
zb=10 % zb=impedence currently added
Case1(zold,zb);
zold =
1 2 3
4 5 6
7 8 9
zb =
10
ans =
1 2 3 0
4 5 6 0
7 8 9 0
0 0 0 10
>> Case2
zold=[1 2 3; 4 5 6; 7 8 9] % zold=origional impedence matrix
zb=10 % zb=impedence currently added
Case2(zold,zb);
zold =
1 2 3
4 5 6
7 8 9
zb =
10
ans =
1 2 3 3
4 5 6 6
7 8 9 9
7 8 9 19
>> Case3
zold=[1 2 3; 4 5 6; 7 8 9] % zold=origional impedence matrix
zb=10 % zb=impedence currently added
Case(zold,zb)
56 | P a g e
zold =
1 2 3
4 5 6
7 8 9
zb =
10
Znew =
-0.1053 0.7368 1.5789
1.7895 2.4737 3.1579
3.6842 4.2105 4.7368
ans =
1 2 3 3
4 5 6 6
7 8 9 9
7 8 9 19
>> Case4
zold=[1 2 3; 2 5 6; 3 6 9] % zold=origional impedence matrix
zb=10 % zb=impedence currently added
n1=2; %1st existing bus to which zb is added
n2=3; %2nd existing bus to which zb is added
Case4(zold,zb,n1,n2);
zold =
1 2 3
2 5 6
3 6 9
zb =
10
Znew =
0.9167 1.9167 2.7500
1.9167 4.9167 5.7500
2.7500 5.7500 8.2500
ans =
1 2 3 -1
2 5 6 -1
3 6 9 -3
-1 -1 -3 12
57 | P a g e
EXPERIMENT 9
“BUS Elimination Techniques For a BUS System Using MATLAB”
In this lab we are given a Ybus matrix. We are asked to perform BUS reduction technique in MATLAB.
There are two main methods to remove a bus from Y matrix without drawing the modified power circuit.
1. KRON-REDUCTION method:
This method has following steps.
• Move the bus to be removed at the end of matrix.
• Divide matrix in 4 parts.
Yaa Yab
Yabt Ybb
𝑌𝑖𝑘 ∗𝑌𝑗𝑘
𝑌𝑖𝑗𝑛𝑒𝑤 = 𝑌𝑖𝑗 − 𝑌𝑘𝑘
Where k is the bus we want to remove.
LAB TASK:
For the given Ybus:
−9.8𝑗 0 4𝑗 5𝑗
0 −8.3𝑗 2.5𝑗 5𝑗
𝑌𝐵𝑈𝑆 =[ ]
4𝑗 2.5𝑗 −14.5𝑗 8𝑗
5𝑗 5𝑗 8𝑗 −18𝑗
➢ CASE 1:
Remove last 2 buses using KRON-REDUCTION method.
➢ CASE 2:
58 | P a g e
Using direct method:
i. Remove BUS 4.
ii. After removing BUS4, remove BUS3 from the resultant matrix.
MATLAB CODE:
CASE 1:
Y= [-9.8j 0 4j 5j
0 -8.3j 2.5j 5j
4j 2.5j -14.5j 8j
5j 5j 8j -18j];
59 | P a g e
0 + 4.0736i 0 - 4.8736i
CASE 2:
Y matrix after the removal of BUS4
Ynew1 =
0 - 8.4111i 0 + 1.3889i 0 + 6.2222i
0 + 1.3889i 0 - 6.9111i 0 + 4.7222i
0 + 6.2222i 0 + 4.7222i 0 -10.9444i
Y matrix after the removal of both BUS3 and BUS4
Ynew2 =
0 - 4.8736i 0 + 4.0736i
0 + 4.0736i 0 - 4.8736i
60 | P a g e
EXPERIMENT 10
“Load Flow Analysis using Gauss-Seidel Method in MATLAB”
Example # 6.9:
Load flow analysis using Gauss-Seidel method.
MATLAB Code:
basemva = 100;
accuracy = 0.001;
accel = 1.8 ;
maxiter = 100;
busdata = [ 1 1 1.06 0 0.0 0.0 0.0 0.0 0 0 0
2 2 1.043 0 21.7 12.7 40.0 0 -40 50 0
3 0 1 0 2.4 1.2 0 0 0 0 0
4 0 1.06 0 7.6 1.6 0 0 0 0 0
5 2 1.01 0 94.2 19 0 0 -40 40 0
6 0 1 0 0 0 0 0 0 0 0
7 0 1 0 22.8 10.9 0 0 0 0 0
8 2 1.01 0 30 30 0 0 -10 40 0
9 0 1 0 0 0 0 0 0 0 0
10 0 1 0 5.8 2 0 0 0 0 19
11 2 1.082 0 0 0 0 0 -6 24 0
12 0 1 0 11.2 7.5 0 0 0 0 0
13 2 1.071 0 0 0 0 0 -6 24 0
14 0 1 0 6.2 1.6 0 0 0 0 0
15 0 1 0 8.2 2.5 0 0 0 0 0
16 0 1 0 3.5 1.8 0 0 0 0 0
17 0 1 0 9 5.8 0 0 0 0 0
18 0 1 0 3.2 0.9 0 0 0 0 0
19 0 1 0 9.5 3.4 0 0 0 0 0
20 0 1 0 2.2 0.7 0 0 0 0 0
21 0 1 0 17.5 11.2 0 0 0 0 0
22 0 1 0 0 0 0 0 0 0 0
23 0 1 0 3.2 1.6 0 0 0 0 0
24 0 1 0 8.7 6.7 0 0 0 0 4.3
25 0 1 0 0 0 0 0 0 0 0
26 0 1 0 3.5 2.3 0 0 0 0 0
27 0 1 0 0 0 0 0 0 0 0
28 0 1 0 0 0 0 0 0 0 0
29 0 1 0 2.4 0.9 0 0 0 0 0
30 0 1 0 10.6 1.9 0 0 0 0 0];
61 | P a g e
3 4 0.0132 0.0379 0.00420 1
2 5 0.0472 0.1983 0.02090 1
2 6 0.0581 0.1763 0.01870 1
4 6 0.0119 0.0414 0.00450 1
5 7 0.0460 0.1160 0.01020 1
6 7 0.0267 0.0820 0.00850 1
6 8 0.0120 0.0420 0.00450 1
6 9 0.0 0.2080 0.0 0.978
6 10 0 0.5560 0.0 0.969
9 11 0 0.2080 0.0 1
9 10 0 0.1100 0.0 1
4 12 0 0.2560 0.0 0.932
12 13 0 0.1400 0.0 1
12 14 0.1231 0.2559 0.0 1
12 15 0.0662 0.1304 0 0 1
12 16 0.0945 0.1987 0.0 1
14 15 0.2210 0.1997 0.0 1
16 17 0.0084 0.1923 0.0 1
15 18 0.1073 0.2185 0.0 1
18 19 0.0639 0.1292 0.0 1
19 20 0.0340 0.0680 0.0 1
10 20 0.0936 0.2090 0.0 1
10 17 0.0324 0.0845 0.0 1
10 21 0.0348 0.0749 0.0 1
10 22 0.0727 0.1499 0.0 1
21 22 0.0116 0.0236 0.0 1
15 23 0.1000 0.2020 0.0 1
22 24 0.1150 0.1790 0.0 1
23 24 0.1320 0.2700 0.0 1
24 25 0.1885 0.3292 0.0 1
25 26 0.2544 0.3800 0.0 1
25 27 0.1093 0.2087 0.0 1
28 27 0.0000 0.3960 0.0 0.968
27 29 0.2198 0.4153 0.0 1
27 30 0.3202 0.6027 0.0 1
29 30 0.2399 0.4533 0.0 1
8 28 0.0636 0.2000 0.0214 1
6 28 0.0169 0.0599 0.065 1];
lfybus
lfgauss
busout
lineflow
Result:
Power Flow Solution by Gauss-Seidel Method
62 | P a g e
Maximum Power Mismatch = 0.000908417
No. of Iterations = 30
63 | P a g e
Line Flow and Losses
--Line-- Power at bus & line flow --Line loss-- Transformer
from to MW Mvar MVA MW Mvar tap
64 | P a g e
6 -37.298 -0.112 37.298 0.368 -0.605
65 | P a g e
23 5.581 2.968 6.321 0.037 0.075
66 | P a g e
25 0.000 0.000 0.000
24 1.842 -0.476 1.903 0.007 0.011
26 3.522 2.351 4.235 0.044 0.065
27 -5.351 -1.826 5.654 0.033 0.064
67 | P a g e
EXPERIMENT 11
“Load Flow Analysis Using Newton-Raphson Method in MATLAB”
Example # 6.11:
Load flow analysis using Newton Raphson method.
MATLAB Code:
clear; clc;
basemva=100;
accuracy=0.001;
maxiter=12;
busdata=[1 1 1.06 0 0.0 0.0 0.0 0.0 0 0 0
2 2 1.043 0 21.70 12.7 40.0 0.0 -40 50 0
3 0 1.0 0 2.4 1.2 0 0 0 0 0
4 0 1.06 0 7.6 1.6 0 0 0 0 0
5 2 1.01 0 94.2 19 0 0 -40 40 0
60100000000
7 0 1 0 22.8 10.9 0 0 0 0 0
8 2 1.01 0 30 30 0 0 -10 40 0
901 00000000
10 0 1 0 5.8 2 0 0 0 0 19
11 2 1.082 0 0 0 0 0 -6 24 0
12 0 1 0 11.2 7.5 0 0 0 0 0
13 2 1.071 0 0 0 0 0 -6 24 0
14 0 1 0 6.2 1.6 0 0 0 0 0
15 0 1 0 8.2 2.5 0 0 0 0 0
16 0 1 0 3.5 1.8 0 0 0 0 0
17 0 1.0 0 9 5.8 0 0 0 0 0
18 0 1.0 0 3.2 0.9 0 0 0 0 0
19 0 1 0 9.5 3.4 0 0 0 0 0
20 0 1 0 2.2 0.7 0 0 0 0 0
21 0 1 0 17.5 11.2 0 0 0 0 0
22 0 1 0 0 0 0 0 0 0 0
23 0 1 0 3.2 1.6 0 0 0 0 0
24 0 1 0 8.7 6.7 0 0 0 0 4.3
25 0 1 0 0 0 0 0 0 0 0
26 0 1 0 3.5 2.3 0 0 0 0 0
27 0 1 0 0 0 0 0 0 0 0
28 0 1 0 0 0 0 0 0 0 0
29 0 1 0 2.4 0.9 0 0 0 0 0
30 0 1 0 10.6 1.9 0 0 0 0 0];
68 | P a g e
3 4 0.0132 0.0379 0.00420 1
2 5 0.0472 0.1983 0.02090 1
2 6 0.0581 0.1763 0.01870 1
4 6 0.0119 0.0414 0.00450 1
5 7 0.0460 0.1160 0.01020 1
6 7 0.0267 0.0820 0.00850 1
6 8 0.0120 0.0420 0.00450 1
6 9 0.0 0.2080 0.0 0.978
6 10 0.0 0.5560 0.0 0.969
9 11 0.0 0.2080 0.0 1
9 10 0.0 0.1100 0.0 1
4 12 0.0 0.2560 0.0 0.932
12 13 0.0 0.1400 0.0 1
12 14 0.1231 0.2559 0.0 1
12 15 0.0662 1.1304 0.0 1
14 15 0.2210 0.1997 0.0 1
16 17 0.0824 0.1923 0.0 1
15 18 0.1073 0.2185 0.0 1
18 19 0.0639 0.1292 0.1 1
19 20 0.0340 0.0680 0.0 1
10 20 0.0936 0.2090 0.0 1
10 17 0.0324 0.0845 0.0 1
10 21 0.0348 0.0749 0.0 1
10 22 0.0727 0.1499 0.0 1
21 22 0.0116 0.0236 0.0 1
15 23 0.1 0.2020 0.0 1
22 24 0.1150 0.1790 0.0 1
23 24 0.1320 0.27 0.0 1
24 25 0.1885 0.3292 0.0 1
25 26 0.2544 0.38 0.0 1
25 27 0.1093 0.2087 0.0 1
28 27 0.0000 0.3960 0.0 0.968
27 29 0.2198 0.4153 0.0 1
27 30 0.3202 0.6027 0.0 1
29 30 0.2399 0.4533 0.0 1
8 28 0.0636 0.2000 0.0214 1
6 28 0.0169 0.0599 0.065 1];
lfybus
lfnewton
busout
lineflow
69 | P a g e
Result:
No. of Iterations = 4
70 | P a g e
16 1.047 -15.875 3.500 1.800 0.000 0.000 0.000
71 | P a g e
6 61.971 -2.698 62.030 2.051 2.264
3 -2.400 -1.200 2.683
1 -80.565 2.902 80.617 2.814 7.100
4 78.165 -4.102 78.272 0.772 1.345
4 -7.600 -1.600 7.767
2 -44.639 -2.070 44.687 1.103 -0.536
3 -77.393 5.446 77.584 0.772 1.345
6 70.297 -20.063 73.104 0.615 1.214
12 44.134 15.086 46.642 0.000 4.697 0.932
5 -94.200 15.402 95.451
2 -79.867 6.422 80.125 2.985 8.136
7 -14.333 8.980 16.914 0.138 -1.723
6 0.000 0.000 0.000
2 -59.920 4.962 60.125 2.051 2.264
4 -69.682 21.277 72.858 0.615 1.214
7 37.638 -0.410 37.640 0.367 -0.607
8 29.484 3.504 29.691 0.103 -0.562
9 27.384 -6.934 28.248 0.000 1.541 0.978
10 15.658 0.677 15.673 -0.000 1.245 0.969
28 19.438 -23.075 30.171 0.106 -13.105
7 -22.800 -10.900 25.272
5 14.471 -10.703 17.999 0.138 -1.723
6 -37.271 -0.197 37.271 0.367 -0.607
8 -30.000 -31.548 43.535
6 -29.381 -4.066 29.661 0.103 -0.562
28 -0.619 -27.483 27.490 0.020 -44.101
9 0.000 0.000 0.000
6 -27.384 8.475 28.665 0.000 1.541
11 0.000 -14.573 14.573 0.000 0.398
10 27.384 6.098 28.055 0.000 0.780
10 -5.800 17.000 17.962
6 -15.658 0.567 15.668 -0.000 1.245
9 -27.384 -5.318 27.896 0.000 0.780
20 9.311 3.727 10.029 0.086 0.192
17 5.662 4.665 7.336 0.016 0.041
21 22.269 13.358 25.968 0.214 0.461
11 0.000 14.971 14.971
9 -0.000 14.971 14.971 0.000 0.398
12 -11.200 -7.500 13.479
4 -44.134 -10.389 45.341 0.000 4.697
13 -0.000 -9.445 9.445 0.000 0.111
14 7.914 2.402 8.270 0.075 0.156
15 18.108 6.832 19.355 0.221 0.436
16 6.912 3.100 7.575 0.048 0.102
13 0.000 9.557 9.557
12 0.000 9.557 9.557 0.000 0.111
14 -6.200 -1.600 6.403
12 -7.839 -2.245 8.154 0.075 0.156
72 | P a g e
15 1.639 0.645 1.761 0.006 0.006
15 -8.200 -2.500 8.573
12 -17.887 -6.396 18.996 0.221 0.436
14 -1.633 -0.640 1.753 0.006 0.006
18 5.732 1.581 5.946 0.035 0.072
23 5.588 2.954 6.321 0.037 0.075
16 -3.500 -1.800 3.936
12 -6.863 -2.998 7.490 0.048 0.102
17 3.363 1.198 3.571 0.010 0.022
17 -9.000 -5.800 10.707
16 -3.354 -1.176 3.554 0.010 0.022
10 -5.646 -4.624 7.298 0.016 0.041
18 -3.200 -0.900 3.324
15 -5.697 -1.510 5.894 0.035 0.072
19 2.497 0.610 2.570 0.004 0.008
19 -9.500 -3.400 10.090
18 -2.493 -0.602 2.565 0.004 0.008
20 -7.007 -2.798 7.545 0.018 0.037
20 -2.200 -0.700 2.309
19 7.025 2.835 7.576 0.018 0.037
10 -9.225 -3.535 9.879 0.086 0.192
21 -17.500 -11.200 20.777
10 -22.055 -12.898 25.549 0.214 0.461
22 4.555 1.698 4.861 0.003 0.005
22 0.000 0.000 0.000
21 -4.552 -1.693 4.857 0.003 0.005
24 4.552 1.693 4.857 0.026 0.040
23 -3.200 -1.600 3.578
15 -5.551 -2.880 6.253 0.037 0.075
24 2.351 1.280 2.676 0.009 0.018
24 -8.700 -2.400 9.025
22 -4.527 -1.653 4.819 0.026 0.040
23 -2.342 -1.261 2.660 0.009 0.018
25 -1.832 0.514 1.902 0.007 0.011
25 0.000 0.000 0.000
24 1.838 -0.503 1.906 0.007 0.011
26 3.544 2.366 4.261 0.044 0.066
27 -5.382 -1.863 5.696 0.034 0.065
26 -3.500 -2.300 4.188
25 -3.500 -2.300 4.188 0.044 0.066
27 0.000 0.000 0.000
25 5.416 1.928 5.749 0.034 0.065
28 -18.693 -5.249 19.416 0.000 1.400
29 6.188 1.664 6.408 0.085 0.160
30 7.089 1.657 7.280 0.159 0.299
28 0.000 0.000 0.000
27 18.693 6.649 19.840 0.000 1.400 0.968
8 0.640 -16.618 16.630 0.020 -44.101
73 | P a g e
6 -19.332 9.969 21.751 0.106 -13.105
29 -2.400 -0.900 2.563
27 -6.103 -1.504 6.286 0.085 0.160
30 3.703 0.604 3.752 0.033 0.062
30 -10.600 -1.900 10.769
27 -6.930 -1.358 7.062 0.159 0.299
29 -3.670 -0.542 3.710 0.033 0.062
Total loss 17.704 -17.555
74 | P a g e
EXPERIMENT 12
“To Evaluate VOLTAGES For a 4-Bus System Using Node Eq. in MATLAB”
This lab is very simple. In this lab we are given a Ybus matrix and a current matrix and we have to find the
corresponding voltages for the given system.
Before going to Lab task some important definitions are needed to be revised.
NODE:
node refers to any point on a circuit where two or more circuit elements meet. For two nodes to
be different, their voltages must be different.
ADMITTANCE:
Admittance (Y) is a measure of how easily a circuit or device will allow a current to flow. It is defined as
the inverse of the impedance (Z). The SI unit of admittance is the siemens (symbol S).
Ybus MATRIX:
In power engineering, admittance matrix or Ybus matric is an n x n matrix describing a power system with n
buses. It represents the nodal admittance of the buses in a power system. The Y Matrix is also one of the
data requirements needed to formulate a power flow study.
SELF ADMITTANCE:
The Y Matrix diagonal elements are called the self-admittances at the nodes, and each
equals the sum of all the admittances terminating on the node identified by the repeated subscripts.
MUTUAL ADMITTANCE:
The non-diagonal elements of Ybus are the mutual admittances of the nodes, and each equals the negative of
the sum of all admittances connected directly between the nodes identified by the double subscripts.
LAB TASK:
For the given Ybus and I matrices, find corresponding V matrix.
9.8𝑗 0 4𝑗 5𝑗
0 −8.3𝑗 2.5𝑗 5𝑗
𝑌𝐵𝑈𝑆 = [ ]
4𝑗 2.5𝑗 −15.3𝑗 8𝑗
3𝑗 5𝑗 8𝑗 −18𝑗
75 | P a g e
−1.2𝑗
−0.72 − 0.96𝑗
𝐼=[ ]
−1.2𝑗
0
𝑉 = [? ]
We know that
𝑉 = 𝐼∗𝑅
Or
𝐼
𝑉 =𝑅 =𝐼∗𝑌
This is the basic formula that we are going to use in our MATLAB code.
MATLAB CODE:
Y_BUS = [ 9.8j 0 4j 5j
0 -8.3j 2.5j 5j
4j 2.5j -15.3j 8j
3j 5j 8j -18j];
I = [-1.2j
-0.72-0.96j
-1.2j
0];
Z= inv(Y_BUS)
V=Z*I
RESULT:
On running the written code. Following results will be obtained in the main MATLAB window.
Z=
Columns 1 through 3
0 - 0.0634i 0 - 0.0492i 0 - 0.0534i
0 - 0.0377i 0 + 0.1703i 0 + 0.0485i
0 - 0.0439i 0 + 0.0461i 0 + 0.0804i
0 - 0.0406i 0 + 0.0596i 0 + 0.0403i
Column 4
0 - 0.0550i
0 + 0.0584i
0 + 0.0363i
0 + 0.0788i
V=
-0.1874 + 0.0354i
0.1765 - 0.1226i
0.0880 - 0.0332i
0.0569 - 0.0429i
76 | P a g e