summaryrefslogtreecommitdiff
path: root/1319/CH5/EX5.9/5_9.sce
blob: b4d14fb833b6144fdc7149f8aca5e5197399d3a0 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Regulation at full load p.f 0.8 lag

clc;
clear;

Pi=500*(10^3);// Power Input
Meff=97/100;// Max Efficiency
pf1=1;

E1=3300;
E2=500;

Po=Pi*pf1*3/4;

// Iron loss = Copper loss at maximum efficiency

x=poly([0 1],'x','c');

Pin=Po+(2*x);

xx=(Pin*Meff)-Po;

x=roots(xx); // Iron Loss = Copper Loss

I2=Po/E2;

R=x/(I2^2);

I2fl=Pi/E2;

Rfl=E2/I2fl;

// Per unit values
Rpu=R*100/Rfl;
Zpu=10;
Xpu=sqrt((Zpu^2)-(Rpu^2));

pf2=0.8; // Lagging

ang=acosd(pf2);// Positive Angle as it is lagging

perreg=(Rpu*cosd(ang))+(Xpu*sind(ang));

printf('The regulation at full load, p.f 0.8 lag = %f percent\n',perreg)