LoadFlowProject Final

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

EECE 306

Power System Laboratory

Open Ended Lab Project:


Simulation and Load Flow Study of a 5-bus power system
Group Number: 12

Table of Contents

Single Line Diagram and data table of the given 5-bus power system: ....................................2
Solution of given tasks ............................................................................................................. 3-14
Task 1: Simulation ........................................................................................................................3
Simulation using E-tap.........................................................................................................3
Simulation using MATLAB Simulink .................................................................................4
Task 2: Coding in MATLAB ........................................................................................................5
MATLAB coding .................................................................................................................5
MATLAB coding results ......................................................................................................7
Task 3: Applying an undervoltage condition at bus-4 and overcoming it ....................................8
Method one – Static shunt capacitor bank ...........................................................................9
Method two – Transformer tapping ................................................................................... 11
Task 4: Downgrading power flow through a transmission line..................................................13

Page | 1
Single Line Diagram and data table of the given 5-bus power system: (Base voltage = 10 kV)

Fig 1: Single line diagram of given 5-bus system

Table 1: Bus data :-

Generation Load
Bus no. Bus voltage
MW MVAr MW MVAr
1 1.06 + j0.0 0 0 0 0
2 1.0 + j0.0 40 30 20 10
3 1.0 + j0.0 0 0 45 15
4 1.0 + j0.0 0 0 40 5
5 1.0 + j0.0 0 0 60 10

Table 2: Transmission Line data :-

Line impedance
Line Line charging, B
R per unit X per unit
1–2 0.02 0.06 0.0 + j0.03
1–3 0.08 0.24 0.0 + j0.025
2–3 0.06 0.25 0.0 + j0.02
2–4 0.06 0.18 0.0 + j0.02
2–5 0.04 0.12 0.0 + j0.015
3–4 0.01 0.03 0.0 + j0.01
3–5 0.08 0.24 0.0 + j0.025

Page | 2
Task 1. Perform load flow studies of the power system of Fig. 1 to identify slack bus (Bus no.1)
power and bus voltages (Bus no. 2 to Bus no. 3). Compute line flows and line losses
also. [Use any simulation software]

Answer:

Here, we have used the simulation softwares “E-tap” and “MATLAB Simulink” to simulate our
given 5-bus power system. Simulation diagrams of the given 5-bus system are given below:

Fig 2: Simulation diagram of given 5-bus system in E-tap

Table 3: Solution of load flow analysis in “E-tap” software:

Generation Load Bus Voltage


Bus No.
MW MVAr MW MVAr Voltage (per unit) Angle
1 129.7 8.98 0 0 1.06 0

2 40 30 20 10 1.0476 -2.67

3 0 0 45 15 1.0229 -5.12

4 0 0 40 5 1.0225 -5.39
5 0 0 60 10 1.0176 -6.08

Page | 3
Fig 3: Simulation diagram of given 5-bus system in MATLAB Simulink

Fig 4: Load flow analysis table using MATLAB Simulink

Table 3: Solution of load flow analysis in “MATLAB Simulink” software:

Generation Load Bus Voltage


Bus No.
MW MVAr MW MVAr Voltage (per unit) Angle
1 129.6 -7.0477 0 0 1.06 0

2 40 30 20 10 1.0476 -2.7529
3 0 0 45 15 1.0229 -5.2086

4 0 0 40 5 1.0225 -5.4879
5 0 0 60 10 1.0176 -6.1672

Page | 4
Task 2. Verify the results obtained in Task no. 1 by writing a MATLAB code adopting any load
flow analysis method.

Answer: Here is the MATLAB code for verifying the results obtained in task 1, where we have
used the Gauss Seidel method to perform the load flow analysis:

%{
EECE 305 Open Ended Lab
Group Members:
202116029 : K. M. Taskin Zaman Kafi
202116034 : Mahmuda Akter
202116029 : MD Abrar Shahriar Kabir
%}

clc
clear all
close all

% Given Bus Data


bus_data = [ 1 1.06 0.0 0 0 0 0
2 1.0 0.0 20 20 40 30
3 1.0 0.0 -45 -15 0 0
4 1.0 0.0 -40 -5 0 0
5 1.0 0.0 -60 -10 0 0 ];

% Given Transmission Line Data


tldata = [ 1 2 0.02 0.06 0.03
1 3 0.08 0.24 0.025
2 3 0.06 0.25 0.02
2 4 0.06 0.18 0.02
2 5 0.04 0.12 0.015
3 4 0.01 0.03 0.01
4 5 0.08 0.24 0.025];

%% Formation of Y matrix from the given data

b1 = tldata(:,1); %starting bus


