summaryrefslogtreecommitdiff
path: root/1445/CH8/EX8.1/ch8_ex_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1445/CH8/EX8.1/ch8_ex_1.sce')
-rw-r--r--1445/CH8/EX8.1/ch8_ex_1.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1445/CH8/EX8.1/ch8_ex_1.sce b/1445/CH8/EX8.1/ch8_ex_1.sce
new file mode 100644
index 000000000..b02f8d679
--- /dev/null
+++ b/1445/CH8/EX8.1/ch8_ex_1.sce
@@ -0,0 +1,22 @@
+//CHAPTER 8- DIRECT CURRENT MACHINES
+//Example 1
+
+disp("CHAPTER 8");
+disp("EXAMPLE 1");
+
+//VARIABLE INITIALIZATION
+v_t=250; //terminal voltage in Volts
+I_l=500; //load current in Amperes
+r_a=0.04; //armature resistance in Ohms
+r_f=50; //shunt field resistance in Ohms
+
+//SOLUTION
+I_f=v_t/r_f;
+I_a=I_l+I_f;
+E_a=v_t+(I_a*r_a); //here E_a=emf of generator
+disp(sprintf("The generated emf is %f V",E_a));
+
+//END
+
+
+