Uploaded by M Safiullah Khan

Power Generation assignment 1

advertisement
POWER GENERATION
Student Name
:
Muhammad Safiullahkhan
Registration No
:
FA19-EPE-076-5B
Subject
:
Power Generation
Teacher
:
Sir Sifat Shah
Assignment
:
01
Date
:
13-10-2021
Department Of Electrical and Computer Engineering
COMSATS University Islamabad, Abbottabad Campus
POWER GENERATION
>>
close all
clear all
load1=[1 6 100; 6 7 50 ; 7 17 0 ; 17 19 100; 19 20 600 ; 20 21 1000 ; 21 22 900 ; 22 23 700; 23 24 400
; 24 25 200 ];
load2=[1 6 40; 6 19 0; 19 25 40];
load3=[1 3 300 ; 3 5 400 ; 5 7 0; 7 8 700 ;8 10 1000; 10 11 900 ;11 12 800 ; 12 13 700;13 14 200;14 15
800;15 17 700;17 18 600; 18 19 500; 19 20 300 ;20 21 200; 21 22 300 ;22 25 300];
totalload=[1 2 440; 2 5 540 ; 5 6 140; 6 7 90;7 8 700; 8 10 1000; 10 11 900;11 12 800; 12 13 700;13 14
200; 14 15 800;15 19 700;19 20 940; 20 22 1240;22 23 1140 ;23 24 840 ; 24 25 540];
t1=load1(:,1);
t2=load1(:, 2);
dt=(t2-t1);
power=load1(:,3);
avg=(power.*dt);
Avgpower=sum(avg)/24
df=max(power)
lf=Avgpower/df
L=length(load1);
tt=[t1 t2 ];
t=sort(reshape(tt,1,2*L));
for n=1:L
pp(2*n-1)=power(n);
pp(2*n)=power(n);
end
Department Of Electrical and Computer Engineering
COMSATS University Islamabad, Abbottabad Campus
POWER GENERATION
plot(t,pp);
title('Load 1');
xlabel('time');
ylabel('LOAD');
grid on ;
t3=load2(:,1);
t4=load2(:, 2);
ddt=(t4-t3);
p2=load2(:,3);
avga=(p2.*ddt);
Avgp2=sum(avga)/24
df1=max(p2)
L2=Avgp2/df1
La=length(load2);
ttt=[t3 t4 ];
ta=sort(reshape(ttt,1,2*La));
for na=1:La
ppa(2*na-1)=p2(na);
ppa(2*na)=p2(na);
end
figure()
plot(ta,ppa);
title(' Load 2');
xlabel('time');
ylabel('LOAD');
grid on ;
Department Of Electrical and Computer Engineering
COMSATS University Islamabad, Abbottabad Campus
POWER GENERATION
t5=load3(:,1);
t6=load3(:, 2);
d6=(t6-t5);
p3=load3(:,3);
avgb=(p3.*d6);
Avgb=sum(avgb)/24
df2=max(p3)
lf3=Avgb/df2
Lb=length(load3);
Total_timeb=[t5 t6 ];
tb=sort(reshape(Total_timeb,1,2*Lb));
for nb=1:Lb
ppb(2*nb-1)=p3(nb);
ppb(2*nb)=p3(nb);
end
figure()
plot(tb,ppb);
title(' load 3');
xlabel('time');
ylabel('LOAD');
grid on ;
t7=totalload(:,1);
Department Of Electrical and Computer Engineering
COMSATS University Islamabad, Abbottabad Campus
POWER GENERATION
t8=totalload(:, 2);
d0=(t8-t7);
pc=totalload(:,3);
avgc=(pc.*d0);
Avc=sum(avgc)/24
df3=max(pc)
lf4=Avc/df3
Lc=length(totalload);
Totalc=[t7 t8 ];
tc=sort(reshape(Totalc,1,2*Lc));
for nc=1:Lc
ppc(2*nc-1)=pc(nc);
ppc(2*nc)=pc(nc);
end
figure()
plot(tc,ppc);
title(' total Load');
xlabel('time');
ylabel('LOAD');
grid on ;
A=df+df1+df2
Diversity_factor=(A )/df3
Department Of Electrical and Computer Engineering
COMSATS University Islamabad, Abbottabad Campus
POWER GENERATION
Department Of Electrical and Computer Engineering
COMSATS University Islamabad, Abbottabad Campus
POWER GENERATION
Department Of Electrical and Computer Engineering
COMSATS University Islamabad, Abbottabad Campus
Download