summaryrefslogtreecommitdiff
path: root/1544/CH5/EX5.30/Ch05Ex30.sce
blob: b444ecdceebb759c595071e3e8052722cfb59cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Scilab code Ex5.28: Pg 189 (2008)
clc; clear;
R_L = 15;                               // Load resistor, ohms
V_2 = 240;                              // Terminal p.d at secondary, V
V_1 = 600;                              // Supply voltage, V
// Part (a)
// Since V_1/V_2 = N_1/N_2 = k
k = V_1/V_2;                            // Turns ratio
// Part (b)
I_2 = V_2/R_L;                          // Current drawn by the load, A
P_2 = V_2*I_2;                          // Power drawn by the load, W
// Part (c)
I_1 = P_2/V_1                           // Current drawn from the supply, A
printf("\nThe transformer turns ratio = %3.1f:1", k);
printf("\nThe current drawn by the load = %2d A",I_2);
printf("\nThe power drawn by the load = %4.2f W", P_2*1e-03);
printf("\nThe current drawn from the supply = %3.1f A", I_1);

// Result
// The transformer turns ratio = 2.5:1
// The current drawn by the load = 16 A
// The power drawn by the load = 3.48 W
// The current drawn from the supply = 6.4 A