b2 = tldata(:,2); %ending bus
R = tldata(:,3); %resistance between lines
X = tldata(:,4); %impedance between lines
j = sqrt(-1);
B = j*tldata(:,5); %susceptance
n = length(b1);
bus = max(max(b1),max(b2)); %number of bus
Z = R + j*X; %Impedance Matrix
y = ones(n,1)./Z ; %admittance

Ymat = zeros(bus,bus);
%Finding OFF DIAGONAl elements
for m = 1:n
Ymat(b1(m),b2(m)) = Ymat(b1(m),b2(m)) - y(m);
Ymat(b2(m),b1(m)) = Ymat(b1(m),b2(m));
end

Page | 5
%Finding the diagonal elements
for m=1:bus
for k=1:n
if b1(k)== m
Ymat(m,m) = Ymat(m,m)+y(k)+ B(k);
elseif b2(k)== m
Ymat(m,m)= Ymat(m,m)+y(k)+ B(k);
else
end
end
end
Ymat

%% Solution using Gauss-Seidel Method


% Given Base = 100MVA

base=100;
VB = bus_data(:,2); %Bus Voltage in p.u.
PB = bus_data(:,3); %Bus Phase
P = bus_data(:,4); %Real Power of Bus
Q = bus_data(:,5); %Reactive Power of Bus
bus_n = length(bus_data(:,1));
VR = zeros(bus_n,1); %Resultant Voltage
VR = VB;

V_NEW= VR;
for jk= 1:200
for i=2:bus_n
SUM=0;
for j=1:bus_n
if i~=j
SUM= SUM+Ymat(i,j)*V_NEW(j);
end
end
VR(i) = (((((P(i)-1j*Q(i)))/base)/conj(V_NEW(i)))-
SUM)/Ymat(i,i);
V_NEW(i) = VR(i);
end
end
V_NEW
VR = V_NEW

imaginary_part = zeros(bus_n,1);
for ph=1:bus_n
imaginary_part(ph,1)= imag(VR(ph,1));
end
real_part = zeros(bus_n,1);
for re = 1:bus_n
real_part(re,1) = real(VR(re,1));
end

%% Calculation of voltage and phase angle of slack, generator and load


buses
theta= zeros(bus_n,1);
for th =1:bus_n

Page | 6
theta(th,1) = atand(imaginary_part(th,1)/real_part(th,1));

end
fprintf('The column matrix containg Voltage Magnitude:')
magg = abs(VR);
magg
fprintf('The column matrix containg Phase:')
theta

for print=1:bus_n
fprintf('The voltage of BUS %d is %f \n ',print,magg(print,1))
end
fprintf('\n \n \n')
for print=1:bus_n
fprintf('The phase of BUS %d is %f \n ',print,theta(print,1))
end
fprintf('\n \n \n')

%% Calculation of real and reactive power of Slack Bus


S=0;
slack=1;
SUM=0;
for j=2:bus_n
SUM=SUM+Ymat(slack,j)*VR(j,1);
end
S=VR(slack,1)*(VR(slack,1)*Ymat(slack,slack)+SUM);
S;
P_slack= real(S)*100;
fprintf('Real power of slack bus is P= %d \n' ,P_slack)
Q_slack = imag(S)*100;
fprintf('Reactive power of slack bus is Q= %d \n' ,Q_slack)

Here are the results that we have obtained from our MATLAB code:

Fig 5: Code output of the 5-bus system using MATLAB

Page | 7
Task 3. Make an undervoltage event in Bus-4 and apply any technique to overcome the
undervoltage problem of the system. (Consider, below 90% be undervoltage for any bus)

Answer: When the voltage level in an electrical system falls below the typical range, it is said to
be undervoltage. To guarantee the proper operation of electrical equipment and appliances, the
standard voltage level is often set and maintained within a specific range in power systems.

Undervoltage can happen for a number of causes, such as:

System faults: A decline in voltage levels can be caused by flaws in the power distribution
system, such as short circuits, equipment breakdowns, or transformer problems.

Overloading: A voltage drop may occur when the electrical demand exceeds the power system's
capability. This generally occurs at periods of peak demand or when many high-power gadgets
are used simultaneously.

Voltage Regulation problem: Voltage regulation refers to the process of keeping the voltage
within a predetermined range. Undervoltage circumstances may come from faulty or incorrectly
adjusted voltage regulating devices or systems.

Long Transmission Lines: Electrical power is transmitted over long distances through
transmission lines. Resistance and other factors can cause voltage drops along the transmission
lines, leading to undervoltage at the receiving end.

Grid Instability: Instabilities in the power grid caused by sudden changes in demand, network
faults, or inadequate generation capacity can result in voltage fluctuations,
including undervoltage.

