summaryrefslogtreecommitdiff
path: root/3784/CH3/EX3.2/Ex3_2.sce
blob: 496b84a37ebcf6dd2030bdf9a015643ee940c51c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clc 
// Variable Initiallization
Vm=220 //armature voltage in volts 
f=50 //frequency in Hz
Ra=10 //armature resistance in ohm
Lr=50e-3 //circulating inductance in mH
a1=30
a2=150

//solution
w=2*%pi*f
Em=sqrt(2)*220 //voltage in volts
cosa1=cosd(a1)
cosa2=cosd(a2)
Irmax1=((2*Em)/(w*Lr))*(1-cosa1)
Irmax2=((2*Em)/(w*Lr))*(1-cosa2)
Ip=(Em/Ra)
I1=Ip+Irmax1
I2=Ip+Irmax2
printf('\n\n Peak Current of Converter 1=%0.1f Amp\n\n',I1)
printf('\n\n Peak Current of Converter 2=%0.1f Amp\n\n',I2)