summaryrefslogtreecommitdiff
path: root/3574/CH3/EX3.1/EX3_1.sce
blob: fd306a4614d1ac11fba147ea8b4369887c69ee3c (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
// Example 3.1
// Computation of (a) Load current (b) Incoming line current
// (c) Transformed current (d) Apparent power conducted and apparent power transformed
// Page No. 98

clc;
clear;
close;

// Given data
NHS=400;               // Number of turns in the high side
NLS=0.25*400;          // Number of turns in the low side
VHS=2400;              // Voltage at the high side
S=4800;                // Supply voltage

// (a) Load current
a=NHS/NLS;             // Transformer turn ratio  
VLS=VHS/a;             // Low side voltage      
ILS=S/VLS;             // Load current

// (b) Incoming line current
IHS=ILS/a;    

//(c)  Transformed current
ITR=ILS-IHS;

// (d) Apparent power conducted and apparent power transformed

SCOND=IHS*VLS;     // Apparent power conducted
STRANS=ITR*VLS;    // Apparent power transformed  


// Display result on command window
printf("\n Load current  = %0.0f A ",ILS);
printf("\n Incoming line current = %0.0f A ",IHS);
printf("\n Transformed current = %0.0f A ",ITR);
printf("\n Apparent power conducted = %0.0f VA ",SCOND);
printf("\n Apparent power transformed = %0.0f VA ",STRANS);