summaryrefslogtreecommitdiff
path: root/431/CH3/EX3.17/EX3_17.sce
blob: 90d3298783576135cccd23112a61f7d69eafec82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Calculating regulation
//Chapter 3
//Example 3.17
//page 219
clear;
clc; 
disp("Example 3.17")
kVA=80;                //rating of the transformer
V1=2000;                //primary voltage in volts
V2=200;                 //secondary voltage in volts
f=50;                    //frequency in hertz
Id=8;                    //impedence drop
Rd=4;                    //resistance drop
phi=acosd(0.8)
I2Ze=(V2*Id)/100;
I2Re=(V2*Rd)/100;
I2Xe=sqrt(I2Ze^2-I2Re^2)
reg=((I2Re*cosd(phi))+(I2Xe*sind(phi)))*(100/V2)
printf("percentage regulation=%fpercent",reg)
pf=I2Xe/sqrt(I2Re^2+I2Xe^2)
printf("\nPower factor for zero regulation=%f(leading)",pf)