summaryrefslogtreecommitdiff
path: root/1445/CH8/EX8.34/ch8_ex_34.sce
blob: 4695c56c76c57d5bd71f16bd987fce37aa5d94ad (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
//CHAPTER 8- DIRECT CURRENT MACHINES
//Example 34

disp("CHAPTER 8");
disp("EXAMPLE 34");

//VARIABLE INITIALIZATION
r_a=0.06;                     //armature resistance in Ohms
r_se=0.04;                    //series resistance in Ohms
r_sh=25;                      //shunt resistance in Ohms
v_t=110;                      //in Volts
I_l=100;                      //in Amperes

//SOLUTION

//solution (a)
I_sh=v_t/r_sh;
I_a=I_sh+I_l;
E_g=v_t+I_a*(r_a+r_se);
disp("(a) When the machine is connected as long shunt compound generator-"); 
disp(sprintf("The armature current is %f A and the total emf is %f V",I_a,E_g));

//solution (b)
I_sh=(v_t/r_sh)+(I_l*r_se/r_sh);
I_a=I_sh+I_l;
E_g=v_t+(I_a*r_a)+(I_l*r_se);
disp("(b) When the machine is connected as short shunt compound generator-"); 
disp(sprintf("The armature current is %f A and the total emf is %f V",I_a,E_g));

//END