summaryrefslogtreecommitdiff
path: root/2642/CH4/EX4.6/Ex4_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2642/CH4/EX4.6/Ex4_6.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2642/CH4/EX4.6/Ex4_6.sce')
-rwxr-xr-x2642/CH4/EX4.6/Ex4_6.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/2642/CH4/EX4.6/Ex4_6.sce b/2642/CH4/EX4.6/Ex4_6.sce
new file mode 100755
index 000000000..cf9abfb43
--- /dev/null
+++ b/2642/CH4/EX4.6/Ex4_6.sce
@@ -0,0 +1,27 @@
+// FUNDAMENTALS OF ELECTICAL MACHINES
+// M.A.SALAM
+// NAROSA PUBLISHING HOUSE
+// SECOND EDITION
+
+// Chapter 4 : DIRECT CURRENT GENERATORS
+// Example : 4.6
+
+
+clc;clear; // clears the console and command history
+
+// Given data
+V_t = 220 // shunt generator voltage in V
+I = 250 // shunt generator current in A
+R_sh = 50 // shunt field resistance in ohm
+R_a = 0.02 // armature resistance in ohm
+
+// caclulations
+I_sh = V_t/R_sh // shunt field current in A
+I_a = I+I_sh // armature current in A
+E_g = V_t+I_a*R_a // generated voltage in V
+
+
+// display the result
+disp("Example 4.6 solution");
+printf(" \n Generated voltage \n E_g = %.2f V \n", E_g);
+