from __future__ import division
from numpy import sqrt
#Given data :
R=4 #in ohm
XL=3 #in ohm
VL=400 #in volt
Vph=VL/sqrt(3) #in volt
Zph=sqrt(R**2+XL**2) #in ohm
Iph=Vph/Zph #in Ampere
#In star connected IL=Iph
IL=Iph #in Ampere
print "Line Current = %0.1f A" %IL
cosfi=R/Zph #unitless
PowerConsumed=sqrt(3)*VL*IL*cosfi #in watts
print "Total power consumed by the load = %.f Watts" %PowerConsumed
from __future__ import division
from numpy import sqrt
#Given data :
VL=440 #in volt
IL=10 #in Ampere
#In star connected :
print "In star connected :"
Iph=IL #in Ampere
Vph=VL/sqrt(3) #in volt
Rph=Vph/Iph #in ohm
print "Value of each resistor = %.1f ohm" %Rph
#In delta connected :
print "In delta connected :"
Iph=IL/sqrt(3) #in Ampere
Vph=Iph*Rph #in volt
print "Voltage in delta connection = %.2f volt" %Vph
from __future__ import division
from numpy import sqrt, pi
#Given Data :
R=16 #in ohm
L=38.2 #in mH
L=38.2*10**-3 #in H
VL=400 #in volt
f=50 #in Hz
XL=2*pi*f*L #in ohm
Zph=sqrt(R**2+XL**2) #in ohm
#In star connected :
Vph=VL/sqrt(3) #in volt
Iph=Vph/Zph #in Ampere
IL=Iph #in Ampere
print "Line Current = %0.2f A" %IL
cosfi=R/Zph #unitless
print "Power factor = %.1f" %cosfi
P=sqrt(3)*VL*IL*cosfi #in watts
P/=10**3 # kW
print "Total power consumed by the load = %0.3f kW" %P
from __future__ import division
from numpy import sqrt
#Given Data :
R=15 #in ohm
X=40 #in ohm
VL=440 #in volt
#In delta connection :
Vph=VL #in volt
Zph=sqrt(R**2+X**2) #in ohm
Iph=Vph/Zph #in Ampere
print "Phase Current = %0.1f A" %Iph
IL=Iph*sqrt(3) #in Ampere
print "Line Current = %0.2f A" %IL