summaryrefslogtreecommitdiff
path: root/1445/CH8/EX8.35/Ex8_35.sce
diff options
context:
space:
mode:
Diffstat (limited to '1445/CH8/EX8.35/Ex8_35.sce')
-rw-r--r--1445/CH8/EX8.35/Ex8_35.sce12
1 files changed, 6 insertions, 6 deletions
diff --git a/1445/CH8/EX8.35/Ex8_35.sce b/1445/CH8/EX8.35/Ex8_35.sce
index fcf1b5461..4fd8470a8 100644
--- a/1445/CH8/EX8.35/Ex8_35.sce
+++ b/1445/CH8/EX8.35/Ex8_35.sce
@@ -1,10 +1,10 @@
//CHAPTER 8- DIRECT CURRENT MACHINES
//Example 35
+clc;
disp("CHAPTER 8");
disp("EXAMPLE 35");
-//Exercise 34, motor working as DC motor
//VARIABLE INITIALIZATION
r_a=0.06; //armature resistance in Ohms
r_se=0.04; //series resistance in Ohms
@@ -15,17 +15,17 @@ I_l=100; //in Amperes
//SOLUTION
//solution (a)
-I_sh=v_t/r_sh; // shunt current
-I_a=I_l-I_sh; // armature current
-E_g=v_t-I_a*(r_a+r_se); // generated emf
+I_sh=v_t/r_sh;
+I_a=I_l-I_sh;
+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 %.1f V",I_a,E_g));
+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_l-I_sh;
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 %.2f V",I_a,E_g));
+disp(sprintf("The armature current is %f A and the total emf is %f V",I_a,E_g));
//END