summaryrefslogtreecommitdiff
path: root/1319/CH10/EX10.5/10_5.sce
blob: d93f19e3ae78a0d833af7c98e39af4cbff522771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Calculate the inductance of a choke to enable the lamp

clc;
clear;

P=500; // Power Rating of a discharge lamp
I=4; // Current drawn by the lamp
w=2*%pi*50; // Angular frequency

Vdl=P/I; // Supply voltage for the proper working of the lamp
V=250; // AC supply voltage

//According the Voltage triangle

Vil=sqrt((V^2)-(Vdl^2)); // Voltage drop across inductor

Xl=Vil/I; //Reactance 
L=Xl/w; // Inductor

Prl=(I^2)*Xl; // Reactive power requirement of the coke

C=Prl/((V^2)*w); // Capacitor supplying the necessary reactive power

printf('The inductance that should be connected in series with the lamp to make it work = %g mH\n',L*1000)
printf('The capacitor that should be connected in paralle to make the power factor unity = %g mF \n',C*1000)