Professional Documents
Culture Documents
PSS Lab-18EEL75
PSS Lab-18EEL75
EEL75 - T – P) 02
Exam Duration :3 Total No.of Contact Hours:
CIE +SEE= 50+50=100
Hrs 39
1 To Develop skills of using computer packages like MATLAB (coding and SIMULINK) in Power system studies.
2 To Develop skills of using Mi Power package for designing and analysis of electrical power networks , apply and investigate typical case stu
3 To Develop skills to make use of Virtual lab resources to implement and investigate power system studies.
4 To study and make use of Open source software MATPOWER to analyse, the designed power system problems .
5 To Develop skills to make use of virtual lab resources for out of class learning
Blooms
Expt No MATLAB PROGRAMS Taxnomy
No.of Hours
level.
Using MATLAB, (i) Y-bus formation for power system
L1, L2,
1 without mutual coupling by singular transformation & (ii) 03
L3, L4
inspection method.
Using MATLAB, determination of bus currents, bus power
2 03 L1,L2,L3.
and line flows for a specified system voltage (bus) profile.
Using MATLAB- power angle Characteristics for (i) salient
3
and (ii) non-salient pole synchronous machines. 03
L1, L2,
Determination of reluctance power, excitation emf and L3,L4,
regulation.
4
Using MATLAB, Optimal generator scheduling for thermal 03
L1, L2,
power plants.(2 units & 3 units) L3, L4
5
Using MATLAB- Formation of Jacobian for a system not 03
L1, L2,
exceeding four buses (no PV buses) L3, L4
Formation of Z bus using Z bus building algorithm( without
6. 03 L1,L2,L3
mutual coupling)
MiPower Programs
7.
Using Mi-Power, Optimal generator scheduling for thermal 03
L1, L2,
power plants. L3, L4,
Using Mi-power, Load flow analysis for (i) three bus (ii) five L1, L2,
8. bus system using Gauss Seidal and Newton Raphson & Fast 03 L3, L4,
Decoupled method.
Using Mi-Power, to determine fault currents and voltages in a L1,L2,L3.
9 given single transmission line system subjected to L-L, L-G, 03
LL-G faults
EXPERIMENTS BEYOND SYLLABUS
10 Using MATLAB/MATPOWER- Gauss Seidel method for 03 L1, L2,
Load flow Analysis for the given power system.(3 Bus system L3, L4
only PQ bus)
Using MATLAB/MATPOWER, Program for Plotting swing L1, L2,
11 03
L3,L4
curve when the fault is cleared.
USING MATLAB/MATPOWER Program for Plotting Swing L1, L2,
12 curve for sustained fault and determination of critical clearing 03 L3, L4
angle & time.
Using MATPOWER open source software create , analyse L1, L2,
13 and evaluate the given power system problem 03 L3,L4
Note 1: Laboratory report should be submitted to the subject faculty every week and evaluation will be done on the same week only
.
Course Outcomes:
Recall Power system parameters and interpret the same to experiment with
CO1 software packages (Matlab/Mi- Power/MAT POWER-open source
software) .
CO2
Develop programs and models using computer based tools for analyzing optimal
generator scheduling and solve theoretically to verify the same.
CO3 Create, Analyse and develop different types of faults for stability studies and solve theoretically to verify the same.
CO4
Determine Load flow parameters using numerical methods and solve theoretically
for verification.
CO
5
Devise programs analyses to solve real time problems.
Programme Outcome
Sl.No Course Outcome Level of Blooms Taxonomy
No. of hours of teaching
1 2 3 4 5 6 7 8 9 10 11 12
1. CO1 1,2,3 6 3 2 1 3 2
2. CO2 2,3,4 6 3 2 2 3 2
3. CO3 2,3,4 6 3 1 3 2
4. CO4 2,3,4 6 3 3 2
5. CO5 2,3,4 4 3 2 1 3 2
Average CO 3 2 2 1 3 2
Text Books.
1 PRDC , “ User Manual ”. 2018
Web Links.
1 www.prdcinfotek.com
2 www.mathworks.com
3. https://www.youtube.com/watch?v=6XMGzJa6HWc
4. https://www.youtube.com/watch?v=SIE-T67Y3-E
Note 1: Programming to be done using MATLAB/MI Power any versions.
Specified Problems shall be done using open source software MAT Power.
MATLAB PROGRAMS
1. FORMATION OF YBUS BY INSPECTION METHOD WITH HALF LINE CHARGING
clc;
clear all;
linedata=[1 2 0.20 0.8i 0.02i
2 3 0.30 0.9i 0.03i
2 4 0.25 1.0i 0.04i
3 4 0.20 0.8i 0.02i
1 3 0.10 0.4i 0.01i]
fb=linedata(:,1);
tb=linedata(:,2);
r=linedata(:,3);
x=linedata(:,4);
b=linedata(:,5);
z=r+x;
y=1./z;
b=b/2
nbus=max(max(fb),max(tb));
nbranch=length(fb);
ybus=zeros(nbus,nbus);
for k=1:nbranch
ybus(fb(k),tb(k))=ybus(fb(k),tb(k))-y(k);
ybus(tb(k),fb(k))=ybus(fb(k),tb(k));
ybus(fb(k),fb(k))=ybus(fb(k),fb(k))+y(k)+b(k);
ybus(tb(k),tb(k))=ybus(tb(k),tb(k))+y(k)+b(k);
end
ybus
OUTPUT
ybus =
Determine the [Ybus] matrix for the system network shown in figure by inspection method. Write
the MATLAB program and verify with manual calculations.
MANUAL CALCULATIONS:
MATLAB CODE:
clc;
clear all;
linedata=[1 1 1
1 2 0.4
1 3 0.2
2 2 1
2 3 0.2
3 4 0.08]
fb=linedata(:,1);
tb=linedata(:,2);
x=linedata(:,3);
z=i*x;
y=1./z;
nbus=4;
nbranch=length(fb);
ybus=zeros(4,4);
for k=1:nbranch
ybus(fb(k),tb(k))=ybus(fb(k),tb(k))-y(k);
ybus(tb(k),fb(k))=ybus(fb(k),tb(k));
ybus(fb(k),fb(k))=ybus(fb(k),fb(k))+y(k);
ybus(tb(k),tb(k))=ybus(tb(k),tb(k))+y(k);
end
ybus
OUTPUT:
ybus =
For the given 3 bus system with tap changing transformer formulate Ybus matrix and verify using
MATLAB. Neglect line charging admittance of the lines
MANUAL CALCULATIONS:
MATLAB CODE:
clc;
clear all;
linedata=[1 2 -1i 1.03
1 3 -1i 1
2 3 -1i 1]
fb=linedata(:,1);
tb=linedata(:,2);
y=linedata(:,3);
a=linedata(:,4);
nbus=3;
nline=length(fb);
ybus=zeros(3,3);
yt=y./a;
for k=1:nline
p=fb(k);
q=tb(k);
ybus(p,p)=ybus(p,p)+yt(k)+yt(k)*((a(k)-1)/a(k));
ybus(q,q)=ybus(q,q)+yt(k)+yt(k)*((1-a(k))/a(k)^2);
ybus(p,q)=ybus(p,q)-yt(k);
ybus(q,p)=ybus(p,q) ;
end
ybus
OUTPUT:
ybus =
For a given power system shown draw the connected and oriented graph, form bus
incidence matrix and primitive admittance matrix and thus formulate Ybus, write MATLAB
code and verify results. Take reactance of each element as j=0.2. Use Singular
Transformation
method
MANUAL CALCULATIONS:
MATLAB CODE:
clc;
clear all;
linedata=[ 1 3 0.2i
1 2 0.2i
2 3 0.2i]
fb=linedata(:,1);
tb=linedata(:,2);
z=linedata(:,3);
y=1./z;
nbus=3;
nline=3;
for k=1:nline
p=fb(k);
q=tb(k);
aij(k,p)=1;
aij(k,q)=-1;
A=aij;
primy(k,k)=y(k);
end
B=(transpose(A))*primy;
Y=B*A;
disp(A)
disp(primy)
disp(Y)
OUTPUT:
A= 1 0 -1
1 -1 0
0 1 -1
For the power system shown below compute the elements of bus admittance matrix by
inspection method and singular transformation method. Write the MATLAB code for
Singular Transformation method
OUTPUT:
ybus =
A= 1 0 -1
1 -1 0
0 1 -1
Ybus=
20.0000 -50.0000i -10.0000 +20.0000i -10.0000 +30.0000i
-10.0000 +20.0000i 26.0000 -52.0000i -16.0000 +32.0000i
-10.0000 +30.0000i -16.0000 +32.0000i 26.0000 -62.0000i
6. DETERMINATION OF BUS CURRENTS AND BUS POWER
Determine the bus current, bus power and line flows for a specified system voltage profile
and verify using MATLAB code.
VBUS = [ 1.05+j0.0
0.98-j0.06
1.00-j0.05 ]
pu
MANUAL CALCULATIONS:
MATLAB CODE:
clc;
clear all;
nbus=3;
nline=3;
data2=[ 1 2 0.02 0.04
1 3 0.01 0.03
2 3 0.0125 0.025]
data3=[ 1 1.05 0
2 0.9818 -3.5035
3 1.0012 -2.8624];
bus_volt_mag=data3(:,2);
bus_volt_ang=data3(:,3);
V=(bus_volt_mag.*cos(bus_volt_ang*pi/180)+j*bus_volt_mag.*sin(bus_volt_ang*
pi/180));
s_bus=zeros(nbus,1);
for k=1:nline
p=data2(k,1);
q=data2(k,2);
r=data2(k,3);
x=data2(k,4);
vp=V(p);
vq=V(q);
zpq=r+j*x;
ypq=1/zpq;
Ipq(k)=(vp-vq)*ypq;
Iqp(k)=-Ipq(k);
Spq(k)=vp*(Ipq(k))';
Sqp(k)=vq*(Iqp(k))';
S_loss(k)=Spq(k)+Sqp(k);
s_bus(p)=s_bus(p)+Spq(k);
s_bus(q)=s_bus(q)+Sqp(k);
end
for k=1:nbus
I_bus(k)=conj(s_bus(k)/V(k));
end
S_loss
s_bus
bus_current=I_bus'
OUTPUT:
S_loss =
s_bus =
4.0957 + 1.8923i
-2.5660 - 1.1022i
-1.3867 - 0.4539i
bus_current =
3.9007 + 1.8022i
-2.5401 - 1.2803i
-1.3606 - 0.5220i
A 34.64KV ,60MVA synchronous generator has a direct axis reactance of 13.5 ohms and
quadrature axis reactance of 9.33 ohms is operating at 0.8 pf . Determine the excitation emf
, regulation, reluctance power and also plot the power angle diagram. Verify the result using
MATLAB software.(Salient/Non Salient Pole)
MANUAL CALCULATIONS : Salient and Non-salient
MATLAB CODE:
clc;
clear;
P=input('power in MW=');
pf=input('power factor=');
Vt=input('line to line voltage in KV=');
Xd=input('Xd in ohms=');
Xq=input('Xq in ohms=');
Vtph=Vt*1000/sqrt(3);
pf_a=acos(pf);
Q=P*tan(pf_a);
I=(P-j*Q)*1000000/(3*Vtph);
delta=0:1:180;
delta_rad=delta*(pi/180);
if Xd~=Xq %salient pole machine
Eq=Vtph+(j*I*Xq);
Id_mag=abs(I)*sin(angle(Eq)-angle(I));
Ef_mag=abs(Eq)+((Xd-Xq)*Id_mag);
Excitation_emf=Ef_mag
Reg=(Ef_mag-abs(Vtph))*100/abs(Vtph)
PP=Ef_mag*Vtph*sin(delta_rad)/Xd;
Reluct_power=Vtph^2*(Xd-Xq)*sin(2*delta_rad)/(2*Xd*Xq);
Net_Reluct_power=3*Reluct_power/1000000;
Power_sal=PP+Reluct_power;
Net_power_sal=3*Power_sal/1000000;
plot(delta,Net_Reluct_power,'K');
hold on
plot(delta,Net_power_sal,'r');
xlabel('Delta(deg)--->');
ylabel('Three phase power(pu)--->');
title('PLOT-power angle curve for salient pole machine');
legend('Reluct_power','Salient_power');
end
if Xd==Xq
Ef=Vtph+(j*I*Xd);
Excitation_emf=abs(Ef)
Reg=(abs(Ef)-abs(Vtph))*100/abs(Vtph)
Power_non=abs(Ef)*Vtph*sin(delta_rad)/Xd;
Net_power=3*Power_non/10000000;
plot(delta,Net_power);
xlabel('Delta(deg)--->');
ylabel('Three phase power(MW)--->');
title('PLOT-power angle curve for non salient pole machine');
legend('Non_salient power');
end
grid
INPUT:
power in MW=48
power factor=0.8
line to line voltage in KV=34.64
Xd in ohms=13.5
Xq in ohms=9.33
OUTPUT:
Excitation_emf =
3.0000e+04
Reg =
50.0024
power in MW=48
power factor=0.8
line to line voltage in KV=34.64
Xd in ohms=13.5
Xq in ohms=13.5
Excitation_emf =
3.0104e+04
Reg =
50.5233
INPUT FOR NON_SALIENT POLE M/C
power in MW=48
power factor=0.8
line to line voltage in KV=34.64
Xd in ohms=10
Xq in ohms=10
OUTPUT:
Excitation_emf =
2.7203e+04
Reg =
36.0171
8. FORMATION OF ZBUS BY ZBUS BUILDING ALGORITHM
Determine impedance matrix using Zbus building algorithm and verify the results using
MATLAB.
MANUAL CALCULATIONS:
MATLAB CODE:
clc;
clear;
z=[1 1 0 0.25
2 2 1 0.1
3 3 1 0.1
4 2 0 0.25
5 2 3 0.1];
[m,n]=size(z);
zbus=[];
currentbusno=0;
for count = 1:m,
[rows cols]=size(zbus);
fb=z(count,2);
tb=z(count,3)
value=z(count,4);
newbus=max(fb,tb);
ref=min(fb,tb);
%type 1 modification
if newbus>currentbusno & ref==0
type=1
zbus=[zbus zeros(rows,1)
zeros(1,cols) value]
currentbusno=newbus;
continue
end
%type 2 modification
if newbus>currentbusno & ref~=0
type=2
zbus=[zbus zbus(:,ref)
zbus(ref,:) value+zbus(ref,ref)]
currentbusno=newbus;
continue
end
%type 3 modification
if newbus<=currentbusno & ref==0
type=3
zbus=zbus-1/(zbus(newbus,newbus)
+value)*zbus(:,newbus)*zbus(newbus,:)
continue
end
%type 4 modification
if newbus<=currentbusno & ref~=0
type=4
zbus=zbus-1/(value+zbus(fb,fb)+zbus(tb,tb)-
2*zbus(fb,tb))*((zbus(:,fb)-zbus(:,tb))*((zbus(fb,:)-zbus(tb,:))))
continue
end
end
zbus
OUTPUT:
zbus =
G
Slack bus (1) Bus 2 (PQ)
Bus 3 (PQ)
Table A
Admittance (p.u) Yi
1-2 0.08+j0.24 0
1-3 0.02+j0.06 0
2-3 0.06+j0.18 0
Table B
3 ----- 0 0 60 25
Procedure to enter the data for performing studies using Mi Power
Open Power System Network Editor. Select menu option Database→Configure. Configure Database
dialog is popped up. Click Browse button.
Enter here to
specify the name
Open dialog box is popped up as shown below, where you are going to browse the desired directory
and specify the name of the database to be associated with the single line diagram. Click Open button
after entering the desired database name. Configure Database dialog will appear with path chosen.
Select the folder and give database name in File name window with .Mdb extension.
And now click on Open.
Click OK
Click on OK button in the Configure database dialog, the following dialog appears.
Uncheck the Power System Libraries and Standard Relay Libraries. For this example these standard
libraries are not needed, because all the data is given on p u for power system libraries (like
transformer, line\cable, generator), and relay libraries are required only for relay co-ordination
studies. If Libraries are selected, standard libraries will be loaded along with the database. Click
Electrical Information tab.
Click on Bus icon provided on power system tool bar. Draw a bus and a dialog appears prompting to
give the Bus ID and Bus Name. Click OK. Database manager with corresponding Bus Data form will
appear. Modify the Area number, Zone number and Contingency Weightage data if it is other than
the default values. If this data is not furnished, keep the default values. Usually the minimum and
maximum voltage ratings are ± 5% of the rated voltage. If these ratings are other than this, modify
these fields. Otherwise keep the default values.
Bus description field can be effectively used if the bus name is more than 8 characters. If bus name is
more than 8 characters, then a short name is given in the bus name field and the bus description field
can be used to abbreviate the bus name. For example let us say the bus name is Northeast, then bus
name can be given as NE and the bus description field can be North East.
After entering data click save, which invokes Network Editor. Follow the same procedure for
remaining buses. Following table gives the data for other buses.
1 Bus 1 11
2 Bus 2 11
3 Bus 3 11
Note: Since the voltages are in pu, any kV can be assumed. So the base voltage is chosen as 11kV.
Procedure to Draw Transmission Line
Enter Element ID number and click OK. Database manager with corresponding Line\Cable Data form
will be open. Enter the details of that line as shown below.
Enter Structure Ref No. as 1 and click on Transmission Line Library >> button. Line & Cable
Library form will appear. Enter transmission line library data in the form as shown.
Transmission Line Element Data
1 1 2 1
2 1 3 2
3 2 3 3
Transmission Line Library Data
Click on Generator icon provided on power system tool bar. Draw the generator by clicking LMB (Left
Mouse Button) on the Bus1. Element ID dialog will appear. Enter ID number and Click OK. Database
with corresponding Generator Data form will appear. Enter details as given below.
Procedure to Enter Load Data
Click on Load icon provided on power system tool bar. Connect load 1 at Bus 2 by clicking the LMB
(Left Mouse Button) on Bus 2. Element ID dialog will appear. Give ID no. as 1 and say OK. Load Data
form will appear. Enter load details as shown below. Then click Save button, which invokes Network
Editor.
Load Data
Bus Load
No MW Mvar
1 0 0
2 50 20
3 60 25
When Study info button is clicked, following dialog will open. Select Newton Raphson method and
enter P-Tolerance and Q-tolerance as 0.001. Select print option as Detailed results with Data. Click
OK.
Click on Execute to run the power flow. When Report button is clicked, following dialog box will
open. Select Standard and then click OK.
1. Select standard
2. Click OK
Generated Report:
OUTPUTS TO BE OBSERVED and Written
2. LOAD FLOW STUDIES FOR A GIVEN POWER SYSTEM USING SOFTWARE
PACKAGE
Figure below shows a single line diagram of a 5bus system with 2 generating units, 7 lines. Per unit
transmission line series impedances and shunt susceptances are given on 100MVA Base, real power
generation, real & reactive power loads in MW and MVAR are given in the accompanying table with
bus1 as slack, obtain a load flow solution with Y-bus using Gauss-Siedel method and Newton
Raphson method. Take acceleration factors as 1.4 and tolerances of 0.0001 and 0.0001 per unit for
the real and imaginary components of voltage and 0.01 per unit tolerance for the change in the real
and reactive bus powers.
G
(3) (4)
(1)
(2) (5)
G
Table: 1.1
Table: 1.2
Bus Bus Generation Generation Load Load
No Voltage MW
MVAR MW MVAR
1 1.06+j0.0 0 0 0 0
2 1.00+j0.0 40 30 20 10
3 1.00+j0.0 0 0 45 15
4 1.00+j0.0 0 0 40 5
5 1.00+j0.0 0 0 60 10
Procedure to enter the data for performing studies using MiPower
Open Power System Network Editor. Select menu option Database ⇒ Configure. Configure
Database dialog is popped up as shown below. Click Browse button.
Open dialog box is popped up as shown below, where you are going to browse the desired directory
and specify the name of the database to be associated with the single line diagram. Click Open
button after entering the hired database name. Configure Database dialog will appear with path
chosen.
Click OK button on the Configure database dialog. The dialog shown below appears.
Uncheck the Power System Libraries and Standard Relay Libraries. For this example these standard
libraries are not needed, because all the data is given on pu for power system libraries (like
transformer, line\cable, generator), and relay libraries are required only for relay co-ordinate
studies. If Libraries are selected, standard libraries will be loaded along with the database. Click
Electrical Information tab. Since the impedances are given on 100 MVA base, check the pu status.
Enter the Base and Base frequency as shown below. Click on Breaker Ratings button to give breaker
ratings. Click OK to create the database to return to Network Editor.
Click on Bus icon provided on power system tool bar. Draw a bus and a dialog appears prompting to
give the Bus ID and Bus Name. Click OK. Database manager with corresponding Bus Data form will
appear. Modify the Area number, Zone number and Contingency Weightage data if it is other than
the default values. If this data is not furnished, keep the default values. Usually the minimum and
maximum voltage ratings are ± 5% of the rated voltage. If these ratings are other than this, modify
these fields. Otherwise keep the default values.
Bus description field can be effectively used if the bus name is more than 8 characters. If bus name is
more than 8 characters, then a short name is given in the bus name field and the bus description
field can be used to abbreviate the bus name. For example let us say the bus name is Northeast,
then bus name can be given as NE and the bus description field can be North East.
OUTPUT
Exercise Problems:
1. Using the available software package conduct load flow analysis for the given power system
using Gauss-Siedel / Newton-Raphson / Fast decoupled load flow method. Determine
(a) Voltage at all buses
(b) Line flows
(c) Line losses and
(d) Slack bus power.
Also draw the necessary flow chart ( general flow chart)
2. Using the available software package conduct load flow analysis for the given power
system using Gauss-Siedel / Newton-Raphson / Fast decoupled load flow method.
Determine
the results obtained when (i) a line is removed (ii) a load is removed.
Consider the 3 bus system of figure each of the line has a series impedence of
(0.02 + j0.08) p.u. & a total shunt admittance of j 0.02 p.u. The specified quantities at
Bus Real Load Reactive Load Real Power Reactive Power Voltage
No.
Demand PD Demand QD Generation PG Generation QG Specification
1 2.0 1.0 Unspesified Unspesified V1 = (1.04 + j 0)
(Slack Bus)
(PQ Bus)
3 0.5 0.6 0.0 QG3 = ? V3 = 1.04
(PV Bus)
G1 G2
(1) (2)
(3)
G3
3. OPTIMAL GENERATOR SCHEDULING FOR THERMAL POWER PLANTS
USING SOFTWARE PACKAGE
Exercise:
Given the cost equation and loss Co-efficient of different units in a plant determine
penalty factor, economic generation and total transmission loss using the available
software package for a total load demand of _____ MW ( typically 150 MW for 2
B)
For the given circuit, find the fault currents, voltages for the following type of faults at Bus3.
Result:
SLGF Voltage angle Phase (mag) angle
(mag)
At Bus 3 0.0731 0.04 0 -54.39
0.281 179.9 1.126 -129.54
0.478 -179.9 1.263 -124.68
Manual Calculations