# EXAMPLE 3-1 PG NO-172
import math
VL=400.;
Vp=400./math.sqrt(3.);
Z=8.-1j*10.;
IL=Vp/Z;
S=math.sqrt(3.)*(VL*IL);
P=S*(math.cos(-51.34));
Q=S*(math.sin(-51.34));
Von=230.94+1j*0;
Vbn=-115.47-1j*99.99
print 'i) RMS = ',S,'A'
# EXAMPLE 2-32 PG NO 173
import math
Vp=400.; # Peak voltage
VL=400.;
Z=8.-1j*10.; # Impedance
Ip=VL/12.81;
IL=math.sqrt(3.)*Ip;
S=math.sqrt(3.)*VL*IL;
P=S*math.cos(-51.34);
Q=S*math.sin(-51.34);
Vab=Vp+1j*0;
Vbc=-200.-1j*346.410;
Vca=-200.+1j*346.;
Iab=Vab/Z;
Ibc=Vbc/Z;
Ica=Vca/Z;
Ia=Iab-Ibc;
Ib=Ibc-Iab;
Ic=Ica-Ibc;
print 'i) Peak current = ',Ip,'A '
print 'i) S = ',S,'VA '
print 'i) Active Power = ',P,'W '
print 'i) Reactive power = ',Q,'Vars '
print 'i) Iab is in reactance form = ',Iab,'A '
print 'i) Ibc is in reactance form = ',Ibc,'A '
print 'i) Ica is in reactance form= ',Ica,'A '
print 'i) Ia is in reactance form = ',Ia,'A '
print 'i) Ib is in reactance form = ',Ib,'A '
print 'i) Ic is in reactance = ',Ic,'A '
# EXAMPLE 3.3 PG NO 174
import math
Zy=3.+1j*5.196;
Zeq=2.55+1j*2.916;
Vp=230.94;
IL=59.61;
Ip=59.61;
VL=400.;
#cos(48.83)=0.658;
#sin(48.83)=0.7527;
S=math.sqrt(3.)*VL*IL;
P=math.sqrt(3.)*VL*IL*0.658;
Q=math.sqrt(3.)*VL*IL*0.7527;
print 'i) S = ',S,'VA '
print 'i) Active power = ',P,'W '
print 'i) Reactive power = ',Q,'Vars '
# EXAMPLE 3-4 PG NO-174
import math
V=220.;
Im=15.75+1j*21.;
Z=5.33-1j*4.;
LI=V/(math.sqrt(3.)*Z);
TLI=LI+Im;
#math.cos(-17.16)=0.955;
PF=math.sqrt(3.)*0.955*V*32.42;
print 'i) Line current = ',LI,'A '
print 'i) TOTAL line current = ',TLI,'A '
print 'i) Power Factor = ',PF,'W '
# EXAMPLE 3-5 PG NO-175
import math
Pm=6000.;
Qm=8000.;
Z=16.-1j*12.;
V=220.;
PC=V/Z;
PL=3.*V*11.*0.799;
QL=3.*V*11.*(-0.6);
P=Pm+PL;
Q=Qm+QL;
PF=math.cos(1./math.tan(Q/P));
IL=P/(math.sqrt(3.)*V*0.9555);
print 'i) Phase current = ',PC,'A '
print 'i) PL = ',PL,'W '
print 'i) QL = ',QL,'Vars '
print 'i) Active power = ',P,'W '
print 'i) Reactive Power = ',Q,'Vars '
print 'i) Power factor = ',PF,'lagging '
print 'i) line current (IL) = ',IL,'A '
# EXAMPLE 3-6 PG NO-175
Vac=100.+1j*0;
Vcb=-50.-1j*86.6;
Vba=-50.+1j*86.6;
Zac=6.+1j*8.;
Rcb=20.+1j*0;
Zba=4.-1j*3.;
Zcb=20.+1j*0;
Iac=Vac/Zac;
print ('i) CURRENT (Iac) is in rectangular form = ',Iac,' A ');
Icb=Vcb/Zcb;
print ('i) CURRENT (Icb) is in rectangular form = ',Icb,' A ');
Iba=Vba/Zba;
print ('i) CURRENT (IbA) is in rectangular form = ',Iba,' A ');
Ia=Iac-Iba;
print ('i) CURRENT (Ia) is in rectangular form = ',Ia,' A ');
Ic=Icb-Iac;
print ('i) CURRENT (Ic) is in rectangular form = ',Ic,' A ');
Ib=Iba-Icb;
print ('i) CURRENT (Ib) is in rectangular form = ',Ib,' A ');
Pac=Vac*Iac*0.6;
print ('iv) Power (Pac) is in rectangular form = ',Pac,' W ');
Pcb=Vcb*Icb;
print ('iv) Power (Pcb) is in rectangular form = ',Pcb,' W ');
Pba=Vba*Iba*0.8;
print ('iv) Power (Pba) is in rectangular form = ',Pba,' W ');
Qac=100.*20.*0.8;
print ('iv) Reactive Power (Qac) is in rectangular form = ',Qac,' vars ');
Qba=100.*20.*-0.6
print ('iv) Reactive Power (Qba) is in rectangular form = ',Qba,' vars ');
P=600.+500.+1600.;
print ('iv) Power (P) is = ',P,' W ');
Q=800.-1200.;
print ('iv) Power (Q) is = ',Q,' vars ');
# EXAMPLE 3-7 PG NO-176-177
Vab=400.+1j*0;
Vbc=-200.-1j*346.410;
R=100.;
Ica=0;
Iab=Vab/R;
print 'i) CURRENT (Iab) is in rectangular form = ',Iab,' A '
Ibc=Vbc/R;
print 'i) CURRENT (Ibc) is in rectangular form = ',Ibc,' A '
Ia=Iab-Ica;
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Ib=Ibc-Iab;
print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '
Ic=Ica-Ibc;
print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '
# EXAMPLE 3-8 PG NO-177
Za=10-1j*8;
Zb=12+1j*0;
Zc=8+1j*10;
Van=230.94+1j*0;
Vbn=-115.47-1j*200;
Vcn=-115.47+1j*200;
Ia=Van/Za;
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Ib=Vbn/Zb;
print 'ii) CURRENT (Ib) is in rectangular form = ',Ib,' A '
Ic=Vcn/Zc;
print 'iii) CURRENT (Ic) is in rectangular form = ',Ic,' A '
In=Ia+Ib+Ic;
print 'iv) CURRENT (In) is in rectangular form = ',In,' A '
P=(230.94*18.028*0.78)+(230.94*19.245)+(230.94*18.028*0.62)
print 'v) POWER (P) is in rectangular form = ',P,' W '
# EXAMPLE 3-9 PG NO-178-179
Z1=10.+1j*0;
Z2=13.+1j*7.5;
Z3=-13.+1j*7.5;
Z4=8.66-1j*5.;
#X=[Z1+Z2 Z3;Z3 Z2+Z4];
Z5=-104.+1j*180.13;
Z6=280.+1j*0;
#Y=[Z5 Z3;Z6 Z2+Z4];
I1=-2.26 + 8.65j;#det(Y/X);
print 'i) Current (I1) is = ',I1,' A '
# EXAMPLE 3-10 PG NO-180
Za=6.+1j*0;
Zb=5.26+1j*3;
Zc=3.535+1j*3.535;
Van=230.94+1j*0;
Vcn=-115.47-1j*200;
Vbn=-115.47+1j*200;
Ya=1./Za;
print 'i) admittance (Ya) is in rectangular form = ',Ya,' siemens '
Yb=1./Zb;
print 'i) admittance (Yb) is in rectangular form = ',Yb,' siemens '
Yc=1./Zc;
print 'i) admittance (Yc) is in rectangular form = ',Yc,' siemens '
Von=((Van*Ya)+(Vbn*Yb)+(Vcn*Yc))/(Ya+Yb+Yc);
print 'i) Voltage (Von) is in rectangular form = ',Von,' V'
Vao=Van-Von;
print 'i) Voltage (Vao) is in rectangular form = ',Vao,' V'
Vbo=Vbn-Von;
print 'i) Voltage (Vbo) is in rectangular form = ',Vbo,' V'
Vco=Vcn-Von;
print 'i) Voltage (Vco) is in rectangular form = ',Vco,' V'
Ia=Vao*Ya;
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Ib=Vbo*Yc;
print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '
Ic=Vco*Yc;
print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '
# EXAMPLE 3-11 PG NO-181
Vrn=230.94+1j*0;
Vyn=-115.47-1j*200.;
Vbn=-115.47+1j*200.;
Yr=-1j*0.05;
Yy=1j*0.05;
Yb=0.05;
Von=((Vrn*Yr)+(Vyn*Yy)+(Vbn*Yb))/(Yr+Yy+Yb);
print 'i) Voltage (Von) is in rectangular form = ',Von,' V'
Vyo=Vyn-Von;
print 'i) Voltage (Vyo) is in rectangular form = ',Vyo,' V'
Iy=Vyo*Yy;
print 'iii) CURRENT (Iy) is in rectangular form = ',Iy, ' A '
# EXAMPLE 3-12 PG NO-181-182
import math
Vp=400.;
Zp=10+1j*24;
Zpy=6-1j*8;
Ip=Vp/Zp;
print 'i) CURRENT (Ip) is in rectangular form = ',Ip,' A '
Ipy=(Vp/math.sqrt(3.))/Zpy;
print 'ii) CURRENT (Ipy) is in rectangular form = ',Ipy,' A '
Rp=10.;
Rpy=6.;
Xp=24.;
Xpy=-8.;
P1=3*Ip*Ip*Rp;
print 'iii) Power (P1) is = ',P1,' W '
P2=Ipy*Ipy*3*Rpy;
print 'iv) Power (P2) is = ',P2,' W '
Q1=3*Ip*Ip*Xp;
print 'v) Power (Q1) is = ',Q1,' W '
Qy=3*Ipy*Ipy*Xpy;
print 'vi) Power (Qy) is = ',Qy,' W '
P=P1+P2;
print 'vii) Power (P) is = ',P,' W '
Q=Q1+Qy;
print 'viii) Power (Q) is = ',Q,' W '
S=P+1j*Q;
print 'ix) Power (S) is = ',S,' W '
LI=S/(math.sqrt(3.)*Vp);
print 'x) CURRENT (LI) is in rectangular form = ',LI,' A '
# EXAMPLE 3-13 PG NO 182
VRY=375.877+1j*136.80;
print 'i) LINE VOLTAGE (VRY) is in rectangular form = ',VRY,' V '
VYB=-69.45-1j*393.923;
print 'ii) LINE VOLTAGE (VYB) is in rectangular form = ',VYB,' V '
VBR=-306.41+1j*257.11;
print 'iii) LINE VOLTAGE (VBR) is in rectangular form = ',VBR,' V '
VYR=-VRY;
print 'i) LINE VOLTAGE (VYR) is in rectangular form = ',VYR,' V '
VRB=69.45+1j*393.923;
print 'i) LINE VOLTAGE (VRB) is in rectangular form = ',VRB,' V '
VBY=306.41-1j*257.11;
print 'i) LINE VOLTAGE (VBY) is in rectangular form = ',VBY,' V '
# EXAMPLE 3-14 PG NO 182-183
X=[[400+1j*0, -6+1j*0],[-200-1j*346.410, 6-1j*0]];
Y=[[12+1j*0, -6+1j*0],[-6+1j*0, 6-1j*8]];
I1=52.31-1j*7.120;
I2=37.957-1j*14.23;
Ia=I1;
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Ib=I2-I1;
print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '
IC=-I2;
print 'i) CURRENT (Ic) is in rectangular form = ',IC,' A '
Z1=6+1j*0;
Vao=Ia*Z1;
print 'i) VOLTAGE (Vao) is in rectangular form = ',Vao,' V '
Vbo=Ib*Z1;
print 'i) VOLTAGE (Vbo) is in rectangular form = ',Vbo,' V '
Vco=IC*(-1j*8);
print 'i) VOLTAGE (Vco) is in rectangular form = ',Vco,' V '
# EXAMPLE 3-15 PG NO-185-186
Van=230.94+1j*0;
Vbn=-115.47-1j*200.;
Vcn=-115.47+1j*200.;
V1=10.*10.**3.;
Ia=V1/Van;
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
V2=4.*10.**3.;
Ic=V2/Van;
print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '
V3=6.*10.**3.;
Ib=V3/Van;
print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '
In=(Ia+Ib+Ic);
print 'i) CURRENT (In) is in rectangular form = ',In,' A '
W1=(V1+V2+V3)/2.;
print 'iv) Power (W1) is in rectangular form = ',W1,' W '
# example-3.16 pg no-186
W1=5920.;
W2=2610.;
P=8530.;
tanQ=(1.732*(W2-W1))/(W1+W2);
cosQ=0.83;
PF=cosQ;
print 'i) tanQ = ',tanQ
print 'ii) POWER FACTOR = ',PF
# Example 3.18 pg no-186-187
cosQ=0.8;
sinQ=0.6;
VL=10000.;
V=5000.*10.**3.; # VOLTAGE
PF=0.9; # POWER FACTOR
IL=V/(1.732*VL*cosQ) ;
I1=IL*cosQ; # ACTIVE COMPONENT
I2=IL*sinQ; # REACTIVE COMPONENT
P=1.732*(VL*IL*PF)
print 'i) IL = ',IL,' A'
print 'i) ACTIVE COMPONENT = ',I1,' A'
print 'i) REACTIVE COMPONENT = ',I2,' A'
print 'i) P = ',P,' KW'
# EXAMPLE 3.19 PG NO-187
VL=230.;
VP=VL/1.732;
IL=13.279;
COSQ=0.8;
SINQ=0.6;
P=(1.732*VL*IL*COSQ)
RP=(1.732*VL*IL*SINQ)
VA=(1.732*VL*VP)
print 'i) POWER FACTOR = ',P,' W'
print 'i) POWER FACTOR = ',RP,' var'
print 'i)TOTAL VA = ',VA,' VA'
# Example 3.20 pg no-187
import math
Ip=100.; # LINE CURRENT
COSQ=0.787;
SINQ=0.617;
pi=3.14;
Vp=1100./1.732;
W=(2.*math.pi*50.)
Z=Vp/Ip;
R=Z*COSQ;
Xc=Z*SINQ
C=1./(W*Xc)
print 'i) Z = ',Z,' ohm'
print 'ii) R = ',R,' ohm'
print 'iii) Xc = ',Xc,' ohm'
print 'iiii)capacitance (C) = ',C,' F'
# EXAMPLE 3.21 PG NO-187
Ip=20.;
IL=(1.732*Ip);
VL=400.;
cos40=0.766;
sin40=0.642;
VA=(1.732*VL*IL);
p=(VA*cos40);
q=(VA*sin40);
print 'i) VA = ',VA,' VA'
print 'ii) P = ',p,' W'
print 'iii) Q = ',q,' vars'
# EXAMPLE 3.22 PG NO-188
Vp=230.;
VL=230.;
Z=8.+1j*6.;
Ip=Vp/Z;
print 'i) CURRENT (Ip) is in rectangular form = ',Ip,' A'
# EXAMPLE 3-23 PG NO-188
Za=8.66+1j*5.;
Zc=8.48+1j*8.48;
Zb=11.50+1j*9.642;
VRn=254.+1j*0;
VYn=-127.02-1j*220.;
Vbn=-127.02+1j*220.;
Yr=1./Za;
print 'i) admittance (Ya) is in rectangular form = ',Yr,' siemens '
Yb=1./Zb;
print 'i) admittance (Yb) is in rectangular form = ',Yb,' siemens '
Yy=1./Zc;
print 'i) admittance (Yc) is in rectangular form = ',Yy,' siemens '
Von=((VRn*Yr)+(Vbn*Yb)+(VYn*Yy))/(Yr+Yb+Yy);
print 'i) Voltage (Von) is in rectangular form = ',Von,' V'
# EXAMPLE 3-24 PG NO-189
import math
W1=-1200.;
W2=3400.;
P=W1+W2;
print 'iv) Power (P) is = ',P,'W '
X=math.sqrt(3.)*(W2-W1)/P;
print 'iv) (tan (Q)) is = ',X
# EXAMPLE 3-25 PG NO-189
Vac=240.+1j*0;
Vcb=-120.-1j*207.84;
Vba=-120.+1j*207.84;
Zac=20.+1j*0;
Zcb=12.99+1j*7.5;
Zba=0+1j*25.;
Iac=Vac/Zac;
print 'i) CURRENT (Iac) is in rectangular form = ',Iac,' A '
Icb=Vcb/Zcb;
print 'i) CURRENT (Icb) is in rectangular form = ',Icb,' A '
Iba=Vba/Zba;
print 'i) CURRENT (Iba) is in rectangular form = ',Iba,' A '
Ia=Iac-Iba;
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Ib=Iba-Icb;
print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '
Ic=Icb-Iac;
print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '
P=(240*12)+(240*16*0.866)+(240*9.6*0);
print 'iv) Power (P) is = ',P,' W '
Vab=200.+1j*0;
Vbc=-100.-1j*173.20;
Vca=-100.+1j*173.20;
Zac=31.+1j*59.;
Zcb=30.-1j*40.;
Zba=80.+1j*60.;
Iab=Vab/Zac;
print 'i) CURRENT (Iac) is in rectangular form = ',Iab,' A '
Ibc=Vbc/Zcb;
print 'i) CURRENT (Icb) is in rectangular form = ',Ibc,' A '
Ica=Vca/Zba;
print 'i) CURRENT (Iba) is in rectangular form = ', Ica,' A '
Ia=Iab-Ica;
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Ib=Ibc-Iab;
print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '
Ic=Ica-Ibc;
print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '
P=(200.*3.*0.46)+(200.*4.*0.6)+(200.*2.*0.8);
print 'iv) Power (P) is = ',P,' W '
# EXAMPLE-3.27 PG NO-190-191
Zr=4.;
Zy=5.;
VL=400.;
IL=103.1;
Q=36.6 # Q=TETA
COSQ=0.8028;
P=(1.732*VL*IL*COSQ)
print 'i) P = ',P,' W'
# EXAMPLE 3-28 PG NO-191
Van=230.94+1j*0;
Vbn=-115.47-1j*200.;
Vcn=-115.47+1j*200.;
Za=12.-1j*16.;
Zb=12+1j*0;
Zc=8.+1j*6.;
Ia=Van/Za;
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Ib=Vbn/Zb;
print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '
Ic=Vcn/Zc;
print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '
NI=-(Ia+Ib+Ic);
print 'i)NEUTRAL CURRENT (NI) is in rectangular form = ',NI,' A '
P=(230.95*11.55*0.6)+(230.95*19.25*1)+(230.95*23.095*0.8);
print 'iv) Power (P) is = ',P,' W '
# Example-3.29 PG NO-191-192
IL=12.55;
V=460.;
Z=V/(1.732*IL)
print '%s %.2f %s' %('i) Z = ',Z,' ohm');
# EXAMPLE 3-30 PG NO-192
R=8*0.866; # cos30=0.866
print 'i) Resistance (R) is = ',R,' ohm '
X=8*0.5;
print 'ii) X (X) is = ',X,' ohm '
# EXAMPLE -3.31 PG NO -193
Zr=3333.33;
Vry=200.;
X=16666.66;
Y=346.40; # Y=(300-j173.2)
I=Y/X;
RV=I*Zr;
print 'i) I = ',I,'<-29.99 A'
print 'ii) READING OF VOLTMETER = ',RV,' <-30 degree V'
# EXAMPLE 3-32 PG NO-193
Vry=400.+1j*0;
Vyb=-200.-1j*346.41;
Vbr=-200.+1j*346.410;
I1=14.74-1j*7.3;
I2=2.105-1j*10.94;
Ir=I1;
print 'i) CURRENT (Ir) is in rectangular form = ',Ir,' A '
Iy=I2-I1;
print 'i) CURRENT (Iy) is in rectangular form = ',Iy,' A '
Ib=-I2;
print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '
Pr=16.45*16.45*10;
print 'i) Power (Pr) is = ',Pr,' W '
Py=Iy*Iy*20.;
print 'i) Power (Py) is in rectangular form = ',Py,' W '
Pb=11.24*11.24*25;
print 'i) Power (Pb) is in rectangular form = ',Pb,' W '
Vro=-(Ir*10);
print 'i) VOLTAGE (Vro) is in rectangular form = ',Vro,' V '
Vrn=200-1j*115.475;
print 'i) VOLTAGE (Vrn) is in rectangular form = ',Vrn,' V '
Von=Vro+Vrn;
print 'i) VOLTAGE (Von) is in rectangular form = ',Von,' V '
# EXAMPLE 3-33 PG NO-194
Z1=8.-1j*6;
Z2=3.6-1j*4.8;
In=-(Z1+Z2);
print 'i) CURRENT (In) is in rectangular form = ',In,' A '
# EXAMPLE 3-34 PG NO-194
import math
Vp=230.94;
Van=230.94+1j*0;
Vbn=-115.47-1j*200;
Vcn=-115.47+1j*200;
Z=8.-1j*10;
Ia=Van/Z;
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Ib=Vbn/Z;
print 'ii) CURRENT (Ib) is in rectangular form = ',Ib,' A '
Ic=Vcn/Z;
print 'iii) CURRENT (Ic) is in rectangular form = ',Ic,' A '
S=math.sqrt(3.)*400.*18.03;
print 'iv) APPARENT POWER (S) is = ',S,' VA '
P=S*0.62;
print 'v) Power (P) is = ',P,' W '
Q=S*-0.8;
print 'vi) Power (Q) is = ',Q,' vars '
# EXAMPLE-3.36 PG NO -195
import math
Vp=400./(3.)**0.5;
Rp=162.58*10.**3.;
Ipc=Rp/(3.*Vp);
IL=365.82;
Xc=Vp/Ipc;
pi=3.14;
C=1./(2.*math.pi*50.*Xc)
print 'i) Ipc = ',Ipc,' A'
print 'ii) Xc = ',Xc,' ohm'
print 'i) CAPACITANCE = ',C,' F'
# EXAMPLE 3-37 PG NO-196-197
Vry=450.+1j*0;
Vyb=-225.-1j*389.711;
Vbr=-225.+1j*389.711;
Vrn=225.-1j*130;
Vyn=-225.-1j*130;
Vbn=0+1j*259.8;
Z1=10.60+1j*10.60;
Z2=5.+1j*8.66;
Z3=2.6+1j*1.5;
Z4=12.21+1j*4.44;
Iry=Vry/Z1;
print 'i) CURRENT (Iry) is in rectangular form = ',Iry,' A '
Iyb=Vyb/Z2;
print 'i) CURRENT (Iyb) is in rectangular form = ',Iyb,' A '
Ibr=Vbr/Z3;
print 'i) CURRENT (Ibr) is in rectangular form = ',Ibr,' A '
I1=Iry-Ibr;
print 'i) CURRENT (I1) is in rectangular form = ',I1,' A '
I2=Iyb-Iry;
print 'i) CURRENT (I2) is in rectangular form = ',I2,' A '
I3=Ibr-Iyb;
print 'i) CURRENT (I3) is in rectangular form = ',I3,' A '
I4=Vrn/Z4;
print 'i) CURRENT (I4) is in rectangular form = ',I4,' A '
I5=Vyn/Z4;
print 'i) CURRENT (I5) is in rectangular form = ',I5,' A '
I6=Vbn/Z4;
print 'i) CURRENT (I6) is in rectangular form = ',I6,' A '
I7=Vbn/(3+1j*4);
print 'i) CURRENT (I7) is in rectangular form = ',I7,' A '
IR=I1+I4;
print 'i) CURRENT (IR) is in rectangular form = ',IR,' A '
IY=I1+I4;
print 'i) CURRENT (IY) is in rectangular form = ',IY,' A '
IB=I3+I6+I7;
print 'i) CURRENT (IB) is in rectangular form = ',IB,' A '
IN=-(I7);
print 'i) CURRENT (IN) is in rectangular form = ',IN,' A '
VAB=400.+1j*0;
VBC=-200.-1j*346.41;
VCA=400.+1j*0;
Z1=300.-1j*398.;
IAB=VAB/Z1;
print 'i) CURRENT (IAB) is in rectangular form = ',IAB,' A '
VAD=IAB*300.;
print 'ii) VOLTAGE (VAD) is in rectangular form = ',VAD,' V '
VDA=-VAD;
print 'iii) VOLTAGE (VDA) is in rectangular form = ',VDA,' V '
VDC=VDA-VCA;
print 'iv) VOLTAGE (VDC) is in rectangular form = ',VDC,' VA '
VAC=400.+1j*0;
VCB=-200.-1j*346.41;
VBA=-200.+1j*346.410;
IAB1=-(VAC)/Z1;
print 'v) CURRENT (IAB1) is in rectangular form = ',IAB1,' A '
VAD1=IAB1*300;
print 'vi) VOLTAGE (VAD1) is in rectangular form = ',VAD1,' V '
VDA=-VAD;
print 'vii) VOLTAGE (VAAD) is in rectangular form = ',VDA,' V '
VDC=VDA+VAC;
print 'viii) VOLTAGE (VDC) is in rectangular form = ',VDC,' V '
# EXAMPLE-3.40 PG NO-199
Vry=200.;
Vbr=200.;
Vbn=115.47;
I1=10.; # 10-j12
W1=200.*I1;
X1=173.2;
X2=26.66;
W2=X1*X2;
print 'i)WATTMETERS (W2) = ',W2,' W'
# CHAPTER -3 EXAMPLE NO 3.41 PG NO-200
Vp=230.94;
Xa=100.+1j*155;
Ia=Vp/Xa;
COSQ=0.542;
P=COSQ;
print 'i) (Ia) = ',Ia,' A'
Van=254.+1j*0;
Vbn=-127.02-1j*220.;
Vcn=-127.02+1j*220.;
Ib=0-1j*10.;
Ic=0+1j*20.;
Ia=-(Ib+Ic);
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Von=-173.20+1j*100.;
Vao=Van-Von;
print 'i) VOLTAGE (Vao) is in rectangular form = ',Vao,' V '
Vbo=Vbn-Von;
print 'i) VOLTAGE (Vbo) is in rectangular form = ',Vbo,' V '
Vco=Vcn-Von;
print 'i) VOLTAGE (Vco) is in rectangular form = ',Vco,' V '
Za=Vao/Ia;
print 'i) IMPEDANCE (Za) is in rectangular form = ',Za,' ohm '
Zb=Vbo/Ib;
print 'i) IMPEDANCE (Zb) is in rectangular form = ',Zb,' ohm '
Zc=Vco/Ic;
print 'i) IMPEDANCE (Zc) is in rectangular form = ',Zc,' ohm '
# example-3.43 pg no-200-201
Ip=11<36.87;
PL=5808.;
QL=4356.;
Pm=6000.;
Qm=8000.;
P=PL+Pm;
Q=Qm-QL;
S=((P*P)+(Q*Q))**0.5;
X=P/S; # POWER FACTOR
print 'i)ACTIVE POWER (P) = ',P,' W'
print 'i)REACTIVE POWER (Q) = ',Q,' vars(inductive)'
print 'i)APPARENT POWER (S) = ',S,' A'
print 'i)power factor (X) = ',X,' lagging'
# EXAMPLE 3.44 PG NO-201
W1=800.;
W2=-400.;
P=W1+W2;
x=(1.723*(W2-W1))/(W1+W2) # tanQ=x
Q=-79.10;
y=0.189;
P=y # POWER FACTOR
print 'i)tanQ (x) = ',x
print 'i) POWER factor (P) = ',P
# EXAMPLE 3-45 PG NO-201-202
Vab=0+1j*212.;
Vbc=-183.6-1j*106.;
Vca=183.6-1j*106.;
Za=10.+1j*0;
Zb=10.+1j*10.;
Zc=0-1j*20.;
Zab=((Za*Zb)+(Zb*Zc)+(Za*Zc))/Zc;
print 'i) IMPEDANCE (Zab) is in rectangular form = ',Zab,' ohm '
Zbc=((Za*Zb)+(Zb*Zc)+(Za*Zc))/Za;
print 'i) IMPEDANCE (Zbc) is in rectangular form = ',Zbc,' ohm '
Zca=((Za*Zb)+(Zb*Zc)+(Za*Zc))/Zb;
print 'i) IMPEDANCE (Zca) is in rectangular form = ',Zca,' ohm '
Iab=Vab/Zab;
print 'i) CURRENT (Iab) is in rectangular form = ',Iab,' A '
Ibc=Vbc/Zbc;
print 'i) CURRENT (Ibc) is in rectangular form = ',Ibc,' A '
Ica=Vca/Zca;
print 'i) CURRENT (Ica) is in rectangular form = ',Ica,' A '
Ia=Iab-Ica;
print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Ib=Ibc-Iab;
print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '
Ic=Ica-Ibc;
print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '
# EXAMPLE 3-47 PG NO-202-203
Vab=212.;
Vbc=212.;
Vca=212.;
Iab=10.;
Ibc=5.;
Ica=7.07;
P=((Vab*Iab*0.707)+(Vbc*Ibc*0.707)+(212*7.07*0));
print 'i) ACTIVE POWER (P) is = ',P,' W '
Q=((Vab*Iab*0.707)+(Vbc*Ibc*-0.707)+(212*7.07*-1))
print 'ii)REACTIVE POWER (Q) is = ',Q,' vars '
S=(P**2.+(Q**2.))**0.5;
print 'i) APPARENT POWER (S) is = ',S,' VA'
# EXAMPLE 3-48 PG NO-202-203
Vao=186.7-1j*87.06;
Vco=-38.5+1j*292.48;
Vbo=-(Vao+Vco);
print 'i) VOLTAGE (Vbo) is in rectangular form = ',Vbo,' V '
Vab=Vao-Vbo;
print 'i) VOLTAGE (Vab) is in rectangular form = ',Vab,' V '
Van=201.-1j*37.51;
Von=Van-Vao;
print 'i) VOLTAGE (Von) is in rectangular form = ',Von,' V '
# EXAMPLE 3-49 PG NO-203-204
Vab=400.+1j*0;
Vbc=-200.-1j*346.41;
Vca=-200.+1j*346.410;
Z1=1j*10.;
Z2=-1j*20.;
Z3=10.;
Iab=Vab/Z1;
print 'i) CURRENT (Iab) is in rectangular form = ',Iab,' A '
Ibc=Vbc/Z2;
print 'ii) CURRENT (Ibc) is in rectangular form = ',Ibc,' A '
Ica=Vca/Z3;
print 'iii) CURRENT (Ica) is in rectangular form = ',Ica,' A '
Ia=Iab-Ica;
print 'iv) CURRENT (Ia) is in rectangular form = ',Ia,' A '
Ib=Ibc-Iab;
print 'v) CURRENT (Ib) is in rectangular form = ',Ib,' A '
Ic=Ica-Ibc;
print 'vi) CURRENT (Ic) is in rectangular form = ',Ic,' A '
P=Ica*Z3;
print 'vii)ACTIVE POWER (P) is in rectangular form = ',P,' W '
Q=(Iab**2*Z3)-(Ibc**2*20);
print 'viii) REACTIVE POWER (Q) is in rectangular form = ',Q,' vars '
S=(P**2+Q**2)**0.5;
print 'i)APPARENT POWER (S) is in rectangular form = ',S,' VA '
# EXAMPLE 3-50 PG NO-204
I1=13.12-1j*9.15;
I2=-6.80-1j*19.55;
IaA=I1;
print 'i) CURRENT (IaA) is in rectangular form = ',IaA,' A '
IbB=I2-I1;
print 'i) CURRENT (IbB) is in rectangular form = ',IbB,' A '
IcC=-I2;
print 'i) CURRENT (IcC) is in rectangular form = ',IcC,' A '
# EXAMPLE 3-51 PG NO -205
import math
R1=1.5;
X=2.396;
X1=math.sqrt(X**2.-R1**2.);
print 'i) X1 is = ',X1,'ohm '
IL=100.;
Ip=IL/1.732;
print 'ii) Peak Current = ',Ip,' A '
R2=4.5;
Z=7.1878;
X2=math.sqrt(Z**2.-R2**2.)
print 'iii) X2 is = ',X2,'ohm '
PF=R2/(Z);
print 'vi) Power Factor is = ',PF
# EXAMPLE 3-52 PG NO-205-206
import math
Vp=230.94;
R=20.+1j*30.;
V=400.;
IL=Vp/R;
print 'i) CURRENT (IL) is in rectangular form = ',IL,' A '
PF=0.555;
P=math.sqrt(3.)*V*IL*PF;
print 'ii)ACTIVE POWER (P) is in rectangular form = ',P,' W '
Q=math.sqrt(3.)*V*IL*56.289;
print 'iii) REACTIVE POWER (Q) is in rectangular form = ',Q,' vars '
S=math.sqrt(3.)*V*IL;
print 'iv)APPARENT POWER (S) is in rectangular form = ',S,' VA '
Ip=3.698;
Z=V/Ip;
print 'i) IMPEDANCE (Z) is in rectangular form = ',Z,' ohm '
R1=Z*0.555;
print 'i) RESISTANCE (R1) is in rectangular form = ',R1,' ohm '
Xc=Z*0.83;
print 'i) INDUCTANCE (Xc) is in rectangular form = ',Xc,' ohm '
C=Xc/(2.*math.pi*50.);
print 'i) CAPACITOR (C) is in rectangular form = ',C,' F '
# EXAMPLE 3-53 PG NO-206-207
import math
HP=2000.;
Vp=2200.;
E=0.93;
MI=(HP*735.5)/E;
print 'i) MOTOR INPUT (MI) is in rectangular form = ',MI,' W '
Ip=MI/(3.*Vp*0.85);
print 'i) CURRENT (Ip) is in rectangular form = ',Ip,' A '
AC=Ip*0.85;
print 'i) ACTIVE CURRENT (AC) is in rectangular form = ',AC,' A '
RC=(Ip**2-AC**2)**0.5;
print 'i) REACTIVE CURRENT (RC) is in rectangular form = ',RC,' A '
LC=math.sqrt(3)*Ip;
print 'i) LINE CURRENT (LC) is in rectangular form = ',LC,' A '
ALC=LC*0.85;
print 'i)ACTIVE LINE CURRENT (ALC) is in rectangular form = ',ALC,' A '
RLC=(LC**2-ALC**2)**0.5;
print 'i) REACTIVE LINE CURRENT (RLC) is in rectangular form = ',RLC,' A '
# EXAMPLE 3-54 PG NO-207-208
Van=161.66+1j*0;
Vbn=-80.83-1j*140;
Vcn=-80.83+1j*140;
Z1=10+1j*0;
Z2=8.66+1j*5;
Z3=8.66-1j*5;
YA=1/Z1;
print ('i) ADMITTANCE (YA) is in rectangular form = ',YA,' siemens ');
YB=1/Z2;
print ('ii) ADMITTANCE (YB) is in rectangular form = ',YB,' siemens ');
YC=1/Z3;
print ('iii) ADMITTANCE (YC) is in rectangular form = ',YC,' siemens ');
Von=-((Van*YA)+(Vbn*YB)+(Vcn*YC))/(YA+YB+YC);
print ('iv) VOLTAGE (Von) is in rectangular form = ',Von,' V ');
Vao=Van-Von;
print ('v) VOLTAGE (Vao) is in rectangular form = ',Vao,' V ');
Vbo=Vbn-Von;
print ('vi) VOLTAGE (Vbo) is in rectangular form = ',Vbo,' V ');
Vco=Vcn-Von;
print ('vii) VOLTAGE (Vco) is in rectangular form = ',Vco,' V ');
# EXAMPLE 3-55 PG NO-208-209
Vab=400.+1j*0;
Vbc=-220.-1j*381.05;
Vca=-220.+1j*381.05;
Z1=0+1j*25.;
Z2=13.+1j*7.5;
Z3=20.+1j*0;
IAB=Vab/Z1;
print ('i) CURRENT (IAB) is in rectangular form = ',IAB,' A ');
IBC=Vbc/Z2;
print ('i) CURRENT (IBC) is in rectangular form = ',IBC,' A ');
ICA=Vca/Z3;
print ('i) CURRENT (ICA) is in rectangular form = ',ICA,' A ');
IA=IAB-ICA;
print ('i) CURRENT (IA) is in rectangular form = ',IA,' A ');
IB=IBC-IAB;
print ('i) CURRENT (IB) is in rectangular form = ',IB,' A ');
IC=ICA-IBC;
print ('i) CURRENT (IC) is in rectangular form = ',IC,' A ');
# EXAMPLE 3-59 PG NO 267
V2=240-1j*14.35;
V1=240+1j*0;
VL=233.73-1j*8.938;
R1=0.6+1j*0.8;
R2=0.5+1j*0.866;
I1=(V1-VL)/R1;
I2=(V2-VL)/R2;
R3=16+1j*12;
I3=(VL/R3);
print ('i) current(I1) is in polar form = ',I1,'A ');
print ('i) current(I2) is in polar form = ',I2,'A ');
print ('i) current(I3) is in polar form = ',I3,'A ');