blob: 1f3ac3edd10a1bc5c523339b2034c0e97ac05364 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc;
il=48; // load current(leading)
p=30; // load power in KW
vl=500; // line voltage
f=50; // supply frequency
pf=(p*1000)/(sqrt(3)*vl*il);
vp=vl/sqrt(3); // phase voltage
zp=vp/il; // magnitude of phase impedance
rp=zp*pf;
// since current is leading other parameter must be a capacitor
xc=zp*sqrt(1-pf^2); // reactance
c=(10^6)/(2*%pi*f*xc);
disp('circuit parameters are');
printf('Load resistance is %f ohm\n',rp);
printf('Load capacitance is %f micro farad',c);
|