summaryrefslogtreecommitdiff
path: root/608/CH39/EX39.02/39_02.sce
blob: 8f7e1d88bbf87fa70c6669031884f6cbbfa6c7e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Problem 39.02: A capacitor has a loss angle of 0.025 rad, and when it is connected across a 5 kV, 50 Hz supply, the power loss is 20 .W Determine the component values of the equivalent parallel circuit.

//initializing the variables:
del = 0.025; // in rad.
V = 5000; // in Volts
PL = 20; // power loss
f = 50; // in Hz

//calculation: 
//power loss = w*C*V^2*tan(del)
Cp = PL/(2*%pi*f*V*V*tan(del))
//for a parallel equivalent circuit,
//tan(del) = 1/(Rp*w*Cp)
Rp = 1/(2*%pi*f*Cp*tan(del))

printf("\n\n Result \n\n")
printf("\n capacitance C %.2E F and parallel resistance %.2E ohm.",Cp, Rp)