There are several methods of overcome undervoltage situation or power factor improve such as-

Static capacitor bank: Static capacitor bank, also known as power factor correction capacitors,
improve power factor by compensating for reactive power, reducing voltage drops, and
increasing system efficiency. They help regulate voltage, reduce line losses, increase system
capacity, and improve overall power factor by minimizing the consumption of reactive power.
There are two type of static capacitor parallel and series capacitor.

Synchronous Condenser: A synchronous motor can operate as a synchronous condenser by


running without a mechanical load and maintaining an overexcited field. It injects leading
reactive power into the system, improves power factor, regulates voltage, and enhances
system stability.

Transformer tapping: Transformer tapping does not directly improve power factor (PF).
However, by allowing for voltage regulation, transformer tapping can indirectly influence power
factor by maintaining a stable voltage level, which can help mitigate power factor variations
caused by fluctuating load voltage.

Page | 8
Method one: Static Shunt Capacitor Bank

Step 1: Making undervoltage at Busbar-4 by increasing the load.

Fig 6: Busbar-4 in undervoltage condition

At undervoltage situation current flows to the load is 12.853KA, and power factor drops at
89.84%. and this bus operating at 8.984KV but here desire voltage is 10KV that’s why it’s
showing undervoltage condition. We need to compensate the voltage for improving pf otherwise
it can drastically reduce the life of the equipment and eventually lead to premature failure.

Step 2: After adding capacitor bank:

Page | 9
Fig 7: Applying static shunt capacitor bank to overcome undervoltage condition

How we set the value of capacitor bank-


Let, Power at bus-4 = 250MW
Actual Pf = 0.89; Øa = 27.13°
Desire pf = 0.96; Ød = 16.26°

∴ Required Reactive power = P (tan Øa - tan Ød) = 55.18 Var

If we want to obtain 0.96 power factor then we need to connect 1x55.18 var shunt capacitor bank
in parallel between bus4 and bus5. In this case we took more capacitance instead of our
calculated value because capacitor value is static but load can be changed by any moment so we
inject more reactive power so that It will compensate required voltage in over loading situation.
Before connecting capacitor bank load draws load current which increases loss but after
connecting capacitor bank current is reducing that minimize the rate of loss.

Page | 10
Method two: Transformer tapping

Fig 8: Applying transformer tapping (positive at primary) to overcome undervoltage condition

We can do positive or negative tapping according to our requirement, In this PS bus4 is primary
side and bus5 is secondary. Bus4 is undervoltage so we need to increase primary side voltage by
positive tapping or decrease secondary side voltage by negative tapping.

In case of positive tapping at primary side,


% tap = (Vactual – Vrated ) / Vrated
Or, 2.5% = (Vactual – 10kv) / 10kv
∴ Vactual = 10.25 KV (before tapping Vactual was 8.9kv)

Power factor (PF) does not directly improve with transformer tapping. Transformer tapping can,
however, indirectly affect power factor by keeping a constant voltage level, which can help
lessen power factor changes brought on by varying load voltage. In order to directly enhance
power factor, power factor correction techniques are used, such as the usage of reactive power
compensation devices.

Page | 11
In case of negative tapping at secondary side,

Fig 9: Applying transformer tapping (negative at secondary) to overcome undervoltage condition

% tap = (Vactual – Vrated ) / Vrated


Or, -2.5% = (Vactual – 10kv) / 10kv
∴ Vactual = 9.75 KV (before tapping Vactual was 10kv)

Fig 10: Symbol of transformer with tap at primary and secondary

Page | 12
Task 4. If the power flow through the transmission line (2-5) is to be made 75% of the normal
condition, what should be the steps that can be adopted to do it? Implement any of them
to do this job.

Answer: Before doing 75% power flow towards transmission line (2-5)

Fig 11: Power flow through the transmission line (2-5) in normal conditions

In normal condition, power flow through bus (2-5) is 56 MW


∴ %75 of normal power = 0.75 x 56 = 42 MW

For obtaining 42 MW, here we have used transformer tapping. We know that reactive power
depends on voltage when transformer create voltage difference between two bus bar. Then
reactive power will change so that overall power flow will change.

Page | 13
Fig 11: Power flow through the transmission line (2-5) made 75% by using transformer tapping

Here, for obtaining 42 MW we connect transformer in parallel. By positive tapping in secondary


side voltage drops in primary side and power through transformer line is increasing so Bus (2-5)
transmission line’s power flow will decrease and close to our desire power. We can do this in
primary side and case will vice versa.

Transformer rating 25MVA means transformer can transmit maximum 25MVA if power flow
exceeds rating power, then it will show overload.

Page | 14

You might also like