Professional Documents
Culture Documents
Assesment1 l1
Assesment1 l1
ROLL NO:120EE0446
ASSESMENT-1
Write a MATLAB Code for the given circuit in Fig. 2 to perform the following tasks
a) Plot the instantaneous power delivered by vab, vbc, and vca in individual plots.
t = 1×100
0 0.0101 0.0202 0.0303 0.0404 0.0505 0.0606 0.0707
Vab=230*sqrt(2)*sin(100*pi*t);
Vbc=230*sqrt(2)*sin(100*pi*t-120);
Vca=230*sqrt(2)*sin(100*pi*t+120);
f=50;
r=50; % resistance of the load %
l=0.58; % inductance of the load %
w=100*pi;
Iab=Vab./(r+j*w*l);
Ibc=Vbc./(r+j*w*l);
Ica=Vca./(r+j*w*l);
1
%intantaneous power by Vbc %
Pbc=real(Vbc.*conj(Ibc));
plot(t,Pbc,'g','LineWidth',1)
title("Instantaneous power by Vbc")
xlabel("time(s)")
ylabel("Instantaneous power Pbc (watt)")
2
%intantaneous power by Vca %
Pca=real(Vca.*conj(Ica));
plot(t,Pca,'b','LineWidth',1)
title("Instantaneous power by Vca")
xlabel("time(s)")
ylabel("Instantaneous power Pca (watt)")
3
%Total instantaneous power by three phase source %
t=linspace(0,1,100);
f=50;
w=100*pi;
Vab=230*sqrt(2)*sin(100*pi*t);
Vbc=230*sqrt(2)*sin(100*pi*t-120);
Vca=230*sqrt(2)*sin(100*pi*t+120);
Iab=Vab./(r+j*w*l);
Ibc=Vbc./(r+j*w*l);
Ica=Vca./(r+j*w*l);
Pab= real(Vab.*conj(Iab))
Pab = 1×100
0 0.1492 0.5960 1.3388 2.3746 3.6991 5.3070 7.1919
Pbc= real(Vbc.*conj(Ibc))
Pbc = 1×100
49.9507 45.5568 41.2777 37.1308 33.1327 29.2994 25.6465 22.1887
4
Pca=real(Vca.*conj(Ica))
Pca = 1×100
49.9507 54.4419 59.0121 63.6430 68.3160 73.0122 77.7128 82.3987
Pt = 1×100
99.9015 100.1478 100.8859 102.1126 103.8232 106.0107 108.6663 111.7793
plot(t,Pt,'g','LineWidth',1)
title("Total instsntaneous power by sourece")
xlabel("time (s)")
ylabel("total intantaneous power Pt (watt)")