from __future__ import division
from math import sqrt,pi,sin
R=5 # ohm
Vs=230 # V
f=50 # Hz
alpha = 120 # degree
Vor=Vs*sqrt(1/pi*(pi-alpha*pi/180+sin(2*alpha*pi/180)/2)) # V
print '\n rms load voltage = %.2f V'%( Vor)
Ior=Vor/R # A
print '\n rms load current = %.2f A'%( Ior)
Irms=Ior/sqrt(2) # A
print '\n rms thyristor current = %.2f A'%( Irms)
pf=sqrt(1/pi*((pi-alpha*pi/180)+sin(2*alpha*pi/180)/2)) # power factor
print '\n input power factor = %.3f '%(pf)
from __future__ import division
from math import sqrt,pi,sin
R=10 # ohm
Vs=230 # V
f=50 # Hz
nc=18 # conducting cycles
noff=32 # off cycles
k=nc/(nc+noff) # duty ratio
Vor=Vs*sqrt(k) # V
Po=Vor**2/R # W
Pi=Po # W (losses are negligble)
Ior=Vor/R # A
pf=Po/Vs/Ior # W
Im=Vs*sqrt(2)/R # A
Irms=Im*sqrt(k)/2 # A
Iav=k*Im/pi # A
print '\n (a) rms output voltage = %.0f V'%( Vor)
print '\n (b) Power output to load = %.1f W'%( Po)
print '\n (c) Power input to regulator = %.1f W'%( Pi)
print '\n (d) input power factor = %.1f '%(pf)
print '\n (e) average scr current = %.3f A'%( Iav)
print '\n rms scr current = %.3f A'%( Irms)
from __future__ import division
from math import sqrt,pi,sin
R=10 # ohm
Vs=230 # V
f=50 # Hz
alpha = 90 # degree
Vor=Vs*sqrt(1/pi*(pi-alpha*pi/180+sin(2*alpha*pi/180)/2)) # V
Ior=Vor/R # A
P=Ior**2*R # W
pf=Vor/Vs # power factor
print '\n rms load voltage = %.2f V'%( Vor)
print '\n rms load current = %.2f A'%( Ior)
print '\n power input = %.2f W'%( P)
print '\n load power factor = %.1f '%(pf)
from __future__ import division
from math import sqrt,pi,sin
R=30 # ohm
Vs=230 # V
f=50 # Hz
alpha = 45 # degree
Vor=Vs*sqrt(1/pi*(pi-alpha*pi/180+sin(2*alpha*pi/180)/2)) # V
Ior=Vor/R # A
print '\n rms load voltage = %.2f V'%( Vor)
print '\n rms load current = %.2f A'%( Ior)
from __future__ import division
from math import sqrt,pi,sin,tan
R=10 # ohm
Vs=230 # V
f=50 # Hz
fi = 45 # degree
Vmax=Vs # V(max supply voltage)
XL=R*tan(fi*pi/180) # ohm
Z=XL*sqrt(2) # ohm
Imax=Vs/Z # A
print '\n max load voltage = %.2f V'%( Vmax)
print '\n max load current = %.3f A'%( Imax)
print '\n range of delay angle = %d to %d'%(0,fi)
from __future__ import division
from math import sqrt,pi,sin,atan
R=3 # ohm
wL=4 # ohm
Vs=230 # V
f=50 # Hz
fi=atan(wL/R)*180/pi # degree
print '\n (i) control range of firing angle = %.2f to pi'%(fi)
Imax=Vs/sqrt(R**2+wL**2) # A
print '\n (ii) max rms load current = %.f A'%( Imax)
Pmax=Imax**2*R # W
print '\n (iii) max power input to load = %.f W'%( Pmax)
pf_max=Pmax/Vs/Imax # power factor
print '\n (iv) max power factor = %.1f '%( pf_max)
Ithrms=Imax/sqrt(2) # A
Ithav=Ithrms/1.57 # A
print '\n (v) max rms thyristor current = %.3f A'%( Ithrms)
print '\n max average thyristor current = %.3f A'%( Ithav)