Vous êtes sur la page 1sur 1

NAMA : HIDAYATUR RAHMAN

NIM : F1B114017

TUGAS 1: ANALISIS SISTEM TENAGA

PROGRAM MATLAB

Vm = 100; thetav = 0; %tegangan dan sudut phase


Z = 1.25; gama = 60; %impedansi dan sudut phase
Im = Vm/Z; %nilai arus
thetai = (thetav - gama); %sudut phase arus dalam derajat
theta = (thetav - thetai)*pi/180; %derajat keradian
wt = 0:pi/100:2*pi; %wt dari 0 sampi 2*pi
v = Vm*cos(wt); %tegangan sesaat
i = Im*cos(wt + thetai*pi/180); %arus sesaat
subplot(2,2,1), plot(wt,v,wt,i),grid
title(['v(t)=Vm cos wt, i(t)=Im cos (wt',num2str(thetai),')'])
xlabel('wt,degree')

p = v.*i; %daya sesaat


subplot(2,2,2), plot(wt,p),grid
title('p(t)=v(t)*i(t)'), xlabel('wt,degree')

V = Vm/sqrt(2); I = Im/sqrt(2); %tegangan dan arus efektif


P = V*I*cos(theta); %daya rata-rata
Q = V*I*sin(theta); %daya efektif
S = P + j*Q; %daya kompleks
Pr = P*(1 + cos(2*(wt + thetav)));
subplot(2,2,3), plot(wt,Pr),grid
title('pr(t)'), xlabel('wt,degree')

Px = Q*sin(2*(wt + thetav));
subplot(2,2,4), plot(wt,Px),grid
title('px(t)'), xlabel('wt,degree')

Vous aimerez peut-être aussi