summaryrefslogtreecommitdiff
path: root/431/CH2/EX2.5/EX3_5.sce
blob: a7598d500aa729f783358372442eb56165c3432f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Calculating the current and power factor of the primary circuit
//Chapter 3
//Example 3.5
//page 206
clear;
clc; 
disp("Example 3.5")
I2=300;........................//Secondary current in amperes
N1=1200;                        //number of primary turns
N2=300;                         //number of secondary turns
I0=2.5;                         //load current in amperes
I1=(I2*N2)/N1;
phi0=acosd(0.2);
phi2=acosd(0.8);
I1c=(I1*cosd(phi2))+(I0*cosd(phi0));
I1s=(I1*sind(phi2))+(I0*sind(phi0));
I=sqrt(I1c^2+I1s^2);
phi=atand(I1s/I1c)
printf("primary power factor=%fdegrees",cosd(phi));