summaryrefslogtreecommitdiff
path: root/2642/CH3/EX3.5/Ex3_5.sce
blob: a88344b6ec7bdb1771dba1e18a511b68f9cec5f9 (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
// FUNDAMENTALS OF ELECTICAL MACHINES 
// M.A.SALAM 
// NAROSA PUBLISHING HOUSE 
// SECOND EDITION

// Chapter 3 : TRANSFORMER AND PER UNIT SYSTEM
// Example : 3.5
clc;clear; // clears the console and command history 

// Given data
V_1 = 400      // primary voltage of transformer in V
V_2 = 100      // secondary voltage of transformer in V
I_0 = 0.4      // no-load current in A
I_2 = 100      // load draws current in A
cos_phi0 = 0.3 // power factor lagging from the supply
cos_phi2 = 0.6 // power factor lagging from the secondary

// caclulations 
phi0 = acosd(0.3)
phi2 = acosd(0.6)
phi1 = phi0-phi2 
a = V_1/V_2  // turn ratio
I_2! = I_2/a // secondary current equivalent to the primary 
I_1 = sqrt((I_2!^2)+(I_0^2)+(2*I_2!*I_0*cosd(19.4))) // primary current in A

// display the result 
disp("Example 3.5 solution");
printf(" \n Primary current \n I_1 = %.2f A \n", I_